about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/spake2/default.nix
blob: 87d05612e7125580b2fb93436b4b1334bb70158a (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
{ lib, buildPythonPackage, fetchPypi, hkdf, pytest }:

buildPythonPackage rec {
  pname = "spake2";
  version = "0.8";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "c17a614b29ee4126206e22181f70a406c618d3c6c62ca6d6779bce95e9c926f4";
  };

  nativeCheckInputs = [ pytest ];

  propagatedBuildInputs = [ hkdf ];

  checkPhase = ''
    py.test $out
  '';

  meta = with lib; {
    description = "SPAKE2 password-authenticated key exchange library";
    homepage = "https://github.com/warner/python-spake2";
    license = licenses.mit;
  };
}