diff options
author | rnhmjoj <micheleguerinirocco@me.com> | 2017-05-31 22:35:41 +0200 |
---|---|---|
committer | rnhmjoj <micheleguerinirocco@me.com> | 2017-06-01 00:48:31 +0200 |
commit | b236fa54aa87f87145ac291e7e5a380a23e2e6a0 (patch) | |
tree | 1e824e1abc622515e8e09189a72c50d26e5eba80 /pkgs/development/python-modules | |
parent | 6c0e6eeb58f6047a8c13754568e631f8e5a8e451 (diff) | |
download | nixpkgs-b236fa54aa87f87145ac291e7e5a380a23e2e6a0.tar nixpkgs-b236fa54aa87f87145ac291e7e5a380a23e2e6a0.tar.gz nixpkgs-b236fa54aa87f87145ac291e7e5a380a23e2e6a0.tar.bz2 nixpkgs-b236fa54aa87f87145ac291e7e5a380a23e2e6a0.tar.lz nixpkgs-b236fa54aa87f87145ac291e7e5a380a23e2e6a0.tar.xz nixpkgs-b236fa54aa87f87145ac291e7e5a380a23e2e6a0.tar.zst nixpkgs-b236fa54aa87f87145ac291e7e5a380a23e2e6a0.zip |
pythonPackages.keepkey: fix impossible constraint
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/keepkey/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/keepkey/default.nix b/pkgs/development/python-modules/keepkey/default.nix new file mode 100644 index 00000000000..0d7f7661e7d --- /dev/null +++ b/pkgs/development/python-modules/keepkey/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchPypi, buildPythonPackage, ecdsa +, mnemonic, protobuf3_0, hidapi }: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "keepkey"; + version = "0.7.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "14d2r8dlx997ypgma2k8by90acw7i3l7hfq4gar9lcka0lqfj714"; + }; + + propagatedBuildInputs = [ protobuf3_0 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 ]; + }; +} |