aboutsummaryrefslogtreecommitdiff
blob: c3e8ea6efdf0bf707f24e12f980f2b5fe3c3b281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{9..10} )
DISTUTILS_USE_PEP517=flit
inherit distutils-r1

DESCRIPTION="Sphinx extension to show tooltips with content embedded when hover a reference"
HOMEPAGE="
	https://pypi.org/project/sphinx-hoverxref/
	https://github.com/readthedocs/sphinx-hoverxref
"
SRC_URI="https://github.com/readthedocs/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	dev-python/sphinx[${PYTHON_USEDEP}]
	dev-python/sphinxcontrib-jquery[${PYTHON_USEDEP}]
"
BDEPEND="
	test? (
		dev-python/sphinxcontrib-bibtex[${PYTHON_USEDEP}]
		dev-python/sphinx-testing[${PYTHON_USEDEP}]
	)
"

EPYTEST_DESELECT=(
	# tests that require network
	tests/test_htmltag.py::test_intersphinx_default_configs
	tests/test_htmltag.py::test_intersphinx_python_mapping
	tests/test_htmltag.py::test_intersphinx_all_mappings
)

distutils_enable_tests pytest

distutils_enable_sphinx docs \
	dev-python/sphinx-autoapi \
	dev-python/sphinx-notfound-page \
	dev-python/sphinx-prompt \
	dev-python/sphinx-tabs \
	dev-python/sphinx-version-warning \
	dev-python/sphinx-rtd-theme \
	dev-python/sphinxcontrib-bibtex \
	dev-python/sphinxemoji