From 515594e26089f2a677bb22b8a370ddbaa5283516 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 17 Dec 2024 17:40:31 +0100 Subject: [PATCH] python312Packages.transformers: 4.47.0 -> 4.47.1 Diff: https://github.com/huggingface/transformers/compare/v4.47.0...v4.47.1 Changelog: https://github.com/huggingface/transformers/releases/tag/v4.47.1 --- .../python-modules/transformers/default.nix | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/transformers/default.nix b/pkgs/development/python-modules/transformers/default.nix index e9b312cf2c59..909c16363426 100644 --- a/pkgs/development/python-modules/transformers/default.nix +++ b/pkgs/development/python-modules/transformers/default.nix @@ -1,6 +1,5 @@ { lib, - stdenv, buildPythonPackage, fetchFromGitHub, @@ -59,25 +58,16 @@ buildPythonPackage rec { pname = "transformers"; - version = "4.47.0"; + version = "4.47.1"; pyproject = true; src = fetchFromGitHub { owner = "huggingface"; repo = "transformers"; tag = "v${version}"; - hash = "sha256-TQQ+w+EH/KWLE7iaaAHGxfE74hCiLXcqlIr1TIBFGvo="; + hash = "sha256-xwc84wFUSRJ8SNCLiI7FQ1v/JKnXkTW4EpNCjgUbZ8E="; }; - # torch.distributed is not available on darwin - # Fix submitted upstream in https://github.com/huggingface/transformers/pull/35133 - postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' - substituteInPlace src/transformers/pytorch_utils.py \ - --replace-fail \ - 'if is_torch_greater_or_equal("2.5"):' \ - 'if False:' - ''; - build-system = [ setuptools ]; dependencies = [ @@ -200,7 +190,7 @@ buildPythonPackage rec { homepage = "https://github.com/huggingface/transformers"; description = "Natural Language Processing for TensorFlow 2.0 and PyTorch"; mainProgram = "transformers-cli"; - changelog = "https://github.com/huggingface/transformers/releases/tag/v${version}"; + changelog = "https://github.com/huggingface/transformers/releases/tag/${src.tag}"; license = lib.licenses.asl20; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [