diff --git a/pkgs/development/python-modules/gunicorn/default.nix b/pkgs/development/python-modules/gunicorn/default.nix index 64f8e0c400c..58d712739d6 100644 --- a/pkgs/development/python-modules/gunicorn/default.nix +++ b/pkgs/development/python-modules/gunicorn/default.nix @@ -25,6 +25,10 @@ buildPythonPackage rec { # https://github.com/benoitc/gunicorn/commit/f38f717539b1b7296720805b8ae3969c3509b9c1 doCheck = false; + postFixup = '' + sed -i 's#import run#import run\nimport os\nprint(os.environ.get("PYTHONPATH", None), site.getsitepackages())#' $out/bin/.gunicorn-wrapped + ''; + meta = with stdenv.lib; { homepage = https://pypi.python.org/pypi/gunicorn; description = "WSGI HTTP Server for UNIX";