# 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 pypi DESCRIPTION="spaCy pipelines for pre-trained BERT-family transformers" HOMEPAGE=" https://github.com/explosion/spacy-curated-transformers https://pypi.org/project/spacy-curated-transformers/ " LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" # Pinned to 0.3.x: this version-line uses curated-transformers 0.1.x # and curated-tokenizers 0.0.x and works with spacy 3.8 + thinc 8.3. # The 2.x line targets a different spacy major (4.x) with thinc 9.x — # incompatible with our 3.8.x stack. RDEPEND=" ${PYTHON_DEPS} >=dev-python/curated-transformers-0.1.0[${PYTHON_SINGLE_USEDEP}] =sci-ml/pytorch-1.12.0[${PYTHON_SINGLE_USEDEP}] $(python_gen_cond_dep ' >=dev-python/curated-tokenizers-0.0.9[${PYTHON_USEDEP}]