From 1f5b7484a3b423fc3de67835edc031bdea44fcea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 14 Jan 2017 00:08:19 +0100 Subject: [PATCH] pythonPackages.gunicorn: 19.1.0 -> 19.3.0 --- pkgs/development/python-modules/gunicorn.nix | 23 ++++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +------------- 2 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/gunicorn.nix diff --git a/pkgs/development/python-modules/gunicorn.nix b/pkgs/development/python-modules/gunicorn.nix new file mode 100644 index 000000000000..026e9df360ce --- /dev/null +++ b/pkgs/development/python-modules/gunicorn.nix @@ -0,0 +1,23 @@ +{ stdenv, buildPythonPackage, fetchurl +, pytest, mock, pytestcov, coverage }: + +buildPythonPackage rec { + name = "gunicorn-19.3.0"; + + src = fetchurl { + url = "mirror://pypi/g/gunicorn/${name}.tar.gz"; + sha256 = "12d0jd9y9fyssc28mn8j6nzrck8y05hc946p5h0rmbc25043bj4b"; + }; + + buildInputs = [ pytest mock pytestcov coverage ]; + + prePatch = '' + substituteInPlace requirements_test.txt --replace "==" ">=" + ''; + + meta = with stdenv.lib; { + homepage = http://pypi.python.org/pypi/gunicorn; + description = "WSGI HTTP Server for UNIX"; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1d5ccf6c170f..639d7dc5bc2a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12418,21 +12418,7 @@ in { }; }; - gunicorn = buildPythonPackage rec { - name = "gunicorn-19.1.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/g/gunicorn/${name}.tar.gz"; - sha256 = "ae1dd6452f62b3470bc9acaf62cb5301545fbb9c697d863a5bfe35097ed7a0b3"; - }; - - buildInputs = with self; [ pytest ]; - - meta = { - homepage = http://pypi.python.org/pypi/gunicorn; - description = "WSGI HTTP Server for UNIX"; - }; - }; + gunicorn = callPackage ../development/python-modules/gunicorn.nix { }; hawkauthlib = buildPythonPackage rec { name = "hawkauthlib-${version}";