about summary refs log tree commit diff
path: root/pkgs/development/python-modules/hwi
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2021-10-24 16:26:21 +0200
committerPavol Rusnak <pavol@rusnak.io>2021-10-24 16:26:21 +0200
commited8e11e6a55f2cfed7fa8f683f974527adf65129 (patch)
tree78c6290cd0975ca55d02cb0fc1d7ca1f93aebdc5 /pkgs/development/python-modules/hwi
parentda675ab0ef8ac399a2c022bbfaf7931b18b86831 (diff)
python3Packages.hwi: make compatible with libusb1 2.x
Diffstat (limited to 'pkgs/development/python-modules/hwi')
-rw-r--r--pkgs/development/python-modules/hwi/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hwi/default.nix b/pkgs/development/python-modules/hwi/default.nix
index 7b6daf1fad05b..d4d091c36f8be 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;