[arch-commits] Commit in python-pdfminer/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Wed Apr 8 17:48:37 UTC 2020


    Date: Wednesday, April 8, 2020 @ 17:48:36
  Author: archange
Revision: 612685

upgpkg: python-pdfminer 20200402-1

Also enable tests.

Modified:
  python-pdfminer/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-08 17:45:16 UTC (rev 612684)
+++ PKGBUILD	2020-04-08 17:48:36 UTC (rev 612685)
@@ -2,7 +2,7 @@
 
 _pkg=pdfminer
 pkgname=python-${_pkg}
-pkgver=20200124
+pkgver=20200402
 pkgrel=1
 pkgdesc="Python PDF Parser"
 arch=(any)
@@ -10,8 +10,11 @@
 license=(MIT)
 depends=(python-chardet python-pycryptodome python-sortedcontainers)
 makedepends=(python-setuptools cython)
-source=(${url}/releases/download/${pkgver}/${_pkg}.six-${pkgver}.tar.gz)
-sha256sums=('9f34f8f61cd72ae23ef572e0ea1c93cd2b1e4a6d1137d14ed23763b5b2094e13')
+checkdepends=(python-nose)
+# Provided tarballs do not include tests
+#source=(${url}/releases/download/${pkgver}/${_pkg}.six-${pkgver}.tar.gz)
+source=(${url}/archive/${pkgver}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('9cb849b95046f064b6ac2350234349007d2efd52647df6d755521e48dde5a28e')
 
 build() {
   cd ${_pkg}.six-${pkgver}
@@ -18,6 +21,11 @@
   python setup.py build
 }
 
+check() {
+  cd ${_pkg}.six-${pkgver}
+  nosetests
+}
+
 package() {
   cd ${_pkg}.six-${pkgver}
   python setup.py install --skip-build --prefix=/usr --root="${pkgdir}" --optimize=1



More information about the arch-commits mailing list