[arch-commits] Commit in python-tabulate/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 15:52:12 UTC 2020


    Date: Monday, November 9, 2020 @ 15:52:11
  Author: foutrelis
Revision: 747200

archrelease: copy trunk to community-staging-any

Added:
  python-tabulate/repos/community-staging-any/
  python-tabulate/repos/community-staging-any/PKGBUILD
    (from rev 747199, python-tabulate/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: python-tabulate/repos/community-staging-any/PKGBUILD (from rev 747199, python-tabulate/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:52:11 UTC (rev 747200)
@@ -0,0 +1,39 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=tabulate
+pkgname=python-tabulate
+pkgver=0.8.7
+pkgrel=2
+pkgdesc="Pretty-print tabular data in Python, a library and a command-line utility."
+arch=('any')
+url="https://bitbucket.org/astanin/python-tabulate"
+license=('MIT')
+depends=('python-setuptools')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-numpy' 'python-pandas' 'python-wcwidth')
+optdepends=('python-numpy: NumPy array support'
+            'python-pandas: pandas.DataFrame support'
+            'python-wcwidth: wide-character support')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('963d12970227671fc80d26feacfafd37404034eba82778cee2450b8dbc7c723a7137209b601bc2adc13883543bff0d6b887ed2e7b91934a7f2ca4704ce5fd340')
+
+build() {
+  cd "${_name}-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "${_name}-$pkgver"
+  export PYTHONPATH="${PYTHONPATH}:${PWD}"
+  python setup.py test
+}
+
+package_python-tabulate() {
+  cd "${_name}-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+}



More information about the arch-commits mailing list