blob: de9c7995bde97bee39a667936fb41590865611c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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 ];
};
}
|