commit: 1dbea62821a666b4d075eb6209f945c791f3c66d
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 11 18:46:00 2025 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Sep 11 18:46:09 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dbea628
sci-ml/transformers: add 4.56.1
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
sci-ml/transformers/Manifest | 1 +
sci-ml/transformers/transformers-4.56.1.ebuild | 45 ++++++++++++++++++++++++++
2 files changed, 46 insertions(+)
diff --git a/sci-ml/transformers/Manifest b/sci-ml/transformers/Manifest
index 855f949f7f5e..fb063e7f23c6 100644
--- a/sci-ml/transformers/Manifest
+++ b/sci-ml/transformers/Manifest
@@ -1 +1,2 @@
DIST transformers-4.55.4.gh.tar.gz 18941944 BLAKE2B
aa0b26a73cdcf711b517ea64681f619541832dd72c703b31328cf58710c3bce01709fe2917adb8f9fafe7e3cec04d867f60f57685a079481e0e6f3056566df7d
SHA512
4118940712725ee83367af6c36e2b70d433d43c18bbcaa6bf99e778fdeeb88198dc7379041cab91955d82fd3e8b22f815e92045b40d385585a06e96a02c28dfd
+DIST transformers-4.56.1.gh.tar.gz 19213002 BLAKE2B
f59b2c887150e9caa35e15671af5ad935ef521aae009732533314056c8203bfa63d548df00b29dd6ff86888296f882b1c9ceaa511b347cdea043072e7aa6dc72
SHA512
bebaa5c6b9a19f50eeba59c54bdbcf27e1326dd7eca33927145eaa21c10e02bea411b444810663c21991f06697550ecadce152614b4084fad1a86674483ed298
diff --git a/sci-ml/transformers/transformers-4.56.1.ebuild
b/sci-ml/transformers/transformers-4.56.1.ebuild
new file mode 100644
index 000000000000..a0c58a03d726
--- /dev/null
+++ b/sci-ml/transformers/transformers-4.56.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2023-2025 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/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}]
+ )
+"
+
+distutils_enable_tests import-check