# Copyright 2024-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} ) inherit distutils-r1 pypi DESCRIPTION="State-of-the-art diffusion models in PyTorch" HOMEPAGE="https://github.com/huggingface/diffusers https://pypi.org/project/diffusers/" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" PATCHES=( "${FILESDIR}/gentoo-torch-version-fallback.patch" ) # huggingface-hub is a runtime dep but not packaged in portage RDEPEND=" dev-python/filelock[${PYTHON_USEDEP}] dev-python/httpx[${PYTHON_USEDEP}] dev-python/numpy[${PYTHON_USEDEP}] dev-python/regex[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] sci-ml/safetensors[${PYTHON_USEDEP}] dev-python/pillow[${PYTHON_USEDEP}] "