blob: 176322d932212ee508b8b5a7d2593d279b3f3333 (
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
41
42
43
44
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
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" ];
# tests rely on nose
doCheck = pythonOlder "3.12";
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;
};
}
|