python-wonderwords
CLEAN
maintainer Smoolak
0 votes
scanned 2026-09-21 00:26:32.109917
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 source hosted on the project's official GitHub repository, uses standard Python build tools, and includes reasonable checks; the low-vote and recent upload are not indicative of malicious intent.
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
3
pkgname=python-wonderwords
4
_pkgname=wonderwords
5
_upstream=wonderwordsmodule
6
pkgver=3.0.1
7
pkgrel=1
8
pkgdesc='Generate random English words and sentences'
9
arch=('any')
10
url='https://github.com/mrmaxguns/wonderwordsmodule'
11
license=('MIT')
12
depends=('python')
13
makedepends=(
14
'python-build'
15
'python-installer'
16
'python-setuptools'
17
'python-setuptools-scm'
18
'python-wheel'
19
)
20
checkdepends=(
21
'python-pytest'
22
'python-rich'
23
)
24
optdepends=('python-rich: command-line interface')
25
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
26
sha256sums=('65a5bfd85060e8982b13afa401500afb4116d3b89d519c79c34621fde6b799cd')
27
28
build() {
29
cd "$_upstream-$pkgver"
30
SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" \
31
python -m build --wheel --no-isolation
32
}
33
34
check() {
35
local _checkroot="$srcdir/_check" _site _staged
36
rm -rf "$_checkroot"
37
python -m installer --destdir="$_checkroot" \
38
"$_upstream-$pkgver"/dist/*.whl
39
_site=$(python -c 'import site; print(site.getsitepackages()[0])')
40
_staged="$_checkroot$_site"
41
mkdir -p "$_checkroot/suite"
42
cp -a "$_upstream-$pkgver/tests" "$_checkroot/suite/"
43
44
cd "$_checkroot/suite"
45
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTHONPATH="$_staged" \
46
python -P -m pytest -ra --import-mode=importlib tests
47
48
PYTHONPATH="$_staged" python -P - <<'PY'
49
from wonderwords import RandomSentence, RandomWord, __version__
50
51
assert __version__ == "3.0.1"
52
words = RandomWord().filter(starts_with="mana")
53
assert {"manage", "manager", "management"} <= set(words)
54
sentence = RandomSentence(
55
nouns=["builder"], verbs=["test"], adjectives=["careful"]
56
).sentence()
57
assert sentence.endswith(".") and "builder" in sentence.lower()
58
print("Wonderwords staged API workflow passed")
59
PY
60
PYTHONPATH="$_staged" python -P -m wonderwords --version | \
61
grep -Fx "Wonderwords $pkgver"
62
}
63
64
package() {
65
cd "$_upstream-$pkgver"
66
python -m installer --destdir="$pkgdir" dist/*.whl
67
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
68
}
69
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-21 00:26:32 | Clean | 2 |
| 2026-09-20 23:33:19 | Low | 1 |