From d95b811f31d7a946a211d3fad38e82626615c56f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 19 Feb 2018 13:23:53 +0100 Subject: [PATCH] pythonPackages.spake2: 0.7 -> 0.8 --- .../python-modules/spake2/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 24 +----------------- 2 files changed, 26 insertions(+), 23 deletions(-) create mode 100644 pkgs/development/python-modules/spake2/default.nix diff --git a/pkgs/development/python-modules/spake2/default.nix b/pkgs/development/python-modules/spake2/default.nix new file mode 100644 index 000000000000..08500aeb4ad1 --- /dev/null +++ b/pkgs/development/python-modules/spake2/default.nix @@ -0,0 +1,25 @@ +{ lib, buildPythonPackage, fetchPypi, hkdf, pytest }: + +buildPythonPackage rec { + pname = "spake2"; + version = "0.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "c17a614b29ee4126206e22181f70a406c618d3c6c62ca6d6779bce95e9c926f4"; + }; + + checkInputs = [ pytest ]; + + propagatedBuildInputs = [ hkdf ]; + + checkPhase = '' + py.test $out + ''; + + meta = with lib; { + description = "SPAKE2 password-authenticated key exchange library"; + homepage = "http://github.com/warner/python-spake2"; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3a19a7acb03c..bdfa2c80d916 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15889,29 +15889,7 @@ in { }; }; - spake2 = buildPythonPackage rec { - name = "spake2-${version}"; - version = "0.7"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/spake2/${name}.tar.gz"; - sha256 = "0rmplicbbid41qrvwc1ckyp211ban01ardms5yqqq16ixrc18a6j"; - }; - - buildInputs = with self; [ pytest ]; - - propagatedBuildInputs = with self; [ hkdf ]; - - checkPhase = '' - py.test $out - ''; - - meta = { - description = "SPAKE2 password-authenticated key exchange library"; - homepage = "http://github.com/warner/python-spake2"; - license = licenses.mit; - }; - }; + spake2 = callPackage ../development/python-modules/spake2 { }; sphfile = callPackage ../development/python-modules/sphfile { };