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