1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
10 DESCRIPTION="Pretty-print tabular data"
11 HOMEPAGE="https://pypi.org/project/tabulate/ https://github.com/astanin/python-tabulate"
12 SRC_URI="https://github.com/astanin/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
13 S="${WORKDIR}/python-${P}"
17 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
19 RESTRICT="!test? ( test )"
21 RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
22 dev-python/wcwidth[${PYTHON_USEDEP}]"
23 BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
26 $(python_gen_impl_dep 'sqlite')
27 dev-python/colorclass[${PYTHON_USEDEP}]
28 $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' 'python3*')
29 virtual/python-funcsigs[${PYTHON_USEDEP}]
34 "${FILESDIR}/tabulate-0.8.6-avoid-pandas-dep.patch"
37 distutils_enable_tests nose