From 5501979bbaa60ffa8b24a412afd23ddc0386a5be Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 9 Dec 2023 21:44:36 +0100 Subject: [PATCH] python312Packages.ansiwrap: disable Uses the imp module, which was removed in Python 3.12. --- pkgs/development/python-modules/ansiwrap/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/ansiwrap/default.nix b/pkgs/development/python-modules/ansiwrap/default.nix index 7e55912bed20..8dbfa99687c8 100644 --- a/pkgs/development/python-modules/ansiwrap/default.nix +++ b/pkgs/development/python-modules/ansiwrap/default.nix @@ -3,6 +3,7 @@ , buildPythonPackage , fetchPypi , pytestCheckHook +, pythonAtLeast , pythonOlder , textwrap3 }: @@ -12,7 +13,7 @@ buildPythonPackage rec { version = "0.8.4"; format = "setuptools"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.7" || pythonAtLeast "3.12"; src = fetchPypi { inherit pname version;