1{ lib, buildPythonPackage, fetchPypi, hkdf, pytest }:
2
3buildPythonPackage rec {
4 pname = "spake2";
5 version = "0.8";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "c17a614b29ee4126206e22181f70a406c618d3c6c62ca6d6779bce95e9c926f4";
10 };
11
12 checkInputs = [ pytest ];
13
14 propagatedBuildInputs = [ hkdf ];
15
16 checkPhase = ''
17 py.test $out
18 '';
19
20 meta = with lib; {
21 description = "SPAKE2 password-authenticated key exchange library";
22 homepage = "http://github.com/warner/python-spake2";
23 license = licenses.mit;
24 };
25}