27 lines
884 B
Plaintext
27 lines
884 B
Plaintext
# Description: Pretty-print tabular data in Python, a library and a command-line utility.
|
|
# URL: https://bitbucket.org/astanin/python-tabulate
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: python3-build python3-installer python3-setuptools-scm
|
|
# Optional: python3-numpy python3-pandas
|
|
|
|
name=python3-tabulate
|
|
version=0.9.0
|
|
release=1
|
|
source=(https://files.pythonhosted.org/packages/source/t/tabulate/tabulate-$version.tar.gz)
|
|
|
|
build() {
|
|
cd tabulate-$version
|
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
|
|
|
|
find $PKG \(\
|
|
-iname '*PKG-INFO*' -o \
|
|
-iname '*SOURCES*' -o \
|
|
-iname '*dependency_links.txt' -o \
|
|
-iname '*entry_points.txt*' -o \
|
|
-iname '*requires.txt*' -o \
|
|
-iname '*top_level.txt*' \
|
|
\) -exec rm -r '{}' \+ || true
|
|
}
|