python3-hidapi: update to 0.14.0.post4, switch backend to libusb

See https://pypi.org/project/hidapi/#history for more context

0f459f557c
python3-pynitrokey will work with either libusb or hidraw since
nitrokey-udev-rules 1.1.0 so there's no need to hold back this update
This commit is contained in:
Mateusz Sylwestrzak 2025-05-31 16:43:47 +02:00 committed by classabbyamp
parent 7fe6030ee7
commit 0d8237222e

View file

@ -1,23 +1,18 @@
# Template file for 'python3-hidapi'
pkgname=python3-hidapi
version=0.14.0.post2
version=0.14.0.post4
revision=1
build_style=python3-module
make_build_args="--with-system-hidapi"
make_build_args="--with-libusb"
hostmakedepends="python3-setuptools python3-wheel python3-Cython pkg-config"
makedepends="eudev-libudev-devel hidapi-devel libusb-devel python3-devel"
makedepends="eudev-libudev-devel libusb-devel python3-devel"
depends="python3 hidapi python3-setuptools"
short_desc="Cython interface to the hidapi"
maintainer="Mateusz Sylwestrzak <slymattz@gmail.com>"
license="GPL-3.0-or-later, BSD-3-Clause"
homepage="https://github.com/trezor/cython-hidapi"
distfiles="${PYPI_SITE}/h/hidapi/hidapi-${version}.tar.gz"
checksum=6c0e97ba6b059a309d51b495a8f0d5efbcea8756b640d98b6f6bb9fdef2458ac
if [ $CROSS_BUILD ]; then
# without the following line, the compiler complains about the lack of hidapi.h
hostmakedepends+=" hidapi-devel"
fi
checksum=48fce253e526d17b663fbf9989c71c7ef7653ced5f4be65f1437c313fb3dbdf6
post_install() {
vlicense LICENSE-bsd.txt