python312Packages.transformers: 4.48.3 -> 4.49.0 (#382860)

authored by Yt and committed by GitHub cdb2f1b8 7c6fdab4

+3 -13
+3 -13
pkgs/development/python-modules/transformers/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 - fetchpatch, 6 5 7 6 # build-system 8 7 setuptools, ··· 59 58 60 59 buildPythonPackage rec { 61 60 pname = "transformers"; 62 - version = "4.48.3"; 61 + version = "4.49.0"; 63 62 pyproject = true; 64 63 65 64 src = fetchFromGitHub { 66 65 owner = "huggingface"; 67 66 repo = "transformers"; 68 67 tag = "v${version}"; 69 - hash = "sha256-gDPJx/kgFa8KCoX8XCMtFrSY/z2as22yDSNEW3UDm/0="; 68 + hash = "sha256-drq7RWoRaRejiQjCUHIYuzaKa9rA4eQZI2do74scp1c="; 70 69 }; 71 - 72 - patches = [ 73 - # Remove on the next major version bump 74 - (fetchpatch { 75 - url = "https://github.com/huggingface/transformers/commit/db864b5526d56fd99143619abff969bfcb5596d5.patch?full_index=1"; 76 - name = "dont-import-torch-distributed-if-not-available.patch"; 77 - hash = "sha256-XOraJmSt9Rp/oNiil6vDUBqZhd8MDbA0nz1Tx16Mk14="; 78 - }) 79 - ]; 80 70 81 71 build-system = [ setuptools ]; 82 72 ··· 200 190 homepage = "https://github.com/huggingface/transformers"; 201 191 description = "Natural Language Processing for TensorFlow 2.0 and PyTorch"; 202 192 mainProgram = "transformers-cli"; 203 - changelog = "https://github.com/huggingface/transformers/releases/tag/${src.tag}"; 193 + changelog = "https://github.com/huggingface/transformers/releases/tag/v${version}"; 204 194 license = lib.licenses.asl20; 205 195 platforms = lib.platforms.unix; 206 196 maintainers = with lib.maintainers; [