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