linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / keepkey / default.nix
blob6b4568cd748dcebb8733d32c8eb4d2a41a08bfee
1 { lib, fetchFromGitHub, buildPythonPackage, pytest
2 , ecdsa , mnemonic, protobuf, hidapi, trezor }:
4 buildPythonPackage rec {
5   pname = "keepkey";
6   version = "6.6.0";
8   src = fetchFromGitHub {
9     owner = "keepkey";
10     repo = "python-keepkey";
11     rev = "v${version}";
12     sha256 = "1v0ns26ykskn0dpbvz9g6lz4q740qmahvddj3pc3rfbjvg43p3vh";
13   };
15   propagatedBuildInputs = [ protobuf hidapi trezor ];
17   buildInputs = [ ecdsa mnemonic ];
19   checkInputs = [ pytest ];
21   # tests requires hardware
22   doCheck = false;
24   # Remove impossible dependency constraint
25   postPatch = "sed -i -e 's|hidapi==|hidapi>=|' setup.py";
27   meta = with lib; {
28     description = "KeepKey Python client";
29     homepage = "https://github.com/keepkey/python-keepkey";
30     license = licenses.gpl3;
31     maintainers = with maintainers; [ np ];
32   };