2021-06-14 19:51:54 +00:00
|
|
|
# Description: Pretty-print tabular data in Python, a library and a command-line utility.
|
2023-05-28 10:28:23 +02:00
|
|
|
# URL: https://pypi.org/project/tabulate/
|
2021-06-14 19:51:54 +00:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-10-08 13:07:00 +02:00
|
|
|
# Depends on: python3-build python3-installer python3-setuptools-scm
|
2021-06-14 19:51:54 +00:00
|
|
|
# Optional: python3-numpy python3-pandas
|
|
|
|
|
|
|
|
name=python3-tabulate
|
2022-10-08 13:07:00 +02:00
|
|
|
version=0.9.0
|
2021-06-14 19:51:54 +00:00
|
|
|
release=1
|
|
|
|
source=(https://files.pythonhosted.org/packages/source/t/tabulate/tabulate-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd tabulate-$version
|
2022-10-08 13:07:00 +02:00
|
|
|
|
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
|
|
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
|
2021-10-10 12:36:50 +02:00
|
|
|
|
|
|
|
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
|
2021-06-14 19:51:54 +00:00
|
|
|
}
|