diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-06-22 12:04:17 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-06-22 13:09:49 +0200 |
commit | 303787e6f8e0c7a38677cc5eef1120bfed286161 (patch) | |
tree | 28ce05d6625018ff83991d1841a1bb7dc520b292 /pkgs | |
parent | 363910dc7fde19b35513f1a4f3c88cdc9f043e57 (diff) | |
download | nixlib-303787e6f8e0c7a38677cc5eef1120bfed286161.tar nixlib-303787e6f8e0c7a38677cc5eef1120bfed286161.tar.gz nixlib-303787e6f8e0c7a38677cc5eef1120bfed286161.tar.bz2 nixlib-303787e6f8e0c7a38677cc5eef1120bfed286161.tar.lz nixlib-303787e6f8e0c7a38677cc5eef1120bfed286161.tar.xz nixlib-303787e6f8e0c7a38677cc5eef1120bfed286161.tar.zst nixlib-303787e6f8e0c7a38677cc5eef1120bfed286161.zip |
python.pkgs.gunicorn: fix build
Diffstat (limited to 'pkgs')
-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; { |