| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.3.1 | 8 | ~amd64 ~x86 | 0 |
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1 pypi
DESCRIPTION="Integrate interactive code blocks into your documentation with Thebe and Binder"
HOMEPAGE="https://sphinx-thebe.readthedocs.io"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="sphinx"
RDEPEND=">=dev-python/sphinx-4[${PYTHON_USEDEP}]
sphinx? (
dev-python/myst-nb[${PYTHON_USEDEP}]
dev-python/sphinx-book-theme[${PYTHON_USEDEP}]
dev-python/sphinx-copybutton[${PYTHON_USEDEP}]
dev-python/sphinx-design[${PYTHON_USEDEP}]
)
"
BDEPEND="dev-python/hatch-vcs[${PYTHON_USEDEP}]
test? (
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
dev-python/myst-nb[${PYTHON_USEDEP}]
dev-python/sphinx-copybutton[${PYTHON_USEDEP}]
dev-python/sphinx-design[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( pytest-{datadir,regressions} )
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/sphinx-copybutton \
dev-python/sphinx-design \
dev-python/sphinx-book-theme \
dev-python/myst-nb \
dev-python/matplotlib
python_test() {
PYTHONPATH="${BUILD_DIR}"/install/$(python_get_sitedir) epytest
}
>=dev-python/sphinx-4[${PYTHON_USEDEP}]
sphinx? (
dev-python/myst-nb[${PYTHON_USEDEP}]
dev-python/sphinx-book-theme[${PYTHON_USEDEP}]
dev-python/sphinx-copybutton[${PYTHON_USEDEP}]
dev-python/sphinx-design[${PYTHON_USEDEP}]
)
dev-python/hatch-vcs[${PYTHON_USEDEP}]
test? (
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
dev-python/myst-nb[${PYTHON_USEDEP}]
dev-python/sphinx-copybutton[${PYTHON_USEDEP}]
dev-python/sphinx-design[${PYTHON_USEDEP}]
)