# 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="OPAL is an administration layer for Open Policy Agent (OPA), detecting changes to both policy and data and pushing live updates to your agents. The opal-server creates a pub/sub channel clients can subscribe to (i.e: acts as coordinator). The server also tracks a git repository (via webhook) for updates to policy (or static data) and accepts continuous data update notifications via REST api, which are then pushed to clients."

HOMEPAGE="https://github.com/permitio/opal"
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=""
DEPENDENCIES="<dev-python/click-9.0[${PYTHON_USEDEP}]
	dev-python/permit-broadcaster[${PYTHON_USEDEP}]
	<dev-python/gitpython-4.0[${PYTHON_USEDEP}]
	<dev-python/pyjwt-3.0[${PYTHON_USEDEP}]
	dev-python/slowapi[${PYTHON_USEDEP}]
	<dev-python/pygit2-1.15[${PYTHON_USEDEP}]
	<dev-python/asgiref-4.0[${PYTHON_USEDEP}]
	<dev-python/redis-5.0[${PYTHON_USEDEP}]
	dev-python/opal-common[${PYTHON_USEDEP}]
	<dev-python/idna-4.0[${PYTHON_USEDEP}]
	<dev-python/typer-1.0[${PYTHON_USEDEP}]
	dev-python/fastapi[${PYTHON_USEDEP}]
	dev-python/fastapi-websocket-pubsub[${PYTHON_USEDEP}]
	dev-python/fastapi-websocket-rpc[${PYTHON_USEDEP}]
	>=dev-python/websockets-10.3[${PYTHON_USEDEP}]
	dev-python/gunicorn[${PYTHON_USEDEP}]
	<dev-python/pydantic-2.0[${PYTHON_USEDEP}]
	<dev-python/starlette-1.0[${PYTHON_USEDEP}]
	<dev-python/uvicorn-1.0[${PYTHON_USEDEP}]
	dev-python/fastapi-utils[${PYTHON_USEDEP}]
	>=dev-python/setuptools-70.0.0[${PYTHON_USEDEP}]
	>=dev-python/anyio-4.4.0[${PYTHON_USEDEP}]
	>=dev-python/starlette-0.40.0[${PYTHON_USEDEP}]"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"