1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 nose,
6}:
7
8buildPythonPackage rec {
9 pname = "hkdf";
10 version = "0.0.3";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "1jhxk5vhxmxxjp3zj526ry521v9inzzl8jqaaf0ma65w6k332ak2";
16 };
17
18 nativeCheckInputs = [ nose ];
19
20 checkPhase = ''
21 nosetests
22 '';
23
24 # no tests in PyPI tarball
25 doCheck = false;
26
27 meta = with lib; {
28 description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)";
29 homepage = "https://github.com/casebeer/python-hkdf";
30 license = licenses.bsd2;
31 };
32}