1 { lib, fetchFromGitHub, buildPythonPackage, pytest
2 , ecdsa , mnemonic, protobuf, hidapi, trezor }:
4 buildPythonPackage rec {
8 src = fetchFromGitHub {
10 repo = "python-keepkey";
12 sha256 = "1v0ns26ykskn0dpbvz9g6lz4q740qmahvddj3pc3rfbjvg43p3vh";
15 propagatedBuildInputs = [ protobuf hidapi trezor ];
17 buildInputs = [ ecdsa mnemonic ];
19 checkInputs = [ pytest ];
21 # tests requires hardware
24 # Remove impossible dependency constraint
25 postPatch = "sed -i -e 's|hidapi==|hidapi>=|' setup.py";
28 description = "KeepKey Python client";
29 homepage = "https://github.com/keepkey/python-keepkey";
30 license = licenses.gpl3;
31 maintainers = with maintainers; [ np ];