ustoat
maintainer Spyro24
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The pip install is used to install dependencies from the project's own requirements.txt within a contained venv, which is a standard and safe practice for Python applications; the source is from the project's official Git repository.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The pip install is used to install dependencies from the project's own requirements.txt within a contained venv, which is a standard and safe practice for Python applications; the source is from the project's official Git repository.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
pip install of an external package
pip_install_external
`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:33
"$appdir/venv/bin/python" -m pip install --upgrade pip setuptools wheel
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Spyro24 <minerpi16@gmail.com>
2
export DEBUGPKG=0
3
pkgname=ustoat
4
pkgver=0.4.0
5
pkgrel=1
6
pkgdesc="UStoat — A custom stoat client written in python with the use of pygame-ce"
7
url="https://github.com/Spyro24/UStoat"
8
license=(GPL)
9
arch=(x86_64)
10
depends=(python tk)
11
makedepends=(git imagemagick python-virtualenv)
12
optdepends=()
13
provides=()
14
conflicts=()
15
replaces=()
16
source=("git+https://github.com/Spyro24/UStoat.git")
17
sha512sums=('SKIP')
18
19
build() {
20
cd "$srcdir/UStoat" || return 1
21
return 0
22
}
23
24
package() {
25
cd "$srcdir/UStoat" || return 1
26
27
appdir="$pkgdir/usr/lib/$pkgname"
28
mkdir -p "$appdir"
29
cp -a "$srcdir/UStoat/." "$appdir/"
30
31
# create venv and install requirements (including recursive deps)
32
python -m venv "$appdir/venv"
33
"$appdir/venv/bin/python" -m pip install --upgrade pip setuptools wheel
34
if [[ -f "$appdir/requirements.txt" ]]; then
35
"$appdir/venv/bin/pip" install -r "$appdir/requirements.txt"
36
fi
37
38
# wrapper that activates venv and runs main.pyw
39
install -Dm755 /dev/null "$pkgdir/usr/bin/$pkgname"
40
cat > "$pkgdir/usr/bin/$pkgname" <<'EOF'
41
#!/bin/sh
42
VENV="/usr/lib/ustoat/venv"
43
export PATH="$VENV/bin:$PATH"
44
exec python /usr/lib/ustoat/main.pyw "$@"
45
EOF
46
47
# desktop file
48
install -d "$pkgdir/usr/share/applications"
49
cat > "$pkgdir/usr/share/applications/$pkgname.desktop" <<'EOF'
50
[Desktop Entry]
51
Type=Application
52
Name=UStoat
53
Exec=/usr/bin/ustoat
54
Icon=ustoat
55
Terminal=false
56
Categories=Utility;
57
EOF
58
59
# install icon and license
60
install -d "$pkgdir/usr/share/icons/hicolor/256x256/apps" "$pkgdir/usr/share/icons/hicolor/48x48/apps"
61
if [[ -f "$srcdir/UStoat/res/icons/app_icon_x384.png" ]]; then
62
if command -v convert >/dev/null 2>&1; then
63
convert "$srcdir/UStoat/res/icons/app_icon_x384.png" -resize 256x256 "$pkgdir/usr/share/icons/hicolor/256x256/apps/$pkgname.png"
64
convert "$srcdir/UStoat/res/icons/app_icon_x384.png" -resize 48x48 "$pkgdir/usr/share/icons/hicolor/48x48/apps/$pkgname.png"
65
else
66
cp "$srcdir/UStoat/res/icons/app_icon_x384.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/$pkgname.png"
67
cp "$srcdir/UStoat/res/icons/app_icon_x384.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/$pkgname.png"
68
fi
69
fi
70
71
install -Dm644 "$srcdir/UStoat/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || true
72
}
73
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |