# Maintainer: Andy Postnikov pkgname=py3-tabulate pkgver=0.8.6 pkgrel=0 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="10e331db1f8d6ea921654c3955efc4929827b003328c4e2ae663748ce5d5a3e473fe7abb4606147c00aec60ff44d3115c353d6f0e1417305166343212d77600e tabulate-0.8.6.tar.gz"