Skip to content

Commit

Permalink
pythonPackages.trezor: 0.7.4 -> 0.7.12
Browse files Browse the repository at this point in the history
(cherry picked from commit 10a0f1c)

For electrum
  • Loading branch information
joachifm committed Mar 23, 2017
1 parent 6b3a77a commit 040b9f4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/trezor.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib, fetchurl, buildPythonPackage, protobuf3_0, hidapi, ecdsa, mnemonic }:

buildPythonPackage rec {
pname = "trezor";
version = "0.7.12";
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://pypi/t/${pname}/${name}.tar.gz";
sha256 = "0ryqdk13x60qq5s68i9dfc1na4dka66kdxqycxignzg9k9ykaa8g";
};

propagatedBuildInputs = [ protobuf3_0 hidapi ];

buildInputs = [ ecdsa mnemonic ];

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

meta = {
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
homepage = https://github.com/trezor/python-trezor;
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ np ];
};
}
24 changes: 1 addition & 23 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30847,29 +30847,7 @@ EOF
};
};

trezor = buildPythonPackage rec{
version = "0.7.4";
name = "trezor-${version}";

src = pkgs.fetchurl {
url = "mirror://pypi/t/trezor/${name}.tar.gz";
sha256 = "18nr76jkdg24sb3r8cfbiq12b95gnh0amc0r1wx9mmg3pwq6jx6y";
};

propagatedBuildInputs = with self; [ protobuf3_0 hidapi ];

buildInputs = with self; [ ecdsa mnemonic ];

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

meta = {
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
homepage = https://github.com/trezor/python-trezor;
license = licenses.gpl3;
maintainers = with maintainers; [ np ];
};
};
trezor = callPackage ../development/python-modules/trezor.nix { };

keepkey = buildPythonPackage rec{
version = "0.7.3";
Expand Down

0 comments on commit 040b9f4

Please sign in to comment.