From 7f9efc3f8da64b186ed2f7e07134e55d8d2e87a2 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 12 Jul 2026 18:38:26 +0200 Subject: [PATCH] python3Packages.gunicorn: 23.0.0 -> 26.0.0 https://github.com/benoitc/gunicorn/blob/26.0.0/docs/content/2026-news.md#2600---2026-05-05 --- .../python-modules/gunicorn/default.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/gunicorn/default.nix b/pkgs/development/python-modules/gunicorn/default.nix index 13c403a59884..5d283ad955bc 100644 --- a/pkgs/development/python-modules/gunicorn/default.nix +++ b/pkgs/development/python-modules/gunicorn/default.nix @@ -15,20 +15,22 @@ tornado, setproctitle, + # tests + pytest-asyncio, pytestCheckHook, pytest-cov-stub, }: buildPythonPackage rec { pname = "gunicorn"; - version = "23.0.0"; + version = "26.0.0"; pyproject = true; src = fetchFromGitHub { owner = "benoitc"; repo = "gunicorn"; tag = version; - hash = "sha256-Dq/mrQwo3II6DBvYfD1FHsKHaIlyHlJCZ+ZyrM4Efe0="; + hash = "sha256-duq5ghUuiuZL644jHgZ0qXHkcc8POHt7BX91m9F5BGE="; }; build-system = [ setuptools ]; @@ -46,11 +48,22 @@ buildPythonPackage rec { 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";