commit:     e2c8ea737886a214d66a87cd8d41a3d7d395980c
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 14 14:25:44 2026 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Feb 14 14:43:54 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2c8ea73

sci-ml/transformers: add 4.57.6

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-ml/transformers/Manifest                   |  1 +
 sci-ml/transformers/transformers-4.57.6.ebuild | 44 ++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)

diff --git a/sci-ml/transformers/Manifest b/sci-ml/transformers/Manifest
index 0752df3a0898..0bdd4686dd2a 100644
--- a/sci-ml/transformers/Manifest
+++ b/sci-ml/transformers/Manifest
@@ -1 +1,2 @@
 DIST transformers-4.57.3.gh.tar.gz 19400128 BLAKE2B 
2918a3be4af3e7d540e56e8a907a0e808f1f470f5e56af6919b152984757c9c057b1c908e677bd41dca877c26f42225b5838711048d0c2c4fb5a7fe331e431a4
 SHA512 
acf212de3a30f2abf83c1ae3c63326f918a6144d9b91d928bdbeee91715a068f244d8c387dfe55f5be67f232205d9c7fb5d1c6c8dcd656157aa400c90722431b
+DIST transformers-4.57.6.gh.tar.gz 19400564 BLAKE2B 
be7bbbf4f8e2c02369ac7e5e99c780323886f55b90768fc7c65dc8fe42d1782fd7a704a670ab284b51143597888ad801acb710e27d40fa5f2e5abf45202dde49
 SHA512 
263c5773c0cf6b08b86caf02aae81f4652f85203404cd10083e06912a5a549deda8b0d4492b4ce521ae7bbc724be4bce17b1042f49da033fc037e8382ad48508

diff --git a/sci-ml/transformers/transformers-4.57.6.ebuild 
b/sci-ml/transformers/transformers-4.57.6.ebuild
new file mode 100644
index 000000000000..2a78bea73449
--- /dev/null
+++ b/sci-ml/transformers/transformers-4.57.6.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2023-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
+DISTUTILS_SINGLE_IMPL=1
+inherit distutils-r1
+
+DESCRIPTION="State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow"
+HOMEPAGE="
+       https://pypi.org/project/transformers/
+       https://huggingface.co/
+"
+SRC_URI="https://github.com/huggingface/${PN}/archive/refs/tags/v${PV}.tar.gz
+       -> ${P}.gh.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="torch"
+RESTRICT="test" # Need network, too long to execute
+
+RDEPEND="
+       >=sci-ml/huggingface_hub-0.34.0[${PYTHON_SINGLE_USEDEP}]
+       <sci-ml/huggingface_hub-1
+       =sci-ml/tokenizers-0.22*[${PYTHON_SINGLE_USEDEP}]
+       $(python_gen_cond_dep '
+               dev-python/filelock[${PYTHON_USEDEP}]
+               dev-python/numpy[${PYTHON_USEDEP}]
+               dev-python/packaging[${PYTHON_USEDEP}]
+               dev-python/pyyaml[${PYTHON_USEDEP}]
+               dev-python/regex[${PYTHON_USEDEP}]
+               dev-python/requests[${PYTHON_USEDEP}]
+               dev-python/tqdm[${PYTHON_USEDEP}]
+               sci-ml/safetensors[${PYTHON_USEDEP}]
+       ')
+       torch? (
+               sci-ml/accelerate[${PYTHON_SINGLE_USEDEP}]
+               sci-ml/caffe2[${PYTHON_SINGLE_USEDEP}]
+               sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
+       )
+"

Reply via email to