# 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="Convolutions as tensor contractions (einsums) for PyTorch"

HOMEPAGE="https://github.com/f-dangel/einconv"
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="doc lint test"
DEPENDENCIES="dev-python/torch[${PYTHON_USEDEP}]
	dev-python/einops[${PYTHON_USEDEP}]
	doc? ( ~dev-python/mkdocs-1.4.3[${PYTHON_USEDEP}] )
	doc? ( ~dev-python/mkdocs-material-9.1.17[${PYTHON_USEDEP}] )
	doc? ( ~dev-python/mkdocstrings-0.22.0[${PYTHON_USEDEP}] )
	lint? ( dev-python/black[${PYTHON_USEDEP}] )
	lint? ( dev-python/isort[${PYTHON_USEDEP}] )
	lint? ( dev-python/flake8[${PYTHON_USEDEP}] )
	lint? ( dev-python/mccabe[${PYTHON_USEDEP}] )
	lint? ( dev-python/pycodestyle[${PYTHON_USEDEP}] )
	lint? ( dev-python/pyflakes[${PYTHON_USEDEP}] )
	lint? ( dev-python/pep8-naming[${PYTHON_USEDEP}] )
	lint? ( dev-python/flake8-bugbear[${PYTHON_USEDEP}] )
	lint? ( dev-python/flake8-comprehensions[${PYTHON_USEDEP}] )
	lint? ( dev-python/flake8-tidy-imports[${PYTHON_USEDEP}] )
	lint? ( dev-python/darglint[${PYTHON_USEDEP}] )
	lint? ( dev-python/pydocstyle[${PYTHON_USEDEP}] )
	test? ( dev-python/backpack-for-pytorch[${PYTHON_USEDEP}] )
	test? ( dev-python/unfoldNd[${PYTHON_USEDEP}] )
	test? ( dev-python/jax[${PYTHON_USEDEP}] )
	test? ( dev-python/jaxlib[${PYTHON_USEDEP}] )
	test? ( dev-python/coveralls[${PYTHON_USEDEP}] )
	test? ( dev-python/pytest[${PYTHON_USEDEP}] )
	test? ( dev-python/pytest-cov[${PYTHON_USEDEP}] )
	test? ( dev-python/pytest-optional-tests[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"