pythonPackages.hkdf: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov
2018-10-16 17:12:17 -04:00
committed by Frederik Rietdijk
parent 45bbac9091
commit 8a821466cd
2 changed files with 29 additions and 21 deletions

View File

@@ -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;
};
}