prspkt ed65890150
testing/py-tabulate: drop python2
* Fix tests.
* Add py3-setuptools, py3-wcwidth runtime dependencies.

Signed-off-by: prspkt <prspkt@protonmail.com>
2019-08-19 00:46:08 +03:00

36 lines
988 B
Plaintext

# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=py3-tabulate
pkgver=0.8.3
pkgrel=2
pkgdesc="Pretty-print tabular data"
url="https://bitbucket.org/astanin/python-tabulate"
arch="noarch"
license="MIT"
depends="py3-setuptools py3-wcwidth"
checkdepends="py3-nose"
source="https://files.pythonhosted.org/packages/source/t/tabulate/tabulate-$pkgver.tar.gz"
builddir="$srcdir/tabulate-$pkgver"
replaces=py-tabulate # Backwards compatibility
provides=py-tabulate=$pkgver-r$pkgrel # Backwards compatibility
prepare() {
default_prepare
# fix interpreter invocation
sed -i 's/"python"/"python3"/g' test/test_cli.py
}
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$builddir"/build/lib python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="7f0205a4d80ed0b426a45622a3b8ec0a9b77cf6d67c1207db7fbc20a12e83a15748e63d5f8e5e65fa348b6265fd0cac93be4d04f9c1c182476b93507e1131cbf tabulate-0.8.3.tar.gz"