testing/certbot-dns-njalla: build with gpep517

This commit is contained in:
ptrcnull 2024-08-04 23:37:59 +02:00
parent 25eab5b618
commit 5800bd5a25

View File

@ -2,7 +2,7 @@
# Maintainer: Nulo <git@nulo.in>
pkgname=certbot-dns-njalla
pkgver=1.0.2
pkgrel=2
pkgrel=3
pkgdesc="Certbot plugin for using the Njalla DNS API"
url="https://github.com/chaptergy/certbot-dns-njalla"
# options="!check" # TODO: enable tests
@ -14,7 +14,7 @@ depends="
py3-dns-lexicon
py3-dnspython
"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
checkdepends="
py3-mock
py3-requests
@ -22,15 +22,20 @@ checkdepends="
source="$pkgname-$pkgver.tar.gz::https://github.com/chaptergy/certbot-dns-njalla/archive/v$pkgver.tar.gz"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python -m unittest discover -p '*_test.py'
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m unittest discover -p '*_test.py'
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="