summaryrefslogtreecommitdiff
path: root/dev-python/rich-click/rich-click-1.9.8.ebuild
blob: 0661bd8c576b1f9ce232106c9381d825816f96b8 (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
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )

inherit distutils-r1

DESCRIPTION="Format click help output nicely with rich"
HOMEPAGE="
	https://pypi.org/project/rich-click/
	https://github.com/ewels/rich-click/
"
SRC_URI="
	https://github.com/ewels/${PN}/archive/refs/tags/v${PV}.tar.gz
		-> ${P}.gh.tar.gz
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"

RDEPEND="
	>=dev-python/click-8[${PYTHON_USEDEP}]
	>=dev-python/rich-12[${PYTHON_USEDEP}]
"
BDEPEND="
	test? (
		>=dev-python/packaging-25[${PYTHON_USEDEP}]
	)
"

EPYTEST_PLUGINS=( inline-snapshot )
distutils_enable_tests pytest

EPYTEST_IGNORE=(
	# broken by typer making the brilliant decision to bundle click
	tests/typer_help
)

python_test() {
	epytest -o addopts=
}