about summary refs log tree commit diff
path: root/pkgs/development/python-modules/spake2/default.nix
blob: 98602e7d521b2cc7a6639f8b20a82f888bdbbd24 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch2,
  setuptools,
  cryptography,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "spake2";
  version = "0.9";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "warner";
    repo = "python-spake2";
    rev = "refs/tags/v${version}";
    hash = "sha256-WPMGH1OzG+5O+2lNl2sv06/dNardY+BHYDS290Z36vQ=";
  };

  build-system = [ setuptools ];

  dependencies = [ cryptography ];

  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 ];
  };
}