python.pkgs.gunicorn: fix build

This commit is contained in:
Frederik Rietdijk
2018-06-22 13:09:49 +02:00
parent 363910dc7f
commit 303787e6f8
@@ -1,20 +1,20 @@
{ stdenv, buildPythonPackage, fetchurl { stdenv, buildPythonPackage, fetchPypi
, pytest, mock, pytestcov, coverage }: , pytest, mock, pytestcov, coverage }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "gunicorn"; pname = "gunicorn";
version = "19.8.1"; version = "19.8.1";
name = "${pname}-${version}";
src = fetchurl { src = fetchPypi {
url = "mirror://pypi/g/gunicorn/${name}.tar.gz"; inherit pname version;
sha256 = "bc59005979efb6d2dd7d5ba72d99f8a8422862ad17ff3a16e900684630dd2a10"; sha256 = "bc59005979efb6d2dd7d5ba72d99f8a8422862ad17ff3a16e900684630dd2a10";
}; };
buildInputs = [ pytest mock pytestcov coverage ]; checkInputs = [ pytest mock pytestcov coverage ];
prePatch = '' prePatch = ''
substituteInPlace requirements_test.txt --replace "==" ">=" substituteInPlace requirements_test.txt --replace "==" ">=" \
--replace "coverage>=4.0,<4.4" "coverage"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {