From 762817618744f3220d0f0fcb56705248ba11d1f2 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Fri, 10 Apr 2026 18:06:29 +0200 Subject: [PATCH] community/py3-hid-parser: upgrade to 0.1.0 --- community/py3-hid-parser/APKBUILD | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/community/py3-hid-parser/APKBUILD b/community/py3-hid-parser/APKBUILD index fcaee61f82e..ce3a00d08b4 100644 --- a/community/py3-hid-parser/APKBUILD +++ b/community/py3-hid-parser/APKBUILD @@ -1,14 +1,14 @@ # Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=py3-hid-parser -pkgver=0.0.3 -pkgrel=3 +pkgver=0.1.0 +pkgrel=0 pkgdesc="Typed pure Python library to parse HID report descriptors" url="https://github.com/usb-tools/python-hid-parser" arch="noarch" license="MIT" depends="python3" -makedepends="py3-setuptools" +makedepends="py3-gpep517 py3-flit-core" checkdepends=" py3-hypothesis py3-pytest @@ -18,19 +18,20 @@ source="https://github.com/usb-tools/python-hid-parser/archive/$pkgver/py3-hid-p builddir="$srcdir/python-hid-parser-$pkgver" build() { - python3 setup.py build + gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2 } check() { - PYTHONPATH="$PWD/build/lib" python -m pytest \ + python3 -m venv --clear --without-pip --system-site-packages .testenv + gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2 + .testenv/bin/python3 -m pytest \ -k 'not test_variableitem_compliance and not test_arrayitem_compliance' - } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + gpep517 install-wheel --destdir "$pkgdir" .dist/*.whl } sha512sums=" -5a4aa88b93f5fc56d0038842dbbc310c41ce4ac1785eb0ecd3a1b48c8d05015fe3c39700b2fccc316778ad11e985093916df739720d90b04be379a14177535d5 py3-hid-parser-0.0.3.tar.gz +2dc5109f1f3549b1a855d8e0315517e03f39273bd9669bcbe506b5027754a45447a8a30da9f8f369903745f0777f446e8e63d367c1e1b6d3ef0a8335f524d62d py3-hid-parser-0.1.0.tar.gz "