about summary refs log tree commit diff
path: root/pkgs/development/python-modules/hkdf/default.nix
blob: f04e486fd73cad5831cb6539bf78f0d11182aff9 (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
32
33
34
35
36
37
38
39
40
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  nose,
  setuptools,
}:

buildPythonPackage {
  pname = "hkdf";
  version = "0.0.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "casebeer";
    repo = "python-hkdf";
    rev = "cc3c9dbf0a271b27a7ac5cd04cc1485bbc3b4307";
    hash = "sha256-i3vJzUI7dpZbgZkz7Agd5RAeWisNWftdk/mkJBZkkLg=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "hkdf" ];

  nativeCheckInputs = [ nose ];

  checkPhase = ''
    runHook preCheck

    nosetests

    runHook postCheck
  '';

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