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

Daniel M. Capella polyzen at gemini.archlinux.org
Wed Mar 16 21:16:28 UTC 2022


    Date: Wednesday, March 16, 2022 @ 21:16:28
  Author: polyzen
Revision: 1155975

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   74 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 36 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-16 21:16:24 UTC (rev 1155974)
+++ PKGBUILD	2022-03-16 21:16:28 UTC (rev 1155975)
@@ -1,38 +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.9
-pkgrel=1
-pkgdesc='Python wrapper for Google Tesseract'
-arch=('any')
-url=https://github.com/madmaze/pytesseract
-license=('Apache')
-depends=('python-packaging' 'python-pillow' 'tesseract')
-makedepends=('python-build' 'python-install' 'python-setuptools' 'python-wheel')
-checkdepends=('python-pytest' 'tesseract-data-eng' 'tesseract-data-fra')
-source=("$url/archive/v$pkgver/$_name-v$pkgver.tar.gz")
-b2sums=('2b1c54df34d9717ffe342974c622f2f262a4f2f11d26512cad5a0a148c60f554ac02efba15c588bfbedc82d52eaf20c8f471d8d8d5fff8125544f10468483ad0')
-
-build() {
-  cd $_name-$pkgver
-  python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-check() {
-  cd $_name-$pkgver
-  python -m venv --system-site-packages test-env
-  test-env/bin/python -m install --optimize=1 dist/*.whl
-  test-env/bin/python -m pytest
-}
-
-package() {
-  cd $_name-$pkgver
-  python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
-
-  # https://github.com/FFY00/python-install/pull/6
-  chmod +x "$pkgdir"/usr/bin/$_name
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pytesseract/repos/community-any/PKGBUILD (from rev 1155973, python-pytesseract/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-16 21:16:28 UTC (rev 1155975)
@@ -0,0 +1,36 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Christoph Brill <egore911 at gmail.com>
+
+_name=pytesseract
+pkgname=python-pytesseract
+pkgver=0.3.10
+pkgrel=1
+pkgdesc='Python wrapper for Google Tesseract'
+arch=('any')
+url=https://github.com/madmaze/pytesseract
+license=('Apache')
+depends=('python-packaging' 'python-pillow' 'tesseract')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
+checkdepends=('python-pytest' 'tesseract-data-eng' 'tesseract-data-fra')
+source=("$url/archive/v$pkgver/$_name-v$pkgver.tar.gz")
+b2sums=('d89f9082d8c7236b97bb96441809a19f494aacd23d4c02d5b7fb1b742616e7b26c249d49fceecc4f652792cdc3d7f2a79cd580a3360157f81205ff04d65afb10')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m installer dist/*.whl
+  # https://github.com/madmaze/pytesseract/issues/419
+  test-env/bin/python -m pytest -k 'not test_image_to_string_with_image_type[jpeg2000]'
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list