From 292e869674f337c5a6a41aa8cd85b33712ba8dca Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 27 Jun 2025 00:04:52 +0200 Subject: [PATCH] python3Packages.timm: 1.0.15 -> 1.0.16 Diff: https://github.com/huggingface/pytorch-image-models/compare/refs/tags/v1.0.15...refs/tags/v1.0.16 Changelog: https://github.com/huggingface/pytorch-image-models/blob/v1.0.16/README.md#whats-new --- .../python-modules/timm/default.nix | 25 ++++++------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/timm/default.nix b/pkgs/development/python-modules/timm/default.nix index a514235bcdf6..c41f4ce8d41a 100644 --- a/pkgs/development/python-modules/timm/default.nix +++ b/pkgs/development/python-modules/timm/default.nix @@ -18,19 +18,18 @@ expecttest, pytestCheckHook, pytest-timeout, - pythonAtLeast, }: buildPythonPackage rec { pname = "timm"; - version = "1.0.15"; + version = "1.0.16"; pyproject = true; src = fetchFromGitHub { owner = "huggingface"; repo = "pytorch-image-models"; tag = "v${version}"; - hash = "sha256-TXc+D8GRrO46q88fOH44ZHKOGnCdP47ipEcobnGTxWU="; + hash = "sha256-8z23KQvb+wAlM/IXDC9j6OV8ioZE1dx0xhITSzdHoeY="; }; build-system = [ pdm-backend ]; @@ -51,20 +50,12 @@ buildPythonPackage rec { pytestFlagsArray = [ "tests" ]; - disabledTests = - lib.optionals - ( - # RuntimeError: Dynamo is not supported on Python 3.13+ - (pythonAtLeast "3.13") - - # torch._dynamo.exc.BackendCompilerFailed: backend='inductor' raised: - # CppCompileError: C++ compile error - # OpenMP support not found. - || stdenv.hostPlatform.isDarwin - ) - [ - "test_kron" - ]; + disabledTests = 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