New comment by Frick-David on void-packages repository https://github.com/void-linux/void-packages/issues/19670#issuecomment-738788306 Comment: Per my discussion to package it: ``` - for a linux distro, you're going to need to build it linking to system hidapi (which is not its default) - you need to pick which backends to enable (hidraw, libusb, or both)... default is both, but some distros may prefer only hidraw (which is the better one, unless hidraw is not available on that kernel for some reason) - finally, if for some reason you need to override CFLAGS or anything like that, well, you may have issues with stuff being hardcoded in cython-hidapi's setup.py again, the Arch PKGBUILD is a good reference, although they only build the hidraw backend and, like i mentined, this may not be the correct choice for void regardless, be very careful that the build phase and the install phase are in sync in terms of which options you're sending to cython-hidapi's setup.py (this is probably already handled by void, like options are only passed to build, and install uses the skip-build option... still, this is a common source of issues when building that lib with anything but its defaults options, which are not suitable for linux distros) oh, the reason why you want to use system hidapi, instead of the default, is that the default is whatever hidapi version the project has pulled in... and no, then don't always stick to hidapi releases, in the past they have started to use a random commit anyway: https://github.com/archlinux/svntogit-community/blob/packages/python-hidapi/trunk/PKGBUILD ```