python.pkgs.gunicorn: fix build

This commit is contained in:
Frederik Rietdijk 2018-06-22 12:04:17 +02:00
parent 363910dc7f
commit 303787e6f8

View File

@ -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; {