python3Packages.hwi: 1.2.1 -> 2.0.0

This commit is contained in:
Pavol Rusnak 2021-03-05 23:23:06 +01:00
parent b2e2f0422f
commit d80b3b0f64
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -7,28 +7,20 @@
, libusb1 , libusb1
, mnemonic , mnemonic
, pyaes , pyaes
, pythonAtLeast , typing-extensions
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "hwi"; pname = "hwi";
version = "1.2.1"; version = "2.0.0";
disabled = pythonAtLeast "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bitcoin-core"; owner = "bitcoin-core";
repo = "HWI"; repo = "HWI";
rev = version; 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 = [ propagatedBuildInputs = [
bitbox02 bitbox02
ecdsa ecdsa
@ -36,6 +28,7 @@ buildPythonPackage rec {
libusb1 libusb1
mnemonic mnemonic
pyaes pyaes
typing-extensions
]; ];
# tests require to clone quite a few firmwares # tests require to clone quite a few firmwares