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