# 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="An open source python package for processing and analysis of 4D STEM data."

HOMEPAGE="https://github.com/py4dstem/py4DSTEM/"
LICENSE="GNU GPLv3"
SRC_URI="https://files.pythonhosted.org/packages/5c/28/303d8f4471af2b922dde68d3c5388197fb5a12f7dbc8ed5f2784cf3f297a/py4dstem-${REALVERSION}.tar.gz"
SOURCEFILE="py4dstem-${REALVERSION}.tar.gz"
RESTRICT="test"

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

IUSE="acom aiml aiml-cuda cuda ipyparallel numba"
DEPENDENCIES="<dev-python/numpy-2.0[${PYTHON_USEDEP}]
	>=dev-python/scipy-1.5.2[${PYTHON_USEDEP}]
	>=dev-python/h5py-3.2.0[${PYTHON_USEDEP}]
	dev-python/hdf5plugin[${PYTHON_USEDEP}]
	dev-python/ncempy[${PYTHON_USEDEP}]
	>=dev-python/matplotlib-3.2.2[${PYTHON_USEDEP}]
	>=dev-python/scikit-image-0.17.2[${PYTHON_USEDEP}]
	<dev-python/scikit-learn-1.5[${PYTHON_USEDEP}]
	dev-python/scikit-optimize[${PYTHON_USEDEP}]
	>=dev-python/tqdm-4.46.1[${PYTHON_USEDEP}]
	>=dev-python/dill-0.3.3[${PYTHON_USEDEP}]
	dev-python/gdown[${PYTHON_USEDEP}]
	dev-python/dask[${PYTHON_USEDEP}]
	dev-python/distributed[${PYTHON_USEDEP}]
	dev-python/emdfile[${PYTHON_USEDEP}]
	dev-python/mpire[${PYTHON_USEDEP}]
	>=dev-python/threadpoolctl-3.1.0[${PYTHON_USEDEP}]
	dev-python/pylops[${PYTHON_USEDEP}]
	dev-python/colorspacious[${PYTHON_USEDEP}]
	ipyparallel? ( >=dev-python/ipyparallel-6.2.4[${PYTHON_USEDEP}] )
	ipyparallel? ( >=dev-python/dill-0.3.3[${PYTHON_USEDEP}] )
	cuda? ( dev-python/cupy[${PYTHON_USEDEP}] )
	acom? ( dev-python/pymatgen[${PYTHON_USEDEP}] )
	acom? ( dev-python/mp-api[${PYTHON_USEDEP}] )
	aiml? ( dev-python/tensorflow[${PYTHON_USEDEP}] )
	aiml? ( dev-python/tensorflow-addons[${PYTHON_USEDEP}] )
	aiml? ( dev-python/crystal4d[${PYTHON_USEDEP}] )
	aiml? ( ~dev-python/typeguard-2.7[${PYTHON_USEDEP}] )
	aiml-cuda? ( dev-python/tensorflow[${PYTHON_USEDEP}] )
	aiml-cuda? ( dev-python/tensorflow-addons[${PYTHON_USEDEP}] )
	aiml-cuda? ( dev-python/crystal4d[${PYTHON_USEDEP}] )
	aiml-cuda? ( dev-python/cupy[${PYTHON_USEDEP}] )
	aiml-cuda? ( ~dev-python/typeguard-2.7[${PYTHON_USEDEP}] )
	numba? ( dev-python/numba[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"