[arch-commits] Commit in python-hidapi/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sat Apr 18 13:44:57 UTC 2020

    Date: Saturday, April 18, 2020 @ 13:44:57
  Author: ffy00
Revision: 616070

upgpkg: python-hidapi (use hidraw backend)

There are two available backends for hidapi, there's libusb and hidraw.
Libusb is provides a cross-platform USB implementation, this is done in
userspace. Hidraw is the kernel API to interact with HID devices. There's
no reason to prefer libusb over hidraw here, on the opposite. By switching
to the hidraw backend we can now talk to non-USB HID devices. This includes
HID over Bluetooth, HID over I2C, HID over SMBUS, UHID devices (virtual
HID devices), etc. I also trust the kernel to be more stable than libusb.


 PKGBUILD |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
--- PKGBUILD	2020-04-18 13:12:27 UTC (rev 616069)
+++ PKGBUILD	2020-04-18 13:44:57 UTC (rev 616070)
@@ -7,7 +7,7 @@
 pkgdesc="A Cython interface to the hidapi from signal11/hidapi"
@@ -20,7 +20,7 @@
 build() {
   cd "$_pipname-$_pkgver"
-  python setup.py build
+  python setup.py build --without-libusb
 package_python-hidapi() {

More information about the arch-commits mailing list