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-03-05 23:23:06 +0100
committerPavol Rusnak <pavol@rusnak.io>2021-03-17 10:57:47 +0100
commitd80b3b0f64295ee9d91c73b21c03362586ca352c (patch)
tree9242b1ed1c42b2ca75f7c0b356ee497377802b4e /pkgs/development/python-modules/hwi
parentb2e2f0422f23e5943fcccd5f067f756655327706 (diff)
python3Packages.hwi: 1.2.1 -> 2.0.0
Diffstat (limited to 'pkgs/development/python-modules/hwi')
-rw-r--r--pkgs/development/python-modules/hwi/default.nix15
1 files changed, 4 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/hwi/default.nix b/pkgs/development/python-modules/hwi/default.nix
index 7c34235a190b9..0b52402ed4410 100644
--- a/pkgs/development/python-modules/hwi/default.nix
+++ b/pkgs/development/python-modules/hwi/default.nix
@@ -7,28 +7,20 @@
 , libusb1
 , mnemonic
 , pyaes
-, pythonAtLeast
+, typing-extensions
 }:
 
 buildPythonPackage rec {
   pname = "hwi";
-  version = "1.2.1";
-  disabled = pythonAtLeast "3.9";
+  version = "2.0.0";
 
   src = fetchFromGitHub {
     owner = "bitcoin-core";
     repo = "HWI";
     rev = version;
-    sha256 = "0fs3152lw7y5l9ssr5as8gd739m9lb7wxpv1vc5m77k5nw7l8ax5";
+    sha256 = "0m8maxhjpfxnkry2l0x8143m1gmds8mbwyd9flnkfipxz0r0xwbr";
   };
 
-  postPatch = ''
-    substituteInPlace setup.py \
-      --replace "'ecdsa>=0.13.0,<0.14.0'" "'ecdsa'" \
-      --replace "'hidapi>=0.7.99,<0.8.0'" "'hidapi'" \
-      --replace "'mnemonic>=0.18.0,<0.19.0'" "'mnemonic'"
-  '';
-
   propagatedBuildInputs = [
     bitbox02
     ecdsa
@@ -36,6 +28,7 @@ buildPythonPackage rec {
     libusb1
     mnemonic
     pyaes
+    typing-extensions
   ];
 
   # tests require to clone quite a few firmwares