blob: 6431791d65e68e9dbfb673a5208437f6bc63b304 (
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.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "d0d220a4967d7f106b828b12a98b78c220d609d7cc6c811898e24fcf1a6f04f3";
};
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 ];
};
}
|