1{ stdenv, buildPythonPackage, fetchPypi 2, pytest, mock, pytestcov, coverage }: 3 4buildPythonPackage rec { 5 pname = "gunicorn"; 6 version = "19.9.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "fa2662097c66f920f53f70621c6c58ca4a3c4d3434205e608e121b5b3b71f4f3"; 11 }; 12 13 checkInputs = [ pytest mock pytestcov coverage ]; 14 15 prePatch = '' 16 substituteInPlace requirements_test.txt --replace "==" ">=" \ 17 --replace "coverage>=4.0,<4.4" "coverage" 18 ''; 19 20 meta = with stdenv.lib; { 21 homepage = https://pypi.python.org/pypi/gunicorn; 22 description = "WSGI HTTP Server for UNIX"; 23 license = licenses.mit; 24 }; 25}