testing/py3-evohome-client: build with gpep517

This commit is contained in:
ptrcnull 2024-08-08 20:10:12 +02:00
parent 875b8ca163
commit 60489cabb0

View File

@ -2,13 +2,13 @@
# Maintainer:
pkgname=py3-evohome-client
pkgver=0.3.7
pkgrel=3
pkgrel=4
pkgdesc="Python client to access the Evohome web service"
url="https://github.com/watchforstock/evohome-client"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-requests"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
checkdepends="py3-nose py3-requests-mock"
subpackages="$pkgname-pyc"
source="evohome-client-$pkgver.tar.gz::https://github.com/watchforstock/evohome-client/archive/$pkgver.tar.gz"
@ -18,16 +18,21 @@ replaces="py-evohome-client" # Backwards compatibility
provides="py-evohome-client=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
mkdir test-reports
nosetests
.testenv/bin/python3 -m nose
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="