From 85bff5fc41918a94e3bd16502ec313cc72824bd4 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 2 Jan 2026 01:19:13 +0000 Subject: [PATCH] python3Packages.timm: skip failing test on python>=3.14 --- .../python-modules/timm/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/timm/default.nix b/pkgs/development/python-modules/timm/default.nix index a820c4871d02..f3b6b2acc884 100644 --- a/pkgs/development/python-modules/timm/default.nix +++ b/pkgs/development/python-modules/timm/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + pythonAtLeast, # build-system pdm-backend, @@ -50,12 +51,17 @@ buildPythonPackage rec { enabledTestPaths = [ "tests" ]; - disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ - # torch._dynamo.exc.BackendCompilerFailed: backend='inductor' raised: - # CppCompileError: C++ compile error - # OpenMP support not found. - "test_kron" - ]; + disabledTests = + lib.optionals (pythonAtLeast "3.14") [ + # RuntimeError: torch.compile is not supported on Python 3.14+ + "test_kron" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # torch._dynamo.exc.BackendCompilerFailed: backend='inductor' raised: + # CppCompileError: C++ compile error + # OpenMP support not found. + "test_kron" + ]; disabledTestPaths = [ # Takes too long and also tries to download models