# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{12..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" # Mirror upstream's click, hf-xet, and httpx major caps. The click floor skips # broken fish completions in 8.4.0/8.4.1; 1.27 raised hf-xet to 1.5.2. httpx is # deprecated in ::gentoo but remains mandatory upstream. verified 2026-09-03 RDEPEND=" $(python_gen_cond_dep ' >=dev-python/click-8.4.2[${PYTHON_USEDEP}] =sci-ml/hf_xet-1.5.2[${PYTHON_USEDEP}] "${HF_HOME}/.agent_harnesses.json" || die epytest -m "not production" }