[arch-commits] Commit in python-pytesseract/repos/community-any (PKGBUILD PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Tue Sep 8 09:04:20 UTC 2020


    Date: Tuesday, September 8, 2020 @ 09:04:20
  Author: polyzen
Revision: 700631

archrelease: copy trunk to community-any

Added:
  python-pytesseract/repos/community-any/PKGBUILD
    (from rev 700630, python-pytesseract/trunk/PKGBUILD)
Deleted:
  python-pytesseract/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   66 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 33 insertions(+), 33 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-08 09:03:59 UTC (rev 700630)
+++ PKGBUILD	2020-09-08 09:04:20 UTC (rev 700631)
@@ -1,33 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Christoph Brill <egore911 at gmail.com>
-
-_name=pytesseract
-pkgname=python-pytesseract
-pkgver=0.3.5
-pkgrel=1
-pkgdesc='Python wrapper for Google Tesseract'
-arch=('any')
-url=https://github.com/madmaze/pytesseract
-license=('Apache')
-depends=('python-pillow' 'python-setuptools' 'tesseract')
-checkdepends=('python-pytest' 'tesseract-data-eng' 'tesseract-data-fra')
-source=("$url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz")
-sha512sums=('8a1f3dc1378726c7d6376ea8b42d222d907d83c2db9e84da3cc0add5d70e7023bffcde087e413f6d3be09c78929f9b8552f69b8c33608b9772362f8289d1d003')
-
-build() {
-  cd $_name-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd $_name-$pkgver
-  mkdir -p temp
-  local sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
-  python setup.py install --skip-build --root=temp
-  PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$sitepackages" pytest
-}
-
-package() {
-  cd $_name-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}

Copied: python-pytesseract/repos/community-any/PKGBUILD (from rev 700630, python-pytesseract/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-08 09:04:20 UTC (rev 700631)
@@ -0,0 +1,33 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Christoph Brill <egore911 at gmail.com>
+
+_name=pytesseract
+pkgname=python-pytesseract
+pkgver=0.3.6
+pkgrel=1
+pkgdesc='Python wrapper for Google Tesseract'
+arch=('any')
+url=https://github.com/madmaze/pytesseract
+license=('Apache')
+depends=('python-pillow' 'python-setuptools' 'tesseract')
+checkdepends=('python-pytest' 'tesseract-data-eng' 'tesseract-data-fra')
+source=("$url/archive/v.$pkgver/$_name-v.$pkgver.tar.gz")
+sha512sums=('002777ce3c9609455aca36e0e17f19ead32c5d48b8bc04081b63aa1520104572ecdf975a85fbf010e29bd6eb66db810f1b88ee8e852de274dc9fdea96acf80bf')
+
+build() {
+  cd $_name-v.$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_name-v.$pkgver
+  mkdir -p temp
+  local sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
+  python setup.py install --skip-build --root=temp
+  PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$sitepackages" pytest -k 'not test_image_to_data_common_output[dict]' # https://github.com/madmaze/pytesseract/issues/298
+}
+
+package() {
+  cd $_name-v.$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}


More information about the arch-commits mailing list