pyinfra
maintainer xiota
· 6 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The pip install in prepare() is for a build tool (toml-cli) used to modify pyproject.toml, not for installing untrusted external code; the source is the official GitHub repo with a matching checksum, and the build is standard for Python packages.
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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The pip install in prepare() is for a build tool (toml-cli) used to modify pyproject.toml, not for installing untrusted external code; the source is the official GitHub repo with a matching checksum, and the build is standard for Python packages.
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:41
pip install toml-cli
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: aur.chaotic.cx
2
# Contributor: Stefan Tatschner <stefan@rumpelsepp.org>
3
4
_pkgname="pyinfra"
5
pkgname="$_pkgname"
6
pkgver=3.10.0
7
pkgrel=1
8
pkgdesc="Automate infrastructure super fast at massive scale"
9
url="https://github.com/pyinfra-dev/pyinfra"
10
license=('MIT')
11
arch=('any')
12
13
depends=(
14
'python'
15
'python-click'
16
'python-dateutil'
17
'python-distro'
18
'python-gevent'
19
'python-jinja'
20
'python-packaging'
21
'python-paramiko'
22
'python-pydantic'
23
'python-typeguard'
24
'python-typing_extensions'
25
)
26
makedepends=(
27
'python-build'
28
'python-hatch'
29
'python-installer'
30
'python-wheel'
31
)
32
33
_pkgsrc="$_pkgname-$pkgver"
34
_pkgext="tar.gz"
35
source=("$_pkgsrc.$_pkgext"::"$url/archive/v$pkgver.$_pkgext")
36
sha256sums=('5d55f9a7a0974d8324641d23a80ddda4b66b0feb2fc80c6936149d5cb672b4d9')
37
38
prepare() (
39
python -m venv venv
40
source ./venv/bin/activate
41
pip install toml-cli
42
43
cd "$_pkgsrc"
44
rm -rf tests
45
46
# uv-dynamic-versioning doesn't work with tarball
47
toml set --toml-path pyproject.toml build-system.requires '["hatchling"]' --to-array
48
toml unset --toml-path pyproject.toml project.dynamic
49
toml unset --toml-path pyproject.toml tool.hatch.version
50
toml set --toml-path pyproject.toml project.version "$pkgver"
51
)
52
53
build() {
54
cd "$_pkgsrc"
55
python -m build --wheel --no-isolation --skip-dependency-check
56
}
57
58
package() {
59
cd "$_pkgsrc"
60
python -m installer --destdir="$pkgdir" dist/*.whl
61
install -Dm644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/"
62
}
63
Changes since previous scan
--- PKGBUILD @ 2026-07-27 00:24+++ PKGBUILD @ 2026-08-03 00:08@@ -3,7 +3,7 @@ _pkgname="pyinfra" pkgname="$_pkgname"-pkgver=3.9.2+pkgver=3.10.0 pkgrel=1 pkgdesc="Automate infrastructure super fast at massive scale" url="https://github.com/pyinfra-dev/pyinfra"@@ -33,7 +33,7 @@ _pkgsrc="$_pkgname-$pkgver" _pkgext="tar.gz" source=("$_pkgsrc.$_pkgext"::"$url/archive/v$pkgver.$_pkgext")-sha256sums=('705576e62657b2ee5277e52f917aff152b8fc15c186543b23b39d1dd6e0482de')+sha256sums=('5d55f9a7a0974d8324641d23a80ddda4b66b0feb2fc80c6936149d5cb672b4d9') prepare() ( python -m venv venvScan 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 23:36:42 | MEDIUM | 1 |
| 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 |