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