diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2024-10-07 10:35:32 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2024-10-07 10:35:44 +0200 |
commit | 9af847d2940654854018390b3f2711bebc76ffad (patch) | |
tree | 78eb66b4765727abe141dcb945c7cbaadf102b20 /sci-libs/transformers | |
parent | Move package scx from sys-apps into sys-kernel (diff) | |
download | gentoo-9af847d2940654854018390b3f2711bebc76ffad.tar.gz gentoo-9af847d2940654854018390b3f2711bebc76ffad.tar.bz2 gentoo-9af847d2940654854018390b3f2711bebc76ffad.zip |
sci-libs/transformers: add 4.40.2
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'sci-libs/transformers')
-rw-r--r-- | sci-libs/transformers/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/transformers/transformers-4.40.2.ebuild | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/sci-libs/transformers/Manifest b/sci-libs/transformers/Manifest index 9eccd9d67382..5be15d3b54ab 100644 --- a/sci-libs/transformers/Manifest +++ b/sci-libs/transformers/Manifest @@ -1,3 +1,4 @@ DIST transformers-4.37.2.gh.tar.gz 16632049 BLAKE2B 22501598da911cb685598cb3b33e157ef091425c0c7478d05a0af396c182e8f776435d6b2fe708eaf2550ce6136f195ffac3b464f357ae8e023a030c218fcd3d SHA512 37bdf35e0774f7f26a19465b5e5c64709a85a1d001e01382996891173c59d6e31c1b536ef186b9d6a3dbe85e658ac3bf11f78e2e7f73c6d1d18992035afe3852 DIST transformers-4.38.2.gh.tar.gz 16891664 BLAKE2B 5877ccecdb417d6cb552d1ae3bcc55fb698614f0c60f38b751cecf6465e3155e44639b34773044dd9befc1902ec19fae634f0f737f4be05e9ef85e4a0701f4d5 SHA512 1d826e0793df85395b00008a80dfe51f5c3e1fec7a607112b817a161dfc375fd20fce47a1c5aead0e9c735b6e23cfe4f8526a19060c19d6c4ee9c2a87b42e382 DIST transformers-4.39.3.gh.tar.gz 17957068 BLAKE2B 462930e13b764d78b77782faad5909e1195ec3636fbbf115504bb969704d7264561108f853b4496f0384a5d045c8552263c1c6817e6ab9cee939c2cfe62f07ca SHA512 05bda1a1f68e23857215ba20e2a8b0f63dcef75915e70eb02fef25fb7d92647bf79d9ff372f655b6547d2c639c35bc6c989be361589858fedfa76b4b651c9216 +DIST transformers-4.40.2.gh.tar.gz 18236908 BLAKE2B f62bdd15b98fb8b4ae7adbe497ad2ab33bf19acab10017aaf8df38832a3e3981aa72c0a21a91712125ba9981c829deff626092f3c43733d580e032a85e3ddd7f SHA512 f1c471c471e31672b4923e6a3cecf31cd1ea2ad7b3b3c520fd93d200d4d21f1dddd993eb29ef58ba137a9e4fbcfd48a00b61243c1c7566b68385f32ede8ee42c diff --git a/sci-libs/transformers/transformers-4.40.2.ebuild b/sci-libs/transformers/transformers-4.40.2.ebuild new file mode 100644 index 000000000000..afe16f800ffc --- /dev/null +++ b/sci-libs/transformers/transformers-4.40.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) +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" +RESTRICT="test" # Need some modules, not yet packaged + +RDEPEND=" + =sci-libs/tokenizers-0.19*[${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-libs/huggingface_hub[${PYTHON_USEDEP}] + >=sci-libs/safetensors-0.4.1[${PYTHON_USEDEP}] + ') +" + +distutils_enable_tests pytest |