2017-05-31 22:35:41 +02:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, ecdsa
|
2017-09-05 17:11:41 +02:00
|
|
|
, mnemonic, protobuf, hidapi }:
|
2017-05-31 22:35:41 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "keepkey";
|
2017-10-25 20:04:35 +02:00
|
|
|
version = "4.0.0";
|
2017-05-31 22:35:41 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 20:04:35 +02:00
|
|
|
sha256 = "95c8d5127919f9fc4bb0120b05f92efc8f526d4a68122ac18e63509571ac45a2";
|
2017-05-31 22:35:41 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 17:11:41 +02:00
|
|
|
propagatedBuildInputs = [ protobuf hidapi ];
|
2017-05-31 22:35:41 +02:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|