# Template file for 'python3-Sphinx'
pkgname=python3-Sphinx
version=9.1.0
revision=1
build_style=python3-pep517
_depends="python3-sphinxcontrib-htmlhelp python3-imagesize python3-alabaster
 python3-requests python3-sphinxcontrib-jsmath python3-roman-numerals
 python3-sphinxcontrib-applehelp python3-Babel
 python3-sphinxcontrib-serializinghtml python3-docutils python3-Jinja2
 python3-sphinxcontrib-devhelp python3-sphinxcontrib-qthelp
 python3-Pygments python3-snowballstemmer"
hostmakedepends="python3-flit_core python3-pyproject-hooks $_depends"
depends="$_depends python3-packaging"
checkdepends="$depends python3-html5lib python3-mypy ImageMagick gettext
 python3-pytest-xdist python3-setuptools python3-filelock python3-defusedxml
 graphviz"
short_desc="Python 3 documentation generator"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="BSD-2-Clause"
homepage="http://sphinx-doc.org"
changelog="https://github.com/sphinx-doc/sphinx/raw/master/CHANGES"
distfiles="${PYPI_SITE}/s/sphinx/sphinx-${version}.tar.gz"
checksum=7741722357dd75f8190766926071fed3bdc211c74dd2d7d4df5404da95930ddb
replaces="python-Sphinx>=0"

post_patch() {
	# rename so it works with any python
	mv -i tests/roots/test-ext-apidoc-duplicates/fish_licence/{halibut*.so,halibut.so}
}

post_install() {
	vlicense LICENSE.rst
}
