python-phonopy
maintainer yuhldr
· 3 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The pip install in build() is used to install known build dependencies (numpy, scikit-build-core, etc.) into an isolated venv for building the package; it does not install arbitrary or untrusted external code beyond standard build tools.
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:41
_buildenv/bin/pip install --upgrade pip
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 build() is used to install known build dependencies (numpy, scikit-build-core, etc.) into an isolated venv for building the package; it does not install arbitrary or untrusted external code beyond standard build tools.
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: yuhldr <yuhldr@qq.com>
2
3
pkgname=('python-phonopy')
4
pkgver=4.3.1
5
pkgrel=2
6
pkgdesc="Phonopy is an open source package for phonon calculations at harmonic and quasi-harmonic levels"
7
arch=('any')
8
url="https://github.com/phonopy/phonopy"
9
license=('BSD')
10
depends=(
11
"python-numpy"
12
"python-yaml"
13
"python-matplotlib"
14
"spglib"
15
"python-h5py"
16
"python-symfc"
17
)
18
optdepends=(
19
"python-seekpath"
20
)
21
makedepends=(
22
python-pip
23
cmake
24
gcc
25
ninja
26
)
27
28
source=("git+https://github.com/phonopy/phonopy.git#tag=v${pkgver}")
29
sha256sums=('SKIP')
30
31
prepare() {
32
cd "$srcdir"/phonopy
33
sed -i 's/cmake\.verbose/build.verbose/g' pyproject.toml
34
}
35
36
build() {
37
cd "$srcdir"/phonopy
38
rm -rf dist
39
40
python -m venv _buildenv
41
_buildenv/bin/pip install --upgrade pip
42
_buildenv/bin/pip install \
43
numpy \
44
scikit-build-core \
45
"nanobind<2.10.0" \
46
setuptools-scm \
47
build
48
49
_buildenv/bin/python -m build --wheel --no-isolation
50
}
51
52
53
package() {
54
cd "$srcdir"/phonopy
55
PIP_CONFIG_FILE=/dev/null pip install \
56
--isolated --root="$pkgdir" \
57
--ignore-installed --no-deps dist/*.whl
58
}
59
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |