Files
gentoo/dev-python/sphinxcontrib-mermaid/sphinxcontrib-mermaid-2.0.2.ebuild
T
Michał Górny b5bcdf9157 dev-python/sphinxcontrib-mermaid: Bump to 2.0.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2026-05-06 04:34:48 +02:00

45 lines
1.0 KiB
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{13..14} )
inherit distutils-r1
DESCRIPTION="Sphinx spelling extension"
HOMEPAGE="
https://github.com/mgaitan/sphinxcontrib-mermaid
https://pypi.org/project/sphinxcontrib-mermaid/
"
# pypi does not include test files, so we use the GitHub tarball
SRC_URI="
https://github.com/mgaitan/sphinxcontrib-mermaid/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz
"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~riscv ~x86"
RDEPEND="
dev-python/jinja2[${PYTHON_USEDEP}]
>=dev-python/pyyaml-6.0.0[${PYTHON_USEDEP}]
>=dev-python/sphinx-3.0.0[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/defusedxml[${PYTHON_USEDEP}]
dev-python/myst-parser[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( pytest-asyncio )
distutils_enable_tests pytest
python_test() {
distutils_write_namespace sphinxcontrib
rm -rf sphinxcontrib || die
epytest tests
}