summary refs log tree commit diff
path: root/pkgs/development/python-modules/hkdf/default.nix
blob: 43e7a8f4ce3535eb7b34516aa364ef74b4a1ce23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, buildPythonPackage
, fetchPypi
, nose
}:

buildPythonPackage rec {
  pname = "hkdf";
  version = "0.0.3";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1jhxk5vhxmxxjp3zj526ry521v9inzzl8jqaaf0ma65w6k332ak2";
  };

  checkInputs = [ nose ];

  checkPhase = ''
    nosetests
  '';

  # no tests in PyPI tarball
  doCheck = false;

  meta = with lib; {
    description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)";
    homepage = "https://github.com/casebeer/python-hkdf";
    license = licenses.bsd2;
  };

}