1 { lib, stdenv, buildPythonPackage, fetchPypi, libusb1, pytestCheckHook }:
3 buildPythonPackage rec {
9 sha256 = "4ee9b0a55f8bd0b3ea7017ae919a6c1f439af742c4a4b04543c5fd7af89b828c";
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 nativeCheckInputs = [ 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 ];