summary refs log tree commit diff
diff options
context:
space:
mode:
authorrnhmjoj <micheleguerinirocco@me.com>2017-05-31 22:23:21 +0200
committerrnhmjoj <micheleguerinirocco@me.com>2017-06-01 00:15:16 +0200
commit9e61a82ab388be7b46a780ac999109cc9cc69478 (patch)
tree2e4d953e6dbb2b203b183867af3a5bddd390667b
parent7b4acc6626c631645b29e1486e81c5683fa82c7c (diff)
downloadnixpkgs-9e61a82ab388be7b46a780ac999109cc9cc69478.tar
nixpkgs-9e61a82ab388be7b46a780ac999109cc9cc69478.tar.gz
nixpkgs-9e61a82ab388be7b46a780ac999109cc9cc69478.tar.bz2
nixpkgs-9e61a82ab388be7b46a780ac999109cc9cc69478.tar.lz
nixpkgs-9e61a82ab388be7b46a780ac999109cc9cc69478.tar.xz
nixpkgs-9e61a82ab388be7b46a780ac999109cc9cc69478.tar.zst
nixpkgs-9e61a82ab388be7b46a780ac999109cc9cc69478.zip
pythonPackages.ecpy: init at 0.8.1
-rw-r--r--pkgs/development/python-modules/ecpy/default.nix22
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ecpy/default.nix b/pkgs/development/python-modules/ecpy/default.nix
new file mode 100644
index 00000000000..57549792d21
--- /dev/null
+++ b/pkgs/development/python-modules/ecpy/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, fetchPypi, buildPythonPackage, hidapi
+, pycrypto, pillow, protobuf, future, ecpy
+}:
+
+buildPythonPackage rec {
+  name = "${pname}-${version}";
+  pname = "ECPy";
+  version = "0.8.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0ab60sx4bbsmccwmdvz1023r0cbzi4phar4ipzn5npdj5gw1ny4l";
+  };
+
+  buildInputs = [ hidapi pycrypto pillow protobuf future ];
+
+  meta = with stdenv.lib; {
+    description = "Pure Pyhton Elliptic Curve Library";
+    homepage = "https://github.com/ubinity/ECPy";
+    license = licenses.asl20;
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 4f6060af235..25309c4d7a1 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -29632,6 +29632,8 @@ EOF
 
   mnemonic = callPackage ../development/python-modules/mnemonic.nix { };
 
+  ecpy = callPackage ../development/python-modules/ecpy { };
+
   trezor = callPackage ../development/python-modules/trezor.nix { };
 
   keepkey = buildPythonPackage rec{