python-pytest-pyodide

maintainer orphaned · 1 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged 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

LOW 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. Severity reduced: python-* packages routinely use pip.

  • PKGBUILD:46 test-env/bin/pip install "tblib==3.0.0"
LOW AI review 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
1# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
2
3_name="pytest-pyodide"
4pkgname="python-${_name}"
5pkgver=0.58.4
6_pyodide_pkgver=0.26.1
7pkgrel=1
8pkgdesc="Pytest plugin for testing applications that use Pyodide."
9arch=('any')
10url="https://github.com/pyodide/pytest-pyodide"
11license=('MPL-2.0')
12depends=('python>=3.10' 'python-pexpect' 'python-pytest' 'python-pytest-asyncio' 'python-hypothesis' 'python-selenium' 'selenium-manager' 'python-playwright' 'python-tblib')
13makedepends=('python-hatchling' 'python-build' 'python-installer' 'python-wheel')
14checkdepends=('python-pytest-cov' 'python-build' 'python-requests')
15source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name//-/_}-${pkgver}.tar.gz"
16 "https://github.com/pyodide/pyodide/releases/download/${_pyodide_pkgver}/pyodide-${_pyodide_pkgver}.tar.bz2")
17sha256sums=('653f460e514cae6038cee821c592b05a0a2a4a22dab77929603126921f7d70f1'
18 '1bd2487795c4628272e3295a47f2da749682cd59a3680c5acfcd69baf3bb19b0')
19
20prepare(){
21 cp -r "${srcdir}"/pyodide "${srcdir}"/${_name//-/_}-${pkgver}/pyodide
22 cd "${srcdir}"/${_name//-/_}-${pkgver}
23 sed -i 's/requires = \["hatchling", "hatch-vcs"\]/requires = ["hatchling"]/' pyproject.toml
24 # Disable pretty pluging in pytest
25 sed -i 's/\(runpytest([^)]*\)/\1, "-p no:pretty"/' tests/test_options.py
26 sed -i 's/runpytest(, "-p no:pretty"/runpytest("-p no:pretty", /' tests/test_options.py
27}
28
29build() {
30 cd "${srcdir}"/${_name//-/_}-${pkgver}
31 python -m build --wheel --no-isolation
32}
33
34check() {
35 local pytest_options=(
36 -vv
37 --override-ini="addopts="
38 -p no:flaky
39 --deselect tests/test_decorator.py::test_hypothesis # Need pytest 7
40 --deselect tests/test_doctest.py # Need pytest 7
41 -k "not test_jspi" # the suspender attribute doesn't exist anymore
42 )
43 cd "${srcdir}"/${_name//-/_}-${pkgver}
44 python -m venv --system-site-packages test-env
45 test-env/bin/pip install "pyodide-py==${_pyodide_pkgver}"
46 test-env/bin/pip install "tblib==3.0.0" # Need for test because the version provided by Arch maintainers is not compatible
47 test-env/bin/python -m installer dist/*.whl
48 #test-env/bin/python -m playwright install chrome --with-deps # Playwright isn't compatible with Arch Linux
49 #test-env/bin/python -m playwright install chrome --with-deps # Playwright isn't compatible with Arch Linux
50 for runtime in node chrome firefox; do
51 test-env/bin/python -m pytest "${pytest_options[@]}" tests --runtime=${runtime}
52 done
53 # test-env/bin/python -m pytest "${pytest_options[@]}" tests --runner=playwright --runtime=chrome # Playwright isn't compatible with Arch Linux
54 # test-env/bin/python -m pytest "${pytest_options[@]}" tests --runner=playwright --runtime=firefox # Playwright isn't compatible with Arch Linux
55}
56
57package() {
58 cd "${srcdir}"/${_name//-/_}-${pkgver}
59 python -m installer --destdir="$pkgdir" dist/*.whl
60}
61

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