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

31 lines
788 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";
version = "0.7.3";
src = fetchPypi {
inherit pname version;
sha256 = "14d2r8dlx997ypgma2k8by90acw7i3l7hfq4gar9lcka0lqfj714";
};
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 ];
};
}