# 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 modules that integrates records and files.\""

HOMEPAGE="https://github.com/inveniosoftware/invenio-records-files"
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="docs elasticsearch7 mysql opensearch2 postgresql sqlite tests"
DEPENDENCIES="dev-python/invenio-base[${PYTHON_USEDEP}]
	dev-python/invenio-files-rest[${PYTHON_USEDEP}]
	dev-python/invenio-records[${PYTHON_USEDEP}]
	dev-python/invenio-records-rest[${PYTHON_USEDEP}]
	tests? ( dev-python/pytest-black[${PYTHON_USEDEP}] )
	tests? ( dev-python/invenio-indexer[${PYTHON_USEDEP}] )
	tests? ( >=dev-python/mock-1.3.0[${PYTHON_USEDEP}] )
	tests? ( dev-python/pytest-invenio[${PYTHON_USEDEP}] )
	tests? ( >=dev-python/sphinx-3.0[${PYTHON_USEDEP}] )
	postgresql? ( dev-python/invenio-db[${PYTHON_USEDEP}] )
	mysql? ( dev-python/invenio-db[${PYTHON_USEDEP}] )
	sqlite? ( dev-python/invenio-db[${PYTHON_USEDEP}] )
	elasticsearch7? ( dev-python/invenio-search[${PYTHON_USEDEP}] )
	opensearch2? ( dev-python/invenio-search[${PYTHON_USEDEP}] )
	docs? ( >=dev-python/sphinx-3.0[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"