# 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="A three tier systems code generator that targets serveral databases and languages"

HOMEPAGE="https://bitbucket.org/bitsmiths_za/mettle.git"
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="postgresql_async postgresql_psycopg2 postgresql_psycopg3 sqlalchemy sqlite_async"
DEPENDENCIES=">=dev-python/pyyaml-5.0.0[${PYTHON_USEDEP}]
	>=dev-python/sqlparse-0.4.1[${PYTHON_USEDEP}]
	dev-python/stringcase[${PYTHON_USEDEP}]
	postgresql_async? ( dev-python/databases[${PYTHON_USEDEP}] )
	postgresql_psycopg2? ( dev-python/psycopg2[${PYTHON_USEDEP}] )
	postgresql_psycopg3? ( dev-python/psycopg[${PYTHON_USEDEP}] )
	sqlalchemy? ( dev-python/sqlalchemy[${PYTHON_USEDEP}] )
	sqlalchemy? ( dev-python/psycopg2[${PYTHON_USEDEP}] )
	sqlalchemy? ( dev-python/asyncpg[${PYTHON_USEDEP}] )
	sqlite_async? ( dev-python/databases[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"