1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
7 EGIT_REPO_URI="https://github.com/dbcli/${PN}.git"
8 inherit distutils-r1 git-r3
10 DESCRIPTION="Python helpers for common CLI tasks"
11 HOMEPAGE="http://cli-helpers.rtfd.io/"
19 RESTRICT="!test? ( test )"
22 $(python_gen_cond_dep '>=dev-python/backports-csv-1.0[${PYTHON_USEDEP}]' -2)
23 >=dev-python/configobj-5.0.5[${PYTHON_USEDEP}]
24 >=dev-python/pygments-2.4.0[${PYTHON_USEDEP}]
25 >=dev-python/tabulate-0.8.0[${PYTHON_USEDEP}]
26 >=dev-python/terminaltables-3.0.0[${PYTHON_USEDEP}]
27 dev-python/wcwidth[${PYTHON_USEDEP}]
29 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
32 >=dev-python/mock-2[${PYTHON_USEDEP}]
33 dev-python/pytest[${PYTHON_USEDEP}]
37 pytest -vv || die "Tests fail with ${EPYTHON}"