apio

LOW
maintainer Xesxen 2 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The pip install is used internally to install 'flit<4' within a build venv for building the package, which is a normal part of the build process for Python packages and does not involve installing untrusted external code.

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 internally to install 'flit<4' within a build venv for building the package, which is a normal part of the build process for Python packages and does not involve installing untrusted external code.

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:39 ./build-venv/bin/pip install "flit<4"

PKGBUILD

1 offending line(s) highlighted
1pkgname=apio
2_name=apio
3pkgver=1.4.0
4pkgrel=1
5pkgdesc="Experimental micro-ecosystem for open FPGAs"
6arch=('any')
7url="https://pypi.org/project/apio/"
8license=('GPL-3.0-or-later')
9depends=(
10 'python-click'
11 'python-colorama'
12 'python-configobj'
13 'python-debugpy'
14 'python-packaging'
15 'python-pyserial'
16 'python-requests'
17 'python-semantic-version'
18 'python-setuptools'
19 'python-vcdvcd'
20 'python-wheel'
21 'scons'
22)
23makedepends=('python-build' 'python-flit-core' 'python-installer' 'python-wheel')
24checkdepends=('python-pytest')
25source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
26sha256sums=('7587cbef11602f0fc918a0c502b8a64cba570d6ab8e829c13ea82c512f7f00a6')
27
28prepare() {
29 cd "$srcdir/$pkgname-$pkgver"
30
31 # Add include section for Flit
32 sed -i '/\[tool.flit.sdist\]/a include = ["pyproject.toml", "LICENSE", "apio/"]' pyproject.toml
33}
34
35build() {
36 cd "${_name}-$pkgver"
37
38 python -m venv build-venv
39 ./build-venv/bin/pip install "flit<4"
40
41 ./build-venv/bin/python -m flit build
42}
43
44check() {
45 cd "${_name}-$pkgver"
46 echo "Tests are not shipped in the PyPI release, skipping"
47}
48
49package() {
50 cd "${_name}-$pkgver"
51
52 python -m installer --destdir="$pkgdir" dist/*.whl
53}
54

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 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