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