mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-02-18 04:27:27 -08:00
37 lines
971 B
Bash
37 lines
971 B
Bash
# Copyright 1999-2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="Python helpers for common CLI tasks"
|
|
HOMEPAGE="http://cli-helpers.rtfd.io/"
|
|
SRC_URI="https://github.com/dbcli/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
$(python_gen_cond_dep '>=dev-python/backports-csv-1.0[${PYTHON_USEDEP}]' -2)
|
|
>=dev-python/configobj-5.0.5[${PYTHON_USEDEP}]
|
|
>=dev-python/pygments-2.4.0[${PYTHON_USEDEP}]
|
|
>=dev-python/tabulate-0.8.0[${PYTHON_USEDEP}]
|
|
>=dev-python/terminaltables-3.0.0[${PYTHON_USEDEP}]
|
|
dev-python/wcwidth[${PYTHON_USEDEP}]
|
|
"
|
|
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
|
test? (
|
|
${RDEPEND}
|
|
>=dev-python/mock-2[${PYTHON_USEDEP}]
|
|
dev-python/pytest[${PYTHON_USEDEP}]
|
|
)"
|
|
|
|
python_test() {
|
|
pytest -vv || die "Tests fail with ${EPYTHON}"
|
|
}
|