@@ -12472,6 +12472,28 @@ in {
1247212472 };
1247312473 };
1247412474
12475+ hkdf = buildPythonPackage rec {
12476+ name = "hkdf-${version}";
12477+ version = "0.0.3";
12478+
12479+ src = pkgs.fetchurl {
12480+ url = "mirror://pypi/h/hkdf/${name}.tar.gz";
12481+ sha256 = "1jhxk5vhxmxxjp3zj526ry521v9inzzl8jqaaf0ma65w6k332ak2";
12482+ };
12483+
12484+ buildInputs = with self; [ nose ];
12485+
12486+ checkPhase = ''
12487+ nosetests
12488+ '';
12489+
12490+ meta = {
12491+ description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)";
12492+ homepage = "https://github.com/casebeer/python-hkdf";
12493+ license = licenses.bsd2;
12494+ };
12495+ };
12496+
1247512497 httpretty = buildPythonPackage rec {
1247612498 name = "httpretty-${version}";
1247712499 version = "0.8.10";
@@ -13784,7 +13806,6 @@ in {
1378413806 };
1378513807 };
1378613808
13787−
1378813809 m2crypto = buildPythonPackage rec {
1378913810 version = "0.24.0";
1379013811 name = "m2crypto-${version}";
@@ -23129,6 +23150,30 @@ in {
2312923150 };
2313023151 };
2313123152
23153+ spake2 = buildPythonPackage rec {
23154+ name = "spake2-${version}";
23155+ version = "0.7";
23156+
23157+ src = pkgs.fetchurl {
23158+ url = "mirror://pypi/s/spake2/${name}.tar.gz";
23159+ sha256 = "0rmplicbbid41qrvwc1ckyp211ban01ardms5yqqq16ixrc18a6j";
23160+ };
23161+
23162+ buildInputs = with self; [ pytest ];
23163+
23164+ propagatedBuildInputs = with self; [ hkdf ];
23165+
23166+ checkPhase = ''
23167+ py.test $out
23168+ '';
23169+
23170+ meta = {
23171+ description = "SPAKE2 password-authenticated key exchange library";
23172+ homepage = "http://github.com/warner/python-spake2";
23173+ license = licenses.mit;
23174+ };
23175+ };
23176+
2313223177 sqlite3dbm = buildPythonPackage rec {
2313323178 name = "sqlite3dbm-0.1.4";
2313423179 disabled = isPy3k;