dev-python/doc8: fix overdependency on tomli

Since 1.0.0, it has supported using the stdlib tomllib when available:

a3638de133

Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Eli Schwartz
2024-06-26 00:19:19 -04:00
committed by Sam James
parent 050f75a4ee
commit 1e91fddc40

View File

@@ -0,0 +1,35 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi
DESCRIPTION="Style checker for Sphinx (or other) RST documentation"
HOMEPAGE="
https://pypi.org/project/doc8/
https://github.com/PyCQA/doc8/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
RDEPEND="
<dev-python/docutils-0.21[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]
>=dev-python/restructuredtext-lint-0.7[${PYTHON_USEDEP}]
dev-python/stevedore[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/tomli[${PYTHON_USEDEP}]
' 3.10)
"
# setuptools_scm_git_archive is not actually needed here
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest