8 buildPythonPackage rec {
10 format = "setuptools";
12 # If the versions come back into sync switch back to inheriting from c lib
13 # inherit (libusbsio) version;
16 inherit pname version;
17 hash = "sha256-RdUhwilBOwg19ay3Po3zsxqlBV9FTy3btJDbO4YEKS8=";
20 # The source includes both the python module directly and also prebuilt binaries
21 # Delete the binaries and patch the wrapper to use binary from Nixpkgs instead
24 substituteInPlace libusbsio/libusbsio.py \
25 --replace "dllpath = LIBUSBSIO._lookup_dll_path(dfltdir, dllname)" 'dllpath = "${libusbsio}/lib/" + dllname'
28 buildInputs = [ libusbsio ];
30 doCheck = false; # they require a device to be connected over USB
32 pythonImportsCheck = [ "libusbsio" ];
35 description = "LIBUSBSIO Host Library for USB Enabled MCUs";
36 homepage = "https://www.nxp.com/design/design-center/software/development-software/libusbsio-host-library-for-usb-enabled-mcus:LIBUSBSIO";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [