apio

maintainer Xesxen · 2 votes · scanned 2026-08-03 00:08:14.047287
LOW
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-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

Report a package

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

0 / 4000
Your suggestion