apio

LOW
maintainer Xesxen 2 votes scanned 2026-11-01 00:21:48.120785
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-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
2026-10-25 00:20:48 Low 2
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 00:13:10 Low 2
2026-10-21 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 Low 2
2026-10-18 00:06:55 Low 2
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 Low 2
2026-10-13 00:23:45 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