nixpkgs/pkgs/development/python-modules/keepkey/default.nix

31 lines
800 B
Nix
Raw Normal View History

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