about summary refs log tree commit diff
path: root/pkgs/development/python-modules/hkdf
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-16 17:12:17 -0400
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2018-10-18 11:02:23 +0200
commit8a821466cdab051df2156f6a8d9fb2b1bad6212f (patch)
tree56a49fe5650b14d79ba1d6d0603e616c4747bbb3 /pkgs/development/python-modules/hkdf
parent45bbac9091a406f68a63a639d3c5ad2730d27510 (diff)
pythonPackages.hkdf: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/hkdf')
-rw-r--r--pkgs/development/python-modules/hkdf/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hkdf/default.nix b/pkgs/development/python-modules/hkdf/default.nix
new file mode 100644
index 0000000000000..3a159e6d3493c
--- /dev/null
+++ b/pkgs/development/python-modules/hkdf/default.nix
@@ -0,0 +1,28 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, nose
+}:
+
+buildPythonPackage rec {
+  pname = "hkdf";
+  version = "0.0.3";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1jhxk5vhxmxxjp3zj526ry521v9inzzl8jqaaf0ma65w6k332ak2";
+  };
+
+  buildInputs = [ nose ];
+
+  checkPhase = ''
+    nosetests
+  '';
+
+  meta = with stdenv.lib; {
+    description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)";
+    homepage = "https://github.com/casebeer/python-hkdf";
+    license = licenses.bsd2;
+  };
+
+}