mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
35 lines
967 B
Text
35 lines
967 B
Text
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=py3-tabulate
|
|
pkgver=0.8.5
|
|
pkgrel=1
|
|
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="137f576ac5adc29ad82f77da499804b110ddc7f12c5f85cdc79bdd5dfd37404d49f1c5667e6f8721e48f949b684c71b330b8e4fae4ef8a933af24d68fd0665c5 tabulate-0.8.5.tar.gz"
|