python3Packages.gunicorn: add setuptools
This commit is contained in:
parent
7233afc886
commit
353c83adde
@ -1,5 +1,10 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pytest, mock, pytestcov, coverage }:
|
||||
, coverage
|
||||
, mock
|
||||
, pytest
|
||||
, pytestcov
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gunicorn";
|
||||
@ -10,6 +15,8 @@ buildPythonPackage rec {
|
||||
sha256 = "fa2662097c66f920f53f70621c6c58ca4a3c4d3434205e608e121b5b3b71f4f3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ setuptools ];
|
||||
|
||||
checkInputs = [ pytest mock pytestcov coverage ];
|
||||
|
||||
prePatch = ''
|
||||
@ -17,9 +24,12 @@ buildPythonPackage rec {
|
||||
--replace "coverage>=4.0,<4.4" "coverage"
|
||||
'';
|
||||
|
||||
# Test failures but patch does not apply cleanly
|
||||
# https://github.com/benoitc/gunicorn/commit/f38f717539b1b7296720805b8ae3969c3509b9c1
|
||||
doCheck = false;
|
||||
# better than no tests
|
||||
checkPhase = ''
|
||||
$out/bin/gunicorn --help > /dev/null
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "gunicorn" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://pypi.python.org/pypi/gunicorn;
|
||||
|
Loading…
Reference in New Issue
Block a user