summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2017-03-11 13:49:23 +0100
committerJoachim Fasting <joachifm@fastmail.fm>2017-03-11 19:26:22 +0100
commit10a0f1c2afcaa593d2cc491cee8a7bc889903874 (patch)
treed6b978bfa6a1593895e6b06098f3b5d2dd9fe577 /pkgs
parent286917bfc983599d75d248a255e66234a4e8ddb9 (diff)
downloadnixpkgs-10a0f1c2afcaa593d2cc491cee8a7bc889903874.tar
nixpkgs-10a0f1c2afcaa593d2cc491cee8a7bc889903874.tar.gz
nixpkgs-10a0f1c2afcaa593d2cc491cee8a7bc889903874.tar.bz2
nixpkgs-10a0f1c2afcaa593d2cc491cee8a7bc889903874.tar.lz
nixpkgs-10a0f1c2afcaa593d2cc491cee8a7bc889903874.tar.xz
nixpkgs-10a0f1c2afcaa593d2cc491cee8a7bc889903874.tar.zst
nixpkgs-10a0f1c2afcaa593d2cc491cee8a7bc889903874.zip
pythonPackages.trezor: 0.7.4 -> 0.7.12
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/trezor.nix26
-rw-r--r--pkgs/top-level/python-packages.nix24
2 files changed, 27 insertions, 23 deletions
diff --git a/pkgs/development/python-modules/trezor.nix b/pkgs/development/python-modules/trezor.nix
new file mode 100644
index 00000000000..36bf0c15de2
--- /dev/null
+++ b/pkgs/development/python-modules/trezor.nix
@@ -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 ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 11ebfad988c..13a749182e3 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -30799,29 +30799,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";