aboutsummaryrefslogtreecommitdiffstats
path: root/community/pyproject2setuppy/APKBUILD
blob: f23c03b5c5a5459bb96d568123ac800d535af73d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=pyproject2setuppy
pkgver=16
pkgrel=0
pkgdesc="Cheap builder for pyproject-based build systems"
url="https://github.com/mgorny/pyproject2setuppy"
arch="noarch"
license="BSD-2-Clause"
depends="py3-toml py3-setuptools"
options="!check" # test depends from flit that is not avail atm
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/mgorny/pyproject2setuppy/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
e8e13644e5c88cfcc9f06ee9ece5c715ac1917d1eac9ba0d7a68a71d78ce84f50229890442c5c41e766083c302ae59f67bd20736e502615006cf35c41c2d3a9c  pyproject2setuppy-16.tar.gz
"