From 7bafc6ade6408db69a9830d31967749e9acab464 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 20 Feb 2024 08:01:08 +0100 Subject: [PATCH] python311Packages.timm: 0.9.12 -> 0.9.16 Diff: https://github.com/huggingface/pytorch-image-models/compare/refs/tags/v0.9.12...v0.9.16 Changelog: https://github.com/huggingface/pytorch-image-models/blob/v0.9.16/README.md#whats-new --- .../python-modules/timm/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/timm/default.nix b/pkgs/development/python-modules/timm/default.nix index 90dfe5598785..18ac893e9261 100644 --- a/pkgs/development/python-modules/timm/default.nix +++ b/pkgs/development/python-modules/timm/default.nix @@ -1,21 +1,22 @@ { lib , buildPythonPackage -, fetchFromGitHub , pythonOlder -, pytestCheckHook -, expecttest -, pytest-timeout +, fetchFromGitHub +, pdm-backend , huggingface-hub , pyyaml , safetensors , torch , torchvision +, expecttest +, pytestCheckHook +, pytest-timeout }: buildPythonPackage rec { pname = "timm"; - version = "0.9.12"; - format = "setuptools"; + version = "0.9.16"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -23,9 +24,13 @@ buildPythonPackage rec { owner = "huggingface"; repo = "pytorch-image-models"; rev = "refs/tags/v${version}"; - hash = "sha256-dDd/Sjy4xmJlaAg+fOxxcuX3FX//uJJkW0q3AaeCfns="; + hash = "sha256-IWEDKuI2565Z07q1MxTpzKS+CROPR6SyaD5fKcQ5eXk="; }; + nativeBuildInputs = [ + pdm-backend + ]; + propagatedBuildInputs = [ huggingface-hub pyyaml