python-draccus

CLEAN
maintainer Smoolak 0 votes scanned 2026-09-21 00:26:32.109917
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 from a legitimate source tarball hosted on the project's GitHub repository, applies a local patch, and installs the resulting wheel; all actions are standard for AUR Python packages and pose no security risk.

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: Smoolak <smoolak@gmail.com>
2
3pkgname=python-draccus
4_pkgname=draccus
5pkgver=0.11.6
6pkgrel=1
7pkgdesc="Slightly opinionated framework for simple dataclass-based configurations"
8arch=('any')
9url="https://github.com/dlwh/draccus"
10license=('MIT')
11depends=(
12 'python'
13 'python-mergedeep'
14 'python-yaml'
15 'python-toml'
16 'python-typing_inspect'
17)
18makedepends=(
19 'python-build'
20 'python-installer'
21 'python-setuptools'
22)
23checkdepends=(
24 'python-pytest'
25 'python-pytest-xdist'
26 'python-syrupy'
27)
28source=(
29 "$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
30 'python314-argparse-types.patch'
31)
32sha256sums=(
33 'a9d501d0262b75e56b6b8fa3c0ee3414e4fdc66766493677d3ef2ec20419eca5'
34 '57d3a28a0502eb3ba1aa9fdfe5182063d8a0fd4c0ca92fc7e4f7a92522edb4ea'
35)
36
37prepare() {
38 cd "$_pkgname-$pkgver"
39 patch -Np1 -i ../python314-argparse-types.patch
40}
41
42build() {
43 cd "$_pkgname-$pkgver"
44 rm -rf build dist ./*.egg-info
45 python -m build --wheel --no-isolation
46}
47
48check() {
49 cd "$_pkgname-$pkgver"
50
51 local site_packages
52 site_packages="$(python -c 'import sysconfig; print(sysconfig.get_path("purelib"))')"
53
54 rm -rf "$srcdir/draccus-check" "$srcdir/draccus-test-suite" \
55 "$srcdir/draccus-pytest-tmp"
56 python -m installer --destdir="$srcdir/draccus-check" dist/*.whl
57 mkdir -p "$srcdir/draccus-test-suite"
58 cp -a tests "$srcdir/draccus-test-suite/tests"
59
60 cd "$srcdir/draccus-test-suite"
61 PYTHONPATH="$srcdir/draccus-check$site_packages" \
62 python -m pytest -v \
63 -p no:randomly \
64 --basetemp="$srcdir/draccus-pytest-tmp" \
65 --doctest-modules \
66 --ignore=tests/draccus_choice_plugins \
67 --snapshot-warn-unused \
68 tests
69}
70
71package() {
72 cd "$_pkgname-$pkgver"
73
74 local site_packages
75 site_packages="$(python -c 'import sysconfig; print(sysconfig.get_path("purelib"))')"
76
77 python -m installer --destdir="$pkgdir" dist/*.whl
78 rm -rf "$pkgdir$site_packages"/{examples,tests}
79 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
80}
81

Scan history

Scanned at (UTC)SeverityRules
2026-09-21 00:26:32 Clean 2
2026-09-20 23:33:19 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