From 94196c208e3918507086707efed0dbaad6ed5ffd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 16 Aug 2025 10:29:05 +0200 Subject: [PATCH] python312Packages.wsgitools: add missing legacy-cgi --- pkgs/development/python-modules/wsgitools/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/wsgitools/default.nix b/pkgs/development/python-modules/wsgitools/default.nix index 83b33529214d..18e43357e5a6 100644 --- a/pkgs/development/python-modules/wsgitools/default.nix +++ b/pkgs/development/python-modules/wsgitools/default.nix @@ -1,10 +1,11 @@ { lib, buildPythonPackage, - pythonAtLeast, fetchPypi, - setuptools, + legacy-cgi, pyasyncore, + pythonAtLeast, + setuptools, unittestCheckHook, }: @@ -21,7 +22,9 @@ buildPythonPackage rec { build-system = [ setuptools ]; # the built-in asyncore library was removed in python 3.12 - dependencies = lib.optionals (pythonAtLeast "3.12") [ pyasyncore ]; + dependencies = + lib.optionals (pythonAtLeast "3.13") [ legacy-cgi ] + ++ lib.optionals (pythonAtLeast "3.12") [ pyasyncore ]; pythonImportsCheck = [ "wsgitools" ];