# Copyright 1999-2026 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="A beautiful reStructuredText renderer for the rich library" HOMEPAGE=" https://github.com/wasi-master/rich-rst https://pypi.org/project/rich-rst/ " # Upstream's 2.0.x PyPI sdist omits tests/conftest.py (fixture # definitions) plus tests/test_sphinx_{directives,roles}.py and # tests/test_tables.py — MANIFEST.in misses them. Pull the github # archive instead so the bundled-in-repo test suite runs. SRC_URI="https://github.com/wasi-master/rich-rst/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" S="${WORKDIR}/${PN}-${PV}" # Bundled docutils subset (BSD-2 + public-domain) in rich_rst/_vendor/; # upstream vendored to remove GPL code from the dep tree. See # rich_rst/_vendor/LICENSES.txt + VENDORED.md for the full rationale. LICENSE="MIT BSD-2 public-domain" SLOT="0" KEYWORDS="~amd64 ~x86" RDEPEND=" >=dev-python/rich-12.0.0[${PYTHON_USEDEP}] >=dev-python/pygments-2.0.0[${PYTHON_USEDEP}] " EPYTEST_PLUGINS=() distutils_enable_tests pytest