# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{11,12} ) inherit distutils-r1 DESCRIPTION="A multi-user server for Jupyter notebooks" HOMEPAGE="https://github.com/jupyterhub/jupyterhub" SRC_URI="https://github.com/jupyterhub/jupyterhub/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64" IUSE="ldapauthenticator postgres sudospawner" RESTRICT=network-sandbox PATCHES=( ${FILESDIR}/01_alembic.patch ) distutils_enable_tests pytest RDEPEND=" acct-user/jupyterhub acct-group/jupyterhub net-libs/nodejs[npm] >=dev-python/alembic-1.4[${PYTHON_USEDEP}] >=dev-python/certipy-0.1.2[${PYTHON_USEDEP}] dev-python/idna[${PYTHON_USEDEP}] >=dev-python/jinja2-2.11.0[${PYTHON_USEDEP}] dev-python/jupyter-events[${PYTHON_USEDEP}] >=dev-python/oauthlib-3.0[${PYTHON_USEDEP}] dev-python/pamela[${PYTHON_USEDEP}] dev-python/packaging[${PYTHON_USEDEP}] >=dev-python/prometheus-client-0.4.0[${PYTHON_USEDEP}] >=dev-python/pydantic-2.0.0[${PYTHON_USEDEP}] dev-python/python-dateutil[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] >=dev-python/sqlalchemy-1.4.1[${PYTHON_USEDEP}] >=dev-python/tornado-5.1[${PYTHON_USEDEP}] >=dev-python/traitlets-4.3.2[${PYTHON_USEDEP}] || ( dev-python/jupyterlab[${PYTHON_USEDEP}] dev-python/jupyter[${PYTHON_USEDEP}] ) postgres? (