1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/testing/py3-tabulate/APKBUILD

38 lines
991 B
Text

# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=py3-tabulate
pkgver=0.8.9
pkgrel=0
pkgdesc="Pretty-print tabular data"
url="https://bitbucket.org/astanin/python-tabulate"
arch="noarch"
license="MIT"
depends="python3 py3-wcwidth"
makedepends="py3-setuptools"
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="
4170bb4ded836997ea053b039f19e084818c40e8ae2ae4f56c686ed3d33a341986bc311dd0370256b1af815db7b1ed8ba89008f87f8634b216412d0fd5fa76d9 tabulate-0.8.9.tar.gz
"