Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / spake2 / default.nix
blob2ccd62fcdf15cb6f8a1b7951bf8ff5f5c2951a35
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , fetchpatch2
5 , setuptools
6 , hkdf
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "spake2";
12   version = "0.8";
13   pyproject = true;
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "c17a614b29ee4126206e22181f70a406c618d3c6c62ca6d6779bce95e9c926f4";
18   };
20   patches = [
21     # https://github.com/warner/python-spake2/pull/16
22     (fetchpatch2 {
23       name = "python312-compat.patch";
24       url = "https://github.com/warner/python-spake2/commit/1b04d33106b105207c97c64b2589c45790720b0b.patch";
25       hash = "sha256-OoBz0lN17VyVGg6UfT+Zj9M1faFTNpPIhxrwCgUwMc8=";
26     })
27   ];
29   nativeBuildInputs = [
30     setuptools
31   ];
33   propagatedBuildInputs = [
34     hkdf
35   ];
37   pythonImportsCheck = [ "spake2" ];
39   nativeCheckInputs = [
40     pytestCheckHook
41   ];
43   meta = with lib; {
44     changelog = "https://github.com/warner/python-spake2/blob/v${version}/NEWS";
45     description = "SPAKE2 password-authenticated key exchange library";
46     homepage = "https://github.com/warner/python-spake2";
47     license = licenses.mit;
48     maintainers = with maintainers; [ dotlambda ];
49   };