testing/crossplane: build with gpep517

This commit is contained in:
ptrcnull 2024-08-31 16:28:11 +02:00
parent d00b7757cb
commit 4dfe720238

View file

@ -2,26 +2,26 @@
# Maintainer: Hugo Rodrigues <hugorodrigues@hugorodrigues.xyz>>
pkgname=crossplane
pkgver=0.5.8
pkgrel=2
pkgrel=3
pkgdesc="Quick and reliable way to convert NGINX configurations into JSON and back."
url="https://github.com/nginxinc/crossplane/"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="https://pypi.io/packages/source/c/crossplane/crossplane-$pkgver.tar.gz"
options="!check" # no tests ran
build() {
python3 setup.py build
}
check() {
python3 setup.py test
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="