diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-04-13 08:39:48 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-04-13 08:40:18 +0200 |
commit | 0611554e5cf0b42d5c161ea67ca170a463203d48 (patch) | |
tree | 437bcc1d8383b900bf74b854c253930104eaa76e /sci-libs | |
parent | dev-python/botocore: Remove old (diff) | |
download | gentoo-0611554e5cf0b42d5c161ea67ca170a463203d48.tar.gz gentoo-0611554e5cf0b42d5c161ea67ca170a463203d48.tar.bz2 gentoo-0611554e5cf0b42d5c161ea67ca170a463203d48.zip |
sci-libs/transformers: new package, add 4.27.4
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/transformers/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/transformers/metadata.xml | 12 | ||||
-rw-r--r-- | sci-libs/transformers/transformers-4.27.4.ebuild | 35 |
3 files changed, 48 insertions, 0 deletions
diff --git a/sci-libs/transformers/Manifest b/sci-libs/transformers/Manifest new file mode 100644 index 000000000000..8ea1ec385306 --- /dev/null +++ b/sci-libs/transformers/Manifest @@ -0,0 +1 @@ +DIST transformers-4.27.4.gh.tar.gz 13210647 BLAKE2B acf5c81ceaaa2f156fc90b2284a6e2d4369742705c14d777c12e94a23961f3ed7cdc8e3cf8a4b962600b59f529862e6546f3d212e1ae1c44b7f76d8a10cbea75 SHA512 8b84a74c473c514314c3c4a422f8c03118575add3499ca280b7259bad72f8f8a6a7a51dc12162963c033b6a65c8914cca011b7bf6343781c5ed35154ea7adaf4 diff --git a/sci-libs/transformers/metadata.xml b/sci-libs/transformers/metadata.xml new file mode 100644 index 000000000000..9489a5f68f41 --- /dev/null +++ b/sci-libs/transformers/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>tupone@gentoo.org</email> + <name>Tupone Alfredo</name> + </maintainer> + <upstream> + <remote-id type="github">huggingface/transformers</remote-id> + <remote-id type="pypi">transformers</remote-id> + </upstream> +</pkgmetadata> diff --git a/sci-libs/transformers/transformers-4.27.4.ebuild b/sci-libs/transformers/transformers-4.27.4.ebuild new file mode 100644 index 000000000000..ded81afb2f59 --- /dev/null +++ b/sci-libs/transformers/transformers-4.27.4.ebuild @@ -0,0 +1,35 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) +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 dataset module, not yet packaged + +RDEPEND=" + dev-python/filelock[${PYTHON_USEDEP}] + sci-libs/huggingface_hub[${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}] + sci-libs/tokenizers[${PYTHON_USEDEP}] + dev-python/tqdm[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest |