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 # Test failures but patch does not apply cleanly
21 # https://github.com/benoitc/gunicorn/commit/f38f717539b1b7296720805b8ae3969c3509b9c1
22 doCheck = false;
23
24 meta = with stdenv.lib; {
25 homepage = https://pypi.python.org/pypi/gunicorn;
26 description = "WSGI HTTP Server for UNIX";
27 license = licenses.mit;
28 };
29}