3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.hwi: init at 1.1.2

This commit is contained in:
Pavol Rusnak 2020-07-15 16:37:51 +02:00 committed by Jon
parent fd2c4f05f2
commit 64a8d0115b
4 changed files with 71 additions and 0 deletions
pkgs

View file

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchPypi
, mnemonic
, ecdsa
, typing-extensions
, hidapi
, libusb1
, pyaes
, trezor
, btchip
, ckcc-protocol
}:
buildPythonPackage rec {
pname = "hwi";
version = "1.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "eec460a51eb556500c1eca92015be246d5714cd53171407a76da71e4346048ae";
};
propagatedBuildInputs = [
mnemonic
ecdsa
typing-extensions
hidapi
libusb1
pyaes
trezor
btchip
ckcc-protocol
];
patches = [ ./relax-deps.patch ];
# tests are not packaged in the released tarball
doCheck = false;
pythonImportsCheck = [
"hwilib"
];
meta = {
description = "Bitcoin Hardware Wallet Interface";
homepage = "https://github.com/bitcoin-core/hwi";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ prusnak ];
};
}

View file

@ -0,0 +1,16 @@
--- a/setup.py
+++ b/setup.py
@@ -98,10 +98,10 @@ package_data = \
modules = \
['hwi', 'hwi-qt']
install_requires = \
-['ecdsa>=0.13.0,<0.14.0',
- 'hidapi>=0.7.99,<0.8.0',
+['ecdsa',
+ 'hidapi',
'libusb1>=1.7,<2.0',
+ 'mnemonic',
- 'mnemonic>=0.18.0,<0.19.0',
'pyaes>=1.6,<2.0',
'typing-extensions>=3.7,<4.0']

View file

@ -1055,6 +1055,8 @@ in
httperf = callPackage ../tools/networking/httperf { };
hwi = with python3Packages; toPythonApplication hwi;
ili2c = callPackage ../tools/misc/ili2c { };
imageworsener = callPackage ../tools/graphics/imageworsener { };

View file

@ -872,6 +872,8 @@ in {
httptools = callPackage ../development/python-modules/httptools { };
hwi = callPackage ../development/python-modules/hwi { };
i3ipc = callPackage ../development/python-modules/i3ipc { };
ignite = callPackage ../development/python-modules/ignite { };