python-surya-ocr

MEDIUM
maintainer qubeck 0 votes scanned 2026-10-19 13:25:12.486194
View on AUR
Why flagged

This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.

Triggered rules

Medium Recently orphaned & re-adopted orphaned_readopted

This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.

PKGBUILD

1# Maintainer: qubeck <qubeck [AT] disroot [DOT] org>
2# Contributor: 0fflineuser <0fflineuser [AT] cock [DOT] li>
3
4pkgname=python-surya-ocr
5_name=${pkgname#python-}
6pkgver=0.22.1
7pkgrel=1
8pkgdesc='OCR, layout analysis, reading order, and table recognition in 90+ languages'
9arch=('any')
10url='https://github.com/datalab-to/surya'
11license=('Apache-2.0')
12depends=(
13 'python>=3.10'
14 'python-beautifulsoup4>=4.12.0'
15 'python-click>=8.1.8'
16 'python-dotenv>=1.0.0'
17 'python-filelock>=3.16.0'
18 'python-filetype>=1.2.0'
19 'python-httpx>=0.27.0'
20 'python-huggingface-hub>=1.5.0'
21 'python-numpy'
22 'python-openai>=1.55.0'
23 'python-opencv'
24 'python-pillow>=10.2.0'
25 'python-platformdirs>=4.3.6'
26 'python-pydantic>=2.5.3'
27 'python-pydantic-settings>=2.1.0'
28 'python-pypdfium2>=5.10.1'
29 'python-pytorch>=2.7.0'
30 'python-requests>=2.28.0'
31 'python-torchvision>=0.20.0'
32 'python-tqdm'
33 'python-transformers>=5.12.1'
34)
35makedepends=(
36 'python-build'
37 'python-hatchling'
38 'python-installer'
39)
40checkdepends=(
41 'python-pytest'
42)
43optdepends=(
44 'docker: for the NVIDIA/vLLM inference backend'
45 'llama-cpp: for the local llama-server inference backend'
46 'python-flask: for the surya_screenshot web application'
47 'python-pdftext: for bad-PDF-text detection in surya_gui'
48 'python-streamlit: for the surya_gui Streamlit application'
49)
50source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-${pkgver}.tar.gz")
51sha256sums=('792fc63d18cf648ed3608a3d0e3ed06ae627a31b08a8501d601bda4763ba6f9c')
52
53prepare() {
54 # Fix extracted directory name
55 mv "${_name//-/_}-${pkgver}" "${_name}-${pkgver}"
56}
57
58build() {
59 cd "${_name}-${pkgver}"
60 python -m build --wheel --no-isolation
61}
62
63check() {
64 cd "${_name}-${pkgver}"
65 pytest
66}
67
68package() {
69 cd "${_name}-${pkgver}"
70 python -m installer --destdir="${pkgdir}" dist/*.whl
71 install -Dm644 LICENSE \
72 -t "${pkgdir}/usr/share/licenses/${pkgname}"
73}
74

Changes since previous scan

--- PKGBUILD @ 2026-10-06 00:13
+++ PKGBUILD @ 2026-10-19 13:25
@@ -5,7 +5,7 @@
_name=${pkgname#python-}
pkgver=0.22.1
pkgrel=1
-pkgdesc='OCR, layout, reading order, and table recognition in 90+ languages'
+pkgdesc='OCR, layout analysis, reading order, and table recognition in 90+ languages'
arch=('any')
url='https://github.com/datalab-to/surya'
license=('Apache-2.0')
@@ -60,8 +60,6 @@
python -m build --wheel --no-isolation
}
-# Tests are currently broken, because package requires python-huggingface-hub<2.0,
-# while ArchLinux provides python-huggingface-hub=2.1.1. Build with --nocheck.
check() {
cd "${_name}-${pkgver}"
pytest

Scan history

Scanned at (UTC)SeverityRules
2026-10-19 13:25:12 Medium 1
2026-10-06 00:13:36 Clean 2
2026-10-05 23:40:58 Medium 1
2026-06-18 16:11:54 Clean 0

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion