diff options
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/gunicorn/default.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/gunicorn/default.nix b/pkgs/development/python-modules/gunicorn/default.nix index 30fbbc519246..efc42dedc655 100644 --- a/pkgs/development/python-modules/gunicorn/default.nix +++ b/pkgs/development/python-modules/gunicorn/default.nix @@ -1,20 +1,20 @@ -{ stdenv, buildPythonPackage, fetchurl +{ stdenv, buildPythonPackage, fetchPypi , pytest, mock, pytestcov, coverage }: buildPythonPackage rec { pname = "gunicorn"; version = "19.8.1"; - name = "${pname}-${version}"; - src = fetchurl { - url = "mirror://pypi/g/gunicorn/${name}.tar.gz"; + src = fetchPypi { + inherit pname version; sha256 = "bc59005979efb6d2dd7d5ba72d99f8a8422862ad17ff3a16e900684630dd2a10"; }; - buildInputs = [ pytest mock pytestcov coverage ]; + checkInputs = [ pytest mock pytestcov coverage ]; prePatch = '' - substituteInPlace requirements_test.txt --replace "==" ">=" + substituteInPlace requirements_test.txt --replace "==" ">=" \ + --replace "coverage>=4.0,<4.4" "coverage" ''; meta = with stdenv.lib; { |