python-openfermionprojectq
The pip install in check() is used to temporarily install a dependency for testing from PyPI, which is a standard practice; it does not execute untrusted code or install malicious packages.
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
PYTHONUSERBASE=$PWD/tmp python3 -m pip install projectq > /dev/null
llm_review
An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is LOW (confidence 95%): The pip install in check() is used to temporarily install a dependency for testing from PyPI, which is a standard practice; it does not execute untrusted code or install malicious packages.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Damien Nguyen <damien1@huawei.com>
_name=openfermionprojectq
pkgbase=python-${_name}
pkgname=(${pkgbase} python-${_name}-hiq)
pkgver=0.2
pkgrel=2
pkgdesc="A plugin allowing OpenFermion to interaface with ProjectQ."
arch=('any')
url="https://github.com/quantumlib/OpenFermion-ProjectQ/"
license=('Apache')
makedepends=('python-pip'
'python-setuptools')
checkdepends=(# AUR dependencies
'python-openfermion-0.11'
'python-h5py'
'jupyter-nbformat')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
"fix-failing-test.patch"
"openfermion-0.11.0.patch")
sha256sums=('bbaf9d2906a2f5893fa4ea49ce16a3dad640063ec365b21c8970bc88216820fd'
'56753a2b5237e7e6194bb964dba6a17350828b6321078cc3a217a2bac59d06ef'
'b20875b96e7eaed9db2871986043677fa8243c3dad6e10fb4302a03c22dace38')
prepare() {
cd "$srcdir/$_name-$pkgver"
patch -p1 -i "$srcdir/fix-failing-test.patch"
patch -p1 -i "$srcdir/openfermion-0.11.0.patch"
}
build() {
cd "$srcdir/$_name-$pkgver"
python setup.py build
}
check() {
cd "$srcdir/$_name-$pkgver"
# Not adding either python-projectq or python-hiq-projectq to makedepends as
# they conflitct one another.
# However, make sure that we have at least one of them installed in order to
# run the tests
if ! python -c 'import projectq' 2> /dev/null ; then
echo "Installing ProjectQ to temporary folder"
PYTHONUSERBASE=$PWD/tmp python3 -m pip install projectq > /dev/null
fi
PYTHONUSERBASE=$PWD/tmp python -m pytest --color=yes -x
rm -rf tmp
}
package_python-openfermionprojectq() {
conflicts=('python-openfermionprojectq-hiq')
depends+=('python-openfermion-0.11'
'python-projectq')
cd "$srcdir/$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
package_python-openfermionprojectq-hiq() {
pkgdesc="A plugin allowing OpenFermion to interaface with HiQ-ProjectQ."
conflicts=('python-openfermionprojectq')
groups=(python-hiq)
depends+=('python-openfermion-0.11'
'python-hiq-projectq')
cd "$srcdir/$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
# vim:set ts=2 sw=2 et:
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 |