python-pytest-pyodide
The package installs Python dependencies via pip in a test venv for testing purposes only; the installed packages (pyodide-py, tblib) are pinned versions from PyPI, and the final package consists solely of the built wheel installed via python-installer, posing minimal supply-chain risk.
Triggered rules
pip_install_external
`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums. Severity reduced: python-* packages routinely use pip.
-
PKGBUILD:46
test-env/bin/pip install "tblib==3.0.0"
llm_review
An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is LOW (confidence 95%): The package installs Python dependencies via pip in a test venv for testing purposes only; the installed packages (pyodide-py, tblib) are pinned versions from PyPI, and the final package consists solely of the built wheel installed via python-installer, posing minimal supply-chain risk.
-
PKGBUILD:45
test-env/bin/pip install "pyodide-py==${_pyodide_pkgver}"
PKGBUILD
2 offending line(s) highlighted# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
_name="pytest-pyodide"
pkgname="python-${_name}"
pkgver=0.58.4
_pyodide_pkgver=0.26.1
pkgrel=1
pkgdesc="Pytest plugin for testing applications that use Pyodide."
arch=('any')
url="https://github.com/pyodide/pytest-pyodide"
license=('MPL-2.0')
depends=('python>=3.10' 'python-pexpect' 'python-pytest' 'python-pytest-asyncio' 'python-hypothesis' 'python-selenium' 'selenium-manager' 'python-playwright' 'python-tblib')
makedepends=('python-hatchling' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest-cov' 'python-build' 'python-requests')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name//-/_}-${pkgver}.tar.gz"
"https://github.com/pyodide/pyodide/releases/download/${_pyodide_pkgver}/pyodide-${_pyodide_pkgver}.tar.bz2")
sha256sums=('653f460e514cae6038cee821c592b05a0a2a4a22dab77929603126921f7d70f1'
'1bd2487795c4628272e3295a47f2da749682cd59a3680c5acfcd69baf3bb19b0')
prepare(){
cp -r "${srcdir}"/pyodide "${srcdir}"/${_name//-/_}-${pkgver}/pyodide
cd "${srcdir}"/${_name//-/_}-${pkgver}
sed -i 's/requires = \["hatchling", "hatch-vcs"\]/requires = ["hatchling"]/' pyproject.toml
# Disable pretty pluging in pytest
sed -i 's/\(runpytest([^)]*\)/\1, "-p no:pretty"/' tests/test_options.py
sed -i 's/runpytest(, "-p no:pretty"/runpytest("-p no:pretty", /' tests/test_options.py
}
build() {
cd "${srcdir}"/${_name//-/_}-${pkgver}
python -m build --wheel --no-isolation
}
check() {
local pytest_options=(
-vv
--override-ini="addopts="
-p no:flaky
--deselect tests/test_decorator.py::test_hypothesis # Need pytest 7
--deselect tests/test_doctest.py # Need pytest 7
-k "not test_jspi" # the suspender attribute doesn't exist anymore
)
cd "${srcdir}"/${_name//-/_}-${pkgver}
python -m venv --system-site-packages test-env
test-env/bin/pip install "pyodide-py==${_pyodide_pkgver}"
test-env/bin/pip install "tblib==3.0.0" # Need for test because the version provided by Arch maintainers is not compatible
test-env/bin/python -m installer dist/*.whl
#test-env/bin/python -m playwright install chrome --with-deps # Playwright isn't compatible with Arch Linux
#test-env/bin/python -m playwright install chrome --with-deps # Playwright isn't compatible with Arch Linux
for runtime in node chrome firefox; do
test-env/bin/python -m pytest "${pytest_options[@]}" tests --runtime=${runtime}
done
# test-env/bin/python -m pytest "${pytest_options[@]}" tests --runner=playwright --runtime=chrome # Playwright isn't compatible with Arch Linux
# test-env/bin/python -m pytest "${pytest_options[@]}" tests --runner=playwright --runtime=firefox # Playwright isn't compatible with Arch Linux
}
package() {
cd "${srcdir}"/${_name//-/_}-${pkgver}
python -m installer --destdir="$pkgdir" dist/*.whl
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |