# 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} )
DISTUTILS_USE_PEP517=standalone

inherit python-r1 gs-pypi

DESCRIPTION="The open source metrics layer."

HOMEPAGE="https://github.com/Zenlytic/metrics_layer"
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="all bigquery postgres redshift snowflake"
DEPENDENCIES=">=dev-python/gitpython-3.1.20[${PYTHON_USEDEP}]
	>=dev-python/sqlparse-0.4.1[${PYTHON_USEDEP}]
	dev-python/PyPika[${PYTHON_USEDEP}]
	<dev-python/pandas-2.0.0[${PYTHON_USEDEP}]
	<dev-python/numpy-2.0.0[${PYTHON_USEDEP}]
	<dev-python/jinja2-4.0.0[${PYTHON_USEDEP}]
	redshift? ( dev-python/redshift-connector[${PYTHON_USEDEP}] )
	all? ( dev-python/redshift-connector[${PYTHON_USEDEP}] )
	snowflake? ( dev-python/snowflake-connector-python[${PYTHON_USEDEP}] )
	all? ( dev-python/snowflake-connector-python[${PYTHON_USEDEP}] )
	snowflake? ( >=dev-python/pyarrow-10.0[${PYTHON_USEDEP}] )
	bigquery? ( >=dev-python/pyarrow-10.0[${PYTHON_USEDEP}] )
	all? ( >=dev-python/pyarrow-10.0[${PYTHON_USEDEP}] )
	bigquery? ( dev-python/google-cloud-bigquery[${PYTHON_USEDEP}] )
	all? ( dev-python/google-cloud-bigquery[${PYTHON_USEDEP}] )
	postgres? ( dev-python/psycopg2-binary[${PYTHON_USEDEP}] )
	all? ( dev-python/psycopg2-binary[${PYTHON_USEDEP}] )
	<dev-python/sqlalchemy-3.0.0[${PYTHON_USEDEP}]
	<dev-python/networkx-3.0.0[${PYTHON_USEDEP}]
	<dev-python/click-9.0[${PYTHON_USEDEP}]
	<dev-python/colorama-0.5.0[${PYTHON_USEDEP}]
	<dev-python/ruamel-yaml-0.18.0[${PYTHON_USEDEP}]
	dev-python/pendulum[${PYTHON_USEDEP}]
	<dev-python/pyyaml-7.0[${PYTHON_USEDEP}]
	<dev-python/sqlglot-28.0.0[${PYTHON_USEDEP}]"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"