Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies packaging,
# optional-dependencies eventlet, gevent, tornado, setproctitle,
# tests pytest-asyncio, pytestCheckHook, pytest-cov-stub,}:
buildPythonPackage rec { pname = "gunicorn"; version = "26.0.0"; pyproject = true;
src = fetchFromGitHub { owner = "benoitc"; repo = "gunicorn"; tag = version; hash = "sha256-duq5ghUuiuZL644jHgZ0qXHkcc8POHt7BX91m9F5BGE="; };
build-system = [ setuptools ];
dependencies = [ packaging ];
optional-dependencies = { gevent = [ gevent ]; eventlet = [ eventlet ]; tornado = [ tornado ]; gthread = [ ]; setproctitle = [ setproctitle ]; };
pythonImportsCheck = [ "gunicorn" ];
nativeCheckInputs = [ pytest-asyncio pytestCheckHook pytest-cov-stub ] ++ lib.concatAttrValues optional-dependencies;
disabledTests = [ # failure while starting a gunicorn instance "TestSignalHandlingIntegration" ];
disabledTestPaths = [ # tries to start gunicorn and fails on import "tests/test_control_socket_integration.py" ];
meta = { description = "WSGI HTTP Server for UNIX, fast clients and sleepy applications"; homepage = "https://github.com/benoitc/gunicorn"; changelog = "https://github.com/benoitc/gunicorn/releases/tag/${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ getchoo ]; mainProgram = "gunicorn"; };}