1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_{6,7}} )
9 DESCRIPTION="Python helpers for common CLI tasks"
10 HOMEPAGE="http://cli-helpers.rtfd.io/"
11 SRC_URI="https://github.com/dbcli/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
17 RESTRICT="!test? ( test )"
20 $(python_gen_cond_dep '>=dev-python/backports-csv-1.0[${PYTHON_USEDEP}]' -2)
21 >=dev-python/configobj-5.0.5[${PYTHON_USEDEP}]
22 >=dev-python/pygments-2.4.0[${PYTHON_USEDEP}]
23 >=dev-python/tabulate-0.8.0[${PYTHON_USEDEP}]
24 >=dev-python/terminaltables-3.0.0[${PYTHON_USEDEP}]
25 dev-python/wcwidth[${PYTHON_USEDEP}]
27 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
30 >=dev-python/mock-2[${PYTHON_USEDEP}]
31 dev-python/pytest[${PYTHON_USEDEP}]
35 pytest -vv || die "Tests fail with ${EPYTHON}"