python-openfermionprojectq-hiq

LOW
maintainer orphaned 0 votes base python-openfermionprojectq scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

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

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 PYTHONUSERBASE=$PWD/tmp python3 -m pip install projectq > /dev/null
Low AI review 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
1# Maintainer: Damien Nguyen <damien1@huawei.com>
2
3_name=openfermionprojectq
4pkgbase=python-${_name}
5pkgname=(${pkgbase} python-${_name}-hiq)
6
7pkgver=0.2
8pkgrel=2
9pkgdesc="A plugin allowing OpenFermion to interaface with ProjectQ."
10arch=('any')
11url="https://github.com/quantumlib/OpenFermion-ProjectQ/"
12license=('Apache')
13makedepends=('python-pip'
14 'python-setuptools')
15checkdepends=(# AUR dependencies
16 'python-openfermion-0.11'
17 'python-h5py'
18 'jupyter-nbformat')
19source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
20 "fix-failing-test.patch"
21 "openfermion-0.11.0.patch")
22sha256sums=('bbaf9d2906a2f5893fa4ea49ce16a3dad640063ec365b21c8970bc88216820fd'
23 '56753a2b5237e7e6194bb964dba6a17350828b6321078cc3a217a2bac59d06ef'
24 'b20875b96e7eaed9db2871986043677fa8243c3dad6e10fb4302a03c22dace38')
25
26prepare() {
27 cd "$srcdir/$_name-$pkgver"
28 patch -p1 -i "$srcdir/fix-failing-test.patch"
29 patch -p1 -i "$srcdir/openfermion-0.11.0.patch"
30}
31
32build() {
33 cd "$srcdir/$_name-$pkgver"
34 python setup.py build
35}
36
37check() {
38 cd "$srcdir/$_name-$pkgver"
39
40 # Not adding either python-projectq or python-hiq-projectq to makedepends as
41 # they conflitct one another.
42 # However, make sure that we have at least one of them installed in order to
43 # run the tests
44 if ! python -c 'import projectq' 2> /dev/null ; then
45 echo "Installing ProjectQ to temporary folder"
46 PYTHONUSERBASE=$PWD/tmp python3 -m pip install projectq > /dev/null
47 fi
48
49 PYTHONUSERBASE=$PWD/tmp python -m pytest --color=yes -x
50
51 rm -rf tmp
52}
53
54package_python-openfermionprojectq() {
55 conflicts=('python-openfermionprojectq-hiq')
56 depends+=('python-openfermion-0.11'
57 'python-projectq')
58 cd "$srcdir/$_name-$pkgver"
59 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
60}
61
62package_python-openfermionprojectq-hiq() {
63 pkgdesc="A plugin allowing OpenFermion to interaface with HiQ-ProjectQ."
64 conflicts=('python-openfermionprojectq')
65 groups=(python-hiq)
66 depends+=('python-openfermion-0.11'
67 'python-hiq-projectq')
68 cd "$srcdir/$_name-$pkgver"
69 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
70}
71
72# vim:set ts=2 sw=2 et:
73

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion