about summary refs log tree commit diff
path: root/pkgs/development/python-modules/keepkey/default.nix
blob: 3e58e9e3e03de32b960646fdc1252f75af9d2f6b (plain) (blame)
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
{ stdenv, fetchPypi, buildPythonPackage, ecdsa
, mnemonic, protobuf, hidapi }:

buildPythonPackage rec {
  name = "${pname}-${version}";
  pname = "keepkey";
  version = "0.7.3";

  src = fetchPypi {
    inherit pname version;
    sha256 = "14d2r8dlx997ypgma2k8by90acw7i3l7hfq4gar9lcka0lqfj714";
  };

  propagatedBuildInputs = [ protobuf hidapi ];

  buildInputs = [ ecdsa mnemonic ];

  # There are no actual tests: "ImportError: No module named tests"
  doCheck = false;

  # Remove impossible dependency constraint
  postPatch = "sed -i -e 's|hidapi==|hidapi>=|' setup.py";

  meta = with stdenv.lib; {
    description = "KeepKey Python client";
    homepage = https://github.com/keepkey/python-keepkey;
    license = licenses.gpl3;
    maintainers = with maintainers; [ np ];
  };
}