commit: 3cc6352a11fa791bed6b9a5ca7160b8be193f073
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 14 23:21:20 2026 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Feb 14 23:21:20 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cc6352a
sci-ml/huggingface_hub: add 1.2.4
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
sci-ml/huggingface_hub/Manifest | 1 +
.../huggingface_hub/huggingface_hub-1.2.4.ebuild | 87 ++++++++++++++++++++++
sci-ml/huggingface_hub/metadata.xml | 3 +
3 files changed, 91 insertions(+)
diff --git a/sci-ml/huggingface_hub/Manifest b/sci-ml/huggingface_hub/Manifest
index bb05d0f434f4..2e7d3e63ef54 100644
--- a/sci-ml/huggingface_hub/Manifest
+++ b/sci-ml/huggingface_hub/Manifest
@@ -1,2 +1,3 @@
DIST huggingface_hub-0.36.2.gh.tar.gz 1052737 BLAKE2B
627c3d36f2199a74b8149dbefb8c9edcff8b4fee49bc769fac6217c3ce111db6fcff5c0020e4250e3344fb2b364bb5e36d082e51166443fc5b65fc6077768f7d
SHA512
e0e08fd625c9fca4d88e7ec7f19f9d1bf102441923aba455b57694e62efaa09a273272e65cfa89d9a8df0c294452637758f017f51bba6c1b1e38b623ef2a5d43
DIST huggingface_hub-1.1.7.gh.tar.gz 1000550 BLAKE2B
fc7ae79cd17533d85c820a6089e776fa3732debfaf5b0d2978aaed45635585b48129459998f2c58b921fdbdd4f7832a54d62cd4f9c383f4c0af2875e8b75d75a
SHA512
a0cb2f3aec45b7eefa462bcb1c6051ce0f221a0ca4827aa8c478f19d451d2063624b97af4a853ac673ba32458e33257756ff0cef1abd0d77c988ff96f689202c
+DIST huggingface_hub-1.2.4.gh.tar.gz 1008492 BLAKE2B
bf617209b02b94e9cdf1d91cf092185babe02ae8e75c9833b3631773242095272e6b10d5b31118da64a3f81e83cb556017f8e27a991472fbd7572519b85b7f1f
SHA512
ff76805229e0a1dffcb016d90d4f5d4f14c8407e0247bda7f05d468d46e5733c0761e137733f3a0488c3798d6700ecbd606cbc0edbf972c68c639efc3c2f772a
diff --git a/sci-ml/huggingface_hub/huggingface_hub-1.2.4.ebuild
b/sci-ml/huggingface_hub/huggingface_hub-1.2.4.ebuild
new file mode 100644
index 000000000000..c6f6304b508c
--- /dev/null
+++ b/sci-ml/huggingface_hub/huggingface_hub-1.2.4.ebuild
@@ -0,0 +1,87 @@
+# 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_{10..14} )
+DISTUTILS_SINGLE_IMPL=1
+inherit distutils-r1
+
+DESCRIPTION="a client library to interact with the Hugging Face Hub"
+HOMEPAGE="
+ https://pypi.org/project/huggingface_hub/
+"
+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 ~arm64"
+IUSE="torch"
+
+RDEPEND="
+ $(python_gen_cond_dep '
+ dev-python/filelock[${PYTHON_USEDEP}]
+ dev-python/fsspec[${PYTHON_USEDEP}]
+ dev-python/httpx[${PYTHON_USEDEP}]
+ dev-python/packaging[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/shellingham[${PYTHON_USEDEP}]
+ dev-python/tqdm[${PYTHON_USEDEP}]
+ dev-python/typer[${PYTHON_USEDEP}]
+ dev-python/typing-extensions[${PYTHON_USEDEP}]
+ sci-ml/hf_xet[${PYTHON_USEDEP}]
+ torch? (
+ sci-ml/safetensors[${PYTHON_USEDEP}]
+ )
+ ')
+ torch? (
+ sci-ml/caffe2[${PYTHON_SINGLE_USEDEP}]
+ sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
+ )
+"
+
+BDEPEND="
+ test? (
+ sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
+ dev-vcs/git-lfs
+ )
+"
+
+EPYTEST_PLUGINS=( pytest-asyncio pytest-mock )
+
+distutils_enable_tests pytest
+
+src_test() {
+ local EPYTEST_IGNORE=(
+ contrib
+ tests/test_cache_layout.py
+ tests/test_cache_no_symlinks.py
+ tests/test_commit_scheduler.py
+ tests/test_file_download.py
+ tests/test_hf_api.py
+ tests/test_hf_file_system.py
+ tests/test_hub_mixin.py
+ tests/test_hub_mixin_pytorch.py
+ tests/test_inference_async_client.py
+ tests/test_inference_client.py
+ tests/test_oauth.py
+ tests/test_offline_utils.py
+ tests/test_repocard.py
+ tests/test_snapshot_download.py
+ tests/test_utils_cache.py
+ tests/test_utils_http.py
+ tests/test_utils_telemetry.py
+ tests/test_xet_download.py
+ tests/test_xet_upload.py
+ tests/test_webhooks_server.py
+ )
+
+ local EPYTEST_DESELECT=(
+
tests/test_inference_providers.py::TestHFInferenceProvider::test_prepare_mapping_info_unknown_task
+
tests/test_utils_pagination.py::TestPagination::test_paginate_hf_api
+ )
+
+ distutils-r1_src_test
+}
diff --git a/sci-ml/huggingface_hub/metadata.xml
b/sci-ml/huggingface_hub/metadata.xml
index ed22415e0eec..7544fad08c20 100644
--- a/sci-ml/huggingface_hub/metadata.xml
+++ b/sci-ml/huggingface_hub/metadata.xml
@@ -5,6 +5,9 @@
<email>[email protected]</email>
<name>Tupone Alfredo</name>
</maintainer>
+ <use>
+ <flag name="torch">Support pytorch</flag>
+ </use>
<upstream>
<remote-id type="github">huggingface/huggingface_hub</remote-id>
<remote-id type="pypi">huggingface_hub</remote-id>