blob: fd2d7b1636cb6101b9eef9262f5ec45b0b618bf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=py3-tabulate
pkgver=0.8.4
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="1a71e8f7d4eea9c03c7ab327fc919ecb367aeaa2b075b5c9bccf394e308c74c3451a4d99f9361847499d89de751face469e981e7dce519c9a8cb658c37b3363e tabulate-0.8.4.tar.gz"
|