From f477f3b3b1eb1af28231cbe979beaf8b1f8052c0 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 5 Jan 2026 21:40:42 +0000 Subject: [PATCH] python3Packages.timm: 1.0.22 -> 1.0.23 Diff: https://github.com/huggingface/pytorch-image-models/compare/v1.0.22...v1.0.23 Changelog: https://github.com/huggingface/pytorch-image-models/blob/v1.0.23/README.md#whats-new --- pkgs/development/python-modules/timm/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/timm/default.nix b/pkgs/development/python-modules/timm/default.nix index f3b6b2acc884..cd300cbc4eb5 100644 --- a/pkgs/development/python-modules/timm/default.nix +++ b/pkgs/development/python-modules/timm/default.nix @@ -21,16 +21,16 @@ pytest-timeout, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "timm"; - version = "1.0.22"; + version = "1.0.23"; pyproject = true; src = fetchFromGitHub { owner = "huggingface"; repo = "pytorch-image-models"; - tag = "v${version}"; - hash = "sha256-ilOnC1tqSb4TuSGRafMNl8hi9P2qdsBWbv3G9azy6Gs="; + tag = "v${finalAttrs.version}"; + hash = "sha256-TOIg5/ddkAvFqqpnq/P0yURb/1wF2bgyQ0Odzc9WPEc="; }; build-system = [ pdm-backend ]; @@ -55,6 +55,9 @@ buildPythonPackage rec { lib.optionals (pythonAtLeast "3.14") [ # RuntimeError: torch.compile is not supported on Python 3.14+ "test_kron" + + # AttributeError: 'LsePlus2d' object has no attribute '__annotations__'. Did you mean: '__annotate_func__'? + "test_torchscript" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # torch._dynamo.exc.BackendCompilerFailed: backend='inductor' raised: @@ -76,8 +79,8 @@ buildPythonPackage rec { meta = { description = "PyTorch image models, scripts, and pretrained weights"; homepage = "https://huggingface.co/docs/timm/index"; - changelog = "https://github.com/huggingface/pytorch-image-models/blob/v${version}/README.md#whats-new"; + changelog = "https://github.com/huggingface/pytorch-image-models/blob/${finalAttrs.src.tag}/README.md#whats-new"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bcdarwin ]; }; -} +})