diff --git a/pkgs/development/python-modules/hwi/default.nix b/pkgs/development/python-modules/hwi/default.nix index 7b6daf1fad05..d4d091c36f8b 100644 --- a/pkgs/development/python-modules/hwi/default.nix +++ b/pkgs/development/python-modules/hwi/default.nix @@ -31,6 +31,12 @@ buildPythonPackage rec { typing-extensions ]; + # make compatible with libusb1 2.x + postPatch = '' + substituteInPlace setup.py \ + --replace 'libusb1>=1.7,<2.0' 'libusb1>=1.7' + ''; + # tests require to clone quite a few firmwares doCheck = false;