Install this version:
emerge -a =dev-python/sudospawner-1.0.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/sudospawner-1.0.0
Or alternatively:
emerge --autounmask-write -a =dev-python/sudospawner-1.0.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.0.0 | 8 | ~amd64 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1
DESCRIPTION="The SudoSpawner enables JupyterHub to spawn single-user servers without being root"
HOMEPAGE="https://github.com/jupyterhub/sudospawner"
SRC_URI="https://github.com/jupyterhub/sudospawner/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/jupyterhub-4[${PYTHON_USEDEP}]
app-admin/sudo
acct-user/jupyterhub
acct-group/jupyterhub
"
src_prepare() {
distutils-r1_src_prepare
}
python_compile() {
distutils-r1_python_compile
}
python_install() {
distutils-r1_python_install --skip-build
}
python_install_all() {
insinto /etc/sudoers.d
newins ${FILESDIR}/sudospawner.sudoers sudospawner
distutils-r1_python_install_all
}
pkg_postinst() {
elog
elog "All jupyterhub users should be members of jupyterhub group"
elog "(see /etc/sudoers.d/jupyterhub)"
elog
}
>=dev-python/jupyterhub-4[] app-admin/sudo acct-user/jupyterhub acct-group/jupyterhub
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | sudospawner-1.0.0.tar.gz | 15474 bytes | https://github.com/jupyterhub/sudospawner/archive/1.0.0.tar.gz |