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"
5pkgname="$_pkgname"
6pkgver=3.10.0
7pkgrel=1
8pkgdesc="Automate infrastructure super fast at massive scale"
9url="https://github.com/pyinfra-dev/pyinfra"
10license=('MIT')
11arch=('any')
12
13depends=(
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)
26makedepends=(
27 'python-build'
28 'python-hatch'
29 'python-installer'
30 'python-wheel'
31)
32
33_pkgsrc="$_pkgname-$pkgver"
34_pkgext="tar.gz"
35source=("$_pkgsrc.$_pkgext"::"$url/archive/v$pkgver.$_pkgext")
36sha256sums=('5d55f9a7a0974d8324641d23a80ddda4b66b0feb2fc80c6936149d5cb672b4d9')
37
38prepare() (
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
53build() {
54 cd "$_pkgsrc"
55 python -m build --wheel --no-isolation --skip-dependency-check
56}
57
58package() {
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 venv

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion