2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 21:12:17 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hkdf";
|
|
|
|
version = "0.0.3";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1jhxk5vhxmxxjp3zj526ry521v9inzzl8jqaaf0ma65w6k332ak2";
|
|
|
|
};
|
|
|
|
|
2019-02-14 14:09:31 +00:00
|
|
|
checkInputs = [ nose ];
|
2018-10-16 21:12:17 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2019-02-14 14:09:31 +00:00
|
|
|
# no tests in PyPI tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 21:12:17 +00:00
|
|
|
description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)";
|
|
|
|
homepage = "https://github.com/casebeer/python-hkdf";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|