blob: 956c15ab0b0ea90c4a39a979139768dd3b7b9da2 (
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
45
|
{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch2,
setuptools,
hkdf,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "spake2";
version = "0.8";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "c17a614b29ee4126206e22181f70a406c618d3c6c62ca6d6779bce95e9c926f4";
};
patches = [
# https://github.com/warner/python-spake2/pull/16
(fetchpatch2 {
name = "python312-compat.patch";
url = "https://github.com/warner/python-spake2/commit/1b04d33106b105207c97c64b2589c45790720b0b.patch";
hash = "sha256-OoBz0lN17VyVGg6UfT+Zj9M1faFTNpPIhxrwCgUwMc8=";
})
];
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ hkdf ];
pythonImportsCheck = [ "spake2" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
changelog = "https://github.com/warner/python-spake2/blob/v${version}/NEWS";
description = "SPAKE2 password-authenticated key exchange library";
homepage = "https://github.com/warner/python-spake2";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}
|