summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/spake2/default.nix
blob: ac7f317793ceb6c1f10342181c9f616e92dc89f4 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  cryptography,
  pytestCheckHook,
}:

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

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

  build-system = [ setuptools ];

  dependencies = [ cryptography ];

  pythonImportsCheck = [ "spake2" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    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 = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}