# 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="Ananke, named for the Greek primordial goddess of necessity and causality, is a python package for causal inference using the language of graphical models."

HOMEPAGE="https://gitlab.com/causal/ananke"
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="opt viz"
DEPENDENCIES="<dev-python/scipy-2.0.0[${PYTHON_USEDEP}]
	<dev-python/numpy-2.0.0[${PYTHON_USEDEP}]
	<dev-python/pandas-2.0.0[${PYTHON_USEDEP}]
	<dev-python/statsmodels-0.14.0[${PYTHON_USEDEP}]
	viz? ( dev-python/pygraphviz[${PYTHON_USEDEP}] )
	dev-python/pgmpy[${PYTHON_USEDEP}]
	viz? ( <dev-python/graphviz-0.21.0[${PYTHON_USEDEP}] )
	opt? ( dev-python/torch[${PYTHON_USEDEP}] )
	dev-python/mystic[${PYTHON_USEDEP}]
	dev-python/jax[${PYTHON_USEDEP}]
	dev-python/jaxlib[${PYTHON_USEDEP}]
	<dev-python/matplotlib-4.0.0[${PYTHON_USEDEP}]"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"