python-phonopy
LOW
maintainer yuhldr
3 votes
scanned 2026-11-01 00:21:48.120785
Why flagged
The pip install occurs in a build-time virtual environment with pinned dependencies and no external untrusted sources; it installs only project-defined build tools for packaging.
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-2507) reviewed this and agrees it is LOW (confidence 95%): The pip install occurs in a build-time virtual environment with pinned dependencies and no external untrusted sources; it installs only project-defined build tools for packaging.
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: yuhldr <yuhldr@qq.com>
2
3
pkgname=('python-phonopy')
4
pkgver=4.8.2
5
pkgrel=1
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-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |