From 3c83ce30142426807dd7fdef02e2e404f6ad5d9e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 30 May 2017 17:47:00 +0200 Subject: [PATCH] pythonPackages.pytest-localserver: 0.3.5 -> 0.3.7 (#26238) * pythonPackages.pytest-localserver: 0.3.5 -> 0.3.7 * pythonPackages.pytest-localserver: Change to use python packaging tools * pythonPackages.pytest-localserver: Move to own file --- .../pytest-localserver/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 23 +------------ 2 files changed, 34 insertions(+), 22 deletions(-) create mode 100644 pkgs/development/python-modules/pytest-localserver/default.nix diff --git a/pkgs/development/python-modules/pytest-localserver/default.nix b/pkgs/development/python-modules/pytest-localserver/default.nix new file mode 100644 index 000000000000..fdd1986c04fc --- /dev/null +++ b/pkgs/development/python-modules/pytest-localserver/default.nix @@ -0,0 +1,33 @@ +{ buildPythonPackage +, lib +, fetchPypi +, requests +, pytest +, six +, werkzeug +}: + +buildPythonPackage rec { + pname = "pytest-localserver"; + name = "${pname}-${version}"; + version = "0.3.7"; + + src = fetchPypi { + inherit pname version; + sha256 = "1c11hn61n06ms0wmw6536vs5k4k9hlndxsb3p170nva56a9dfa6q"; + }; + + propagatedBuildInputs = [ werkzeug ]; + buildInputs = [ pytest six requests ]; + + checkPhase = '' + py.test + ''; + + meta = { + description = "Plugin for the pytest testing framework to test server connections locally"; + homepage = https://pypi.python.org/pypi/pytest-localserver; + license = lib.licenses.mit; + }; +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e9f2f0f19d2a..1f10fac50410 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5281,28 +5281,7 @@ in { pytest_xdist = callPackage ../development/python-modules/pytest-xdist { }; - pytest-localserver = buildPythonPackage rec { - name = "pytest-localserver-${version}"; - version = "0.3.5"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pytest-localserver/${name}.tar.gz"; - sha256 = "0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p"; - }; - - propagatedBuildInputs = with self; [ werkzeug ]; - buildInputs = with self; [ pytest six requests ]; - - checkPhase = '' - py.test - ''; - - meta = { - description = "Plugin for the pytest testing framework to test server connections locally"; - homepage = https://pypi.python.org/pypi/pytest-localserver; - license = licenses.mit; - }; - }; + pytest-localserver = callPackage ../development/python-modules/pytest-localserver { }; pytest-subtesthack = buildPythonPackage rec { name = "pytest-subtesthack-${version}";