testing/py3-pockethernet: build with gpep517

This commit is contained in:
ptrcnull 2024-08-07 15:40:15 +02:00
parent 9279374c06
commit 51b95008b7

View File

@ -3,29 +3,30 @@
pkgname=py3-pockethernet
_pyname=pockethernet
pkgver=0.7.0
pkgrel=3
pkgrel=4
pkgdesc="Library for controlling the Pockethernet"
url="https://gitlab.com/MartijnBraam/pockethernet-protocol"
arch="noarch"
license="MIT"
depends="python3 py3-cobs py3-crc16"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
_pypiprefix="${_pyname%${_pyname#?}}"
subpackages="$pkgname-pyc"
source="https://gitlab.com/MartijnBraam/pockethernet-protocol/-/archive/$pkgver/pockethernet-protocol-$pkgver.tar.gz"
builddir=$srcdir/pockethernet-protocol-$pkgver
options="!check" # ran no tests
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="
e312f712b8ca914d307a9d2a4a82d5c954f210c1fb7936442e0c5608a8bab92a5b2e100a8e5be24a249f9ca15e6de2086c50bebd48ba6dcf69f70bf50e7b2c4d pockethernet-protocol-0.7.0.tar.gz
"