# 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,3_13,3_14} )
DISTUTILS_USE_PEP517=standalone

inherit python-r1 gs-pypi

DESCRIPTION="Invenio resources module to create REST APIs."

HOMEPAGE="https://github.com/inveniosoftware/invenio-records-resources"
LICENSE="MIT"
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="elasticsearch7 opensearch1 opensearch2 tests"
DEPENDENCIES="dev-python/babel-edtf[${PYTHON_USEDEP}]
	dev-python/flask-resources[${PYTHON_USEDEP}]
	dev-python/invenio-accounts[${PYTHON_USEDEP}]
	dev-python/invenio-base[${PYTHON_USEDEP}]
	dev-python/invenio-db[${PYTHON_USEDEP}]
	dev-python/invenio-files-rest[${PYTHON_USEDEP}]
	dev-python/invenio-i18n[${PYTHON_USEDEP}]
	dev-python/invenio-indexer[${PYTHON_USEDEP}]
	dev-python/invenio-jsonschemas[${PYTHON_USEDEP}]
	dev-python/invenio-pidstore[${PYTHON_USEDEP}]
	dev-python/invenio-records-permissions[${PYTHON_USEDEP}]
	dev-python/invenio-records[${PYTHON_USEDEP}]
	dev-python/invenio-stats[${PYTHON_USEDEP}]
	dev-python/luqum[${PYTHON_USEDEP}]
	dev-python/marshmallow-utils[${PYTHON_USEDEP}]
	>=dev-python/uritemplate-3.0.1[${PYTHON_USEDEP}]
	<dev-python/wand-0.7.0[${PYTHON_USEDEP}]
	~dev-python/xmltodict-0.12.0[${PYTHON_USEDEP}]
	>=dev-python/zipstream-ng-1.3.4[${PYTHON_USEDEP}]
	tests? ( dev-python/pytest-black-ng[${PYTHON_USEDEP}] )
	tests? ( dev-python/invenio-app[${PYTHON_USEDEP}] )
	tests? ( dev-python/invenio-db[${PYTHON_USEDEP}] )
	tests? ( dev-python/invenio-s3[${PYTHON_USEDEP}] )
	tests? ( dev-python/pytest-invenio[${PYTHON_USEDEP}] )
	tests? ( >=dev-python/pytest-mock-1.6.0[${PYTHON_USEDEP}] )
	tests? ( <dev-python/sphinx-9.0[${PYTHON_USEDEP}] )
	elasticsearch7? ( dev-python/invenio-search[${PYTHON_USEDEP}] )
	opensearch1? ( dev-python/invenio-search[${PYTHON_USEDEP}] )
	opensearch2? ( dev-python/invenio-search[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"