SwordArMor-gentoo-overlay/dev-python/sphinx_book_theme/sphinx_book_theme-0.3.3.ebuild

38 lines
1.3 KiB
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
#DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1 optfeature
DESCRIPTION="A clean book theme for scientific explanations and documentation with Sphinx"
HOMEPAGE="https://sphinx-book-theme.readthedocs.io"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="code_style"
RESTRICT="test" # test failed as no docutils<0.17
RDEPEND="dev-python/beautifulsoup4[${PYTHON_USEDEP}]
>=dev-python/docutils-0.15[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
~dev-python/pydata-sphinx-theme-0.7.2[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
code_style? ( dev-vcs/pre-commit )
"
distutils_enable_tests setup.py
pkg_postinst() {
optfeature "extra sphinx support" "sci-geosciences/folium dev-python/numpy dev-python/matplotlib dev-python/ipywidgets \
dev-python/pandas dev-python/plotly dev-python/nbclient dev-python/sphinxcontrib-bibtex dev-python/myst-nb \
dev-python/sphinx-copybutton dev-python/sphinx-togglebutton dev-python/sphinx-thebe dev-python/ablog \
dev-python/sphinxext-opengraph"
optfeature "extra live-dev support" "dev-python/sphinx-autobuild dev-python/web-compile"
}