summary refs log tree commit diff
path: root/pkgs/development/python-modules/gunicorn
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-11-25 13:22:02 -0800
committerJon <jonringer@users.noreply.github.com>2019-11-27 22:27:02 -0800
commit353c83addeadda978b0d79daba2030dd0d5e8908 (patch)
treed75f5ff7a3cdd1d46768f77ff9f368a1dd97f122 /pkgs/development/python-modules/gunicorn
parent7233afc8865ce78ef96a957a8fca079f690d70c9 (diff)
downloadnixpkgs-353c83addeadda978b0d79daba2030dd0d5e8908.tar
nixpkgs-353c83addeadda978b0d79daba2030dd0d5e8908.tar.gz
nixpkgs-353c83addeadda978b0d79daba2030dd0d5e8908.tar.bz2
nixpkgs-353c83addeadda978b0d79daba2030dd0d5e8908.tar.lz
nixpkgs-353c83addeadda978b0d79daba2030dd0d5e8908.tar.xz
nixpkgs-353c83addeadda978b0d79daba2030dd0d5e8908.tar.zst
nixpkgs-353c83addeadda978b0d79daba2030dd0d5e8908.zip
python3Packages.gunicorn: add setuptools
Diffstat (limited to 'pkgs/development/python-modules/gunicorn')
-rw-r--r--pkgs/development/python-modules/gunicorn/default.nix18
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/gunicorn/default.nix b/pkgs/development/python-modules/gunicorn/default.nix
index 58d5c414cf0..16c6921cdd6 100644
--- a/pkgs/development/python-modules/gunicorn/default.nix
+++ b/pkgs/development/python-modules/gunicorn/default.nix
@@ -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;