python3Packages.timm: skip failing test on python>=3.14 (#476398)

This commit is contained in:
Yt
2026-01-04 00:01:26 +00:00
committed by GitHub
@@ -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