1 { lib, stdenv, buildPythonPackage, fetchPypi, libusb1, pytestCheckHook }:
3 buildPythonPackage rec {
9 sha256 = "5792a9defee40f15d330a40d9b1800545c32e47ba7fc66b6f28f133c9fcc8538";
13 substituteInPlace usb1/_libusb1.py --replace \
14 "ctypes.util.find_library(base_name)" \
15 "'${libusb1}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}'"
18 buildInputs = [ libusb1 ];
20 checkInputs = [ pytestCheckHook ];
27 homepage = "https://github.com/vpelletier/python-libusb1";
28 description = "Python ctype-based wrapper around libusb1";
29 license = licenses.lgpl2Plus;
30 maintainers = with maintainers; [ prusnak rnhmjoj ];