From ed8e11e6a55f2cfed7fa8f683f974527adf65129 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 24 Oct 2021 16:26:21 +0200 Subject: [PATCH] python3Packages.hwi: make compatible with libusb1 2.x --- pkgs/development/python-modules/hwi/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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;