1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 cryptography,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "spake2";
12 version = "0.9";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "warner";
17 repo = "python-spake2";
18 tag = "v${version}";
19 hash = "sha256-WPMGH1OzG+5O+2lNl2sv06/dNardY+BHYDS290Z36vQ=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ cryptography ];
25
26 pythonImportsCheck = [ "spake2" ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 meta = with lib; {
31 changelog = "https://github.com/warner/python-spake2/blob/v${version}/NEWS";
32 description = "SPAKE2 password-authenticated key exchange library";
33 homepage = "https://github.com/warner/python-spake2";
34 license = licenses.mit;
35 maintainers = with maintainers; [ dotlambda ];
36 };
37}