From 39f4004b0ea3c750b264bbf4f183eb7c542e610e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 29 Dec 2022 12:41:57 +0100 Subject: [PATCH] python3Packages.exceptiongroup: Disable tests on python310 Since pytest now requires exceptiongroup we can't use it to test the package, because it causes an infinite recursion. --- pkgs/development/python-modules/exceptiongroup/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/exceptiongroup/default.nix b/pkgs/development/python-modules/exceptiongroup/default.nix index 865e14f8e506..54139f48a669 100644 --- a/pkgs/development/python-modules/exceptiongroup/default.nix +++ b/pkgs/development/python-modules/exceptiongroup/default.nix @@ -4,6 +4,7 @@ , flit-scm , pytestCheckHook , pythonOlder +, pythonAtLeast }: buildPythonPackage rec { @@ -26,6 +27,8 @@ buildPythonPackage rec { SETUPTOOLS_SCM_PRETEND_VERSION = version; + doCheck = pythonAtLeast "3.11"; # infinite recursion with pytest + checkInputs = [ pytestCheckHook ];