# automatically generated by g-sorcery
# please do not edit this file

EAPI=8

REALNAME="${PN}"
LITERALNAME="${PN}"
REALVERSION="${PV}"
DIGEST_SOURCES="yes"
PYTHON_COMPAT=( python{3_11,3_12} )
DISTUTILS_USE_PEP517=standalone

inherit python-r1 gs-pypi

DESCRIPTION="OCR/HTR engine for all the languages"

HOMEPAGE="https://kraken.re"
LICENSE="Apache-2.0"
SRC_URI="https://files.pythonhosted.org/packages/source/${REALNAME::1}/${REALNAME}/${REALNAME}-${REALVERSION}.tar.gz"
SOURCEFILE="${REALNAME}-${REALVERSION}.tar.gz"
RESTRICT="test"

SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="augment pdf test"
DEPENDENCIES="dev-python/jsonschema[${PYTHON_USEDEP}]
	dev-python/lxml[${PYTHON_USEDEP}]
	dev-python/requests[${PYTHON_USEDEP}]
	<dev-python/click-8.3[${PYTHON_USEDEP}]
	~dev-python/numpy-2.0.0[${PYTHON_USEDEP}]
	>=dev-python/pillow-9.2.0[${PYTHON_USEDEP}]
	dev-python/regex[${PYTHON_USEDEP}]
	~dev-python/scipy-1.13.0[${PYTHON_USEDEP}]
	>=dev-python/protobuf-3.0.0[${PYTHON_USEDEP}]
	dev-python/coremltools[${PYTHON_USEDEP}]
	~dev-python/jinja2-3.0[${PYTHON_USEDEP}]
	dev-python/python-bidi[${PYTHON_USEDEP}]
	dev-python/torchvision[${PYTHON_USEDEP}]
	dev-python/torch[${PYTHON_USEDEP}]
	~dev-python/scikit-learn-1.5.0[${PYTHON_USEDEP}]
	~dev-python/scikit-image-0.24.0[${PYTHON_USEDEP}]
	~dev-python/shapely-2.0.6[${PYTHON_USEDEP}]
	dev-python/pyarrow[${PYTHON_USEDEP}]
	dev-python/htrmopo[${PYTHON_USEDEP}]
	dev-python/lightning[${PYTHON_USEDEP}]
	dev-python/torchmetrics[${PYTHON_USEDEP}]
	~dev-python/threadpoolctl-3.5.0[${PYTHON_USEDEP}]
	dev-python/platformdirs[${PYTHON_USEDEP}]
	<dev-python/rich-14.1.0[${PYTHON_USEDEP}]
	dev-python/iso639-lang[${PYTHON_USEDEP}]
	augment? ( dev-python/albumentations[${PYTHON_USEDEP}] )
	pdf? ( dev-python/pyvips[${PYTHON_USEDEP}] )
	test? ( dev-python/hocr-spec[${PYTHON_USEDEP}] )
	test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"