10 buildPythonPackage rec {
13 format = "setuptools";
16 inherit pname version;
17 sha256 = "4ee9b0a55f8bd0b3ea7017ae919a6c1f439af742c4a4b04543c5fd7af89b828c";
21 substituteInPlace usb1/_libusb1.py --replace \
22 "ctypes.util.find_library(base_name)" \
23 "'${libusb1}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}'"
26 buildInputs = [ libusb1 ];
28 nativeCheckInputs = [ pytestCheckHook ];
30 pytestFlagsArray = [ "usb1/testUSB1.py" ];
33 homepage = "https://github.com/vpelletier/python-libusb1";
34 description = "Python ctype-based wrapper around libusb1";
35 license = licenses.lgpl2Plus;
36 maintainers = with maintainers; [