Morten Linderud pushed to branch main at Arch Linux / Packaging / Packages / 
python-hid


Commits:
2b98d1f7 by loqs at 2026-02-09T22:55:51+00:00
Use PEP 517 for building

Related https://archlinux.org/todo/use-pep-517-for-building-if-supported/.

- - - - -
37508a42 by loqs at 2026-02-10T21:57:46+00:00
Package MIT license file

- - - - -
3dec9ef4 by Morten Linderud at 2026-03-16T21:11:54+01:00
Merge remote-tracking branch 'origin/merge-requests/1'

* origin/merge-requests/1:
  Package MIT license file
  Use PEP 517 for building

- - - - -
77ae63b8 by Morten Linderud at 2026-03-16T21:12:27+01:00
upgpkg: 1.0.6-5: fix pep517 and license

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,11 +1,14 @@
 pkgbase = python-hid
        pkgdesc = Python hidapi bindings in ctypes (aka pyhidapi)
        pkgver = 1.0.6
-       pkgrel = 4
+       pkgrel = 5
        url = https://github.com/apmorton/pyhidapi
        arch = any
        license = MIT
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = hidapi
        depends = python
        conflicts = python-hidapi


=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
 
 pkgname=python-hid
 pkgver=1.0.6
-pkgrel=4
+pkgrel=5
 _pkgname=${pkgname#python-}
 pkgdesc="Python hidapi bindings in ctypes (aka pyhidapi)"
 arch=(any)
@@ -11,16 +11,17 @@ url="https://github.com/apmorton/pyhidapi";
 license=(MIT)
 depends=(hidapi python)
 conflicts=(python-hidapi)
-makedepends=(python-setuptools)
+makedepends=(python-build python-installer python-setuptools python-wheel)
 
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz";)
 sha256sums=('48d764d7ae9746ba123b96dbf457893ca80268b7791c4b1d2e051310eeb83860')
 
 build() {
   cd "$_pkgname-$pkgver"
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 package() {
   cd "$_pkgname-$pkgver"
-  python setup.py install --skip-build -O1 --root="$pkgdir"
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/${pkgname}/
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-hid/-/compare/5180602df046f3f3b7fb220c984a70739974a184...77ae63b8df43ec93baba488a3c5366ec1cad638d

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-hid/-/compare/5180602df046f3f3b7fb220c984a70739974a184...77ae63b8df43ec93baba488a3c5366ec1cad638d
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to