python-doclang

CLEAN
maintainer RubenKelevra 0 votes scanned 2026-08-21 00:01:35.148225
View on AUR

Triggered rules

Clean AI review downgraded a static finding llm_review

The static rules flagged this LOW, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it CLEAN (confidence 95%): The package builds and installs from a verifiable source tarball hosted on the project's official GitHub repository, with a valid b2sum; no untrusted or executable remote code is involved.

1 higher static finding superseded - not the current verdict (shown for transparency)
Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: @RubenKelevra <rubenkelevra@gmail.com>
2
3_pkgname='doclang'
4pkgname="python-${_pkgname}"
5pkgver='0.7.3'
6pkgrel=1
7pkgdesc='DocLang reference toolkit'
8url="https://github.com/doclang-project/${_pkgname}"
9license=('Apache-2.0')
10arch=('any')
11depends=(
12 'python>=3.10'
13 'python-lxml>=4.8.0'
14 'python-saxonche>=12.9.0'
15 'python-typer>=0.15.1'
16)
17makedepends=(
18 'python-build'
19 'python-installer'
20 'python-setuptools>=80'
21 'python-wheel'
22)
23checkdepends=(
24 'python-docx>=1.2.0'
25 'python-pytest'
26)
27source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
28b2sums=('192928f14bffa76d12347980335197d13b4b62c86f42d683d91b44af106a0ec83ceb7bfce6f61ac9ab9141d25729d6732fe8eebd7a5fdc90097391efbbe5acca')
29
30build() {
31 cd -- "${_pkgname}-${pkgver}" || return 1
32 python -m build --wheel --no-isolation
33}
34
35check() {
36 local _src="${_pkgname}-${pkgver}"
37 local _check_root="${srcdir}/${_pkgname}-check"
38 local -a _site_packages=()
39
40 rm -rf -- "${_check_root}"
41 mkdir -p -- "${_check_root}/examples"
42 python -m installer --destdir="${_check_root}" "${_src}"/dist/*.whl
43 cp -a -- "${_src}/tests" "${_check_root}/tests"
44 cp -a -- "${_src}/utils" "${_check_root}/utils"
45 cp -a -- "${_src}/spec.md" "${_check_root}/spec.md"
46 cp -a -- "${_src}/examples/archive-demo" "${_check_root}/examples/archive-demo"
47 cp -a -- "${_src}/examples/form" "${_check_root}/examples/form"
48
49 _site_packages=("${_check_root}"/usr/lib/python*/site-packages)
50 (( ${#_site_packages[@]} == 1 )) || {
51 printf 'Expected exactly one Python site-packages directory, found %d\n' "${#_site_packages[@]}" >&2
52 return 1
53 }
54 [[ -d "${_site_packages[0]}" ]] || {
55 printf 'Missing Python site-packages directory: %s\n' "${_site_packages[0]}" >&2
56 return 1
57 }
58
59 cd -- "${_check_root}" || return 1
60 PYTHONPATH="${_site_packages[0]}" python -m pytest tests
61}
62
63package() {
64 cd -- "${_pkgname}-${pkgver}" || return 1
65 python -m installer --destdir="${pkgdir}" --compile-bytecode 2 dist/*.whl
66 install -D -m644 -- LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
67}
68

Scan history

Scanned at (UTC)SeverityRules
2026-08-21 00:01:35 Clean 2
2026-08-20 23:13:41 Low 1

Report a package

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

0 / 4000
Your suggestion