python-astropy-healpix
LOW
maintainer Universebenzene
1 votes
scanned 2026-09-17 00:27:14.276658
Why flagged
The non-standard host hosts a FITS data file used in documentation, not executable code; worst case is localized data tampering, not remote code execution.
Triggered rules
Low
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The non-standard host hosts a FITS data file used in documentation, not executable code; worst case is localized data tampering, not remote code execution.
1 higher static finding superseded - not the current verdict (shown for transparency)
Medium
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:29
"https://lambda.gsfc.nasa.gov/data/map/dr3/skymaps/5yr//wmap_band_imap_r9_5yr_K_v3.fits"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Astro Benzene <universebenzene at sina dot com>
2
3
pkgbase=python-astropy-healpix
4
_pyname=astropy_healpix
5
_pname=${pkgbase#python-}
6
pkgname=("python-${_pname}" "python-${_pname}-doc")
7
pkgver=2.0.1
8
pkgrel=1
9
pkgdesc="BSD-licensed HEALPix for Astropy"
10
arch=('i686' 'x86_64')
11
url="http://astropy-healpix.readthedocs.io"
12
license=('BSD-3-Clause')
13
makedepends=('python-setuptools-scm'
14
'python-extension-helpers>=1.3'
15
'python-build'
16
'python-installer'
17
'python-numpy>=2.0.0'
18
'python-sphinx-astropy'
19
'python-sphinx-copybutton'
20
# 'python-matplotlib'
21
'python-astropy') # wheel required by new setuptools
22
# _pyname/conftest.py
23
checkdepends=('python-pytest-astropy-header'
24
## 'python-pytest-doctestplus'
25
# 'python-pytest-xdist'
26
'python-hypothesis'
27
'python-healpy')
28
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
29
"https://lambda.gsfc.nasa.gov/data/map/dr3/skymaps/5yr//wmap_band_imap_r9_5yr_K_v3.fits"
30
'fix_deprecation_warning.patch'
31
'use_local_doc_fits.patch')
32
md5sums=('b1dbab97622637dd384445c4010f1f2b'
33
'f183da2392e37b9b424e9866d7bca559'
34
'71e532a1fed7a57d4ccf0d3e41035dd8'
35
'6fc85696c0103b265309db0fa3339b33')
36
37
get_pyver() {
38
python -c "import sys; print('$1'.join(map(str, sys.version_info[:2])))"
39
}
40
41
prepare() {
42
cd ${srcdir}/${_pyname}-${pkgver}
43
44
# sed -i -e "/oldest-supported-numpy/d" -e "/\"extension-helper/s/,/\]/" pyproject.toml
45
cp ${srcdir}/wmap_band_imap_r9_5yr_K_v3.fits docs
46
patch -Np1 -i "${srcdir}/use_local_doc_fits.patch"
47
}
48
49
build() {
50
cd ${srcdir}/${_pyname}-${pkgver}
51
python -m build --wheel --no-isolation --skip-dependency-check
52
53
msg "Building Docs"
54
PYTHONPATH="../build/lib.linux-${CARCH}-cpython-$(get_pyver)" make -C docs html
55
}
56
57
check() {
58
cd ${srcdir}/${_pyname}-${pkgver}
59
60
pytest "build/lib.linux-${CARCH}-cpython-$(get_pyver)" || warning "Tests failed" # -vv -l -ra --color=yes -o console_output_style=count -p xdist -n 4 #
61
}
62
63
package_python-astropy-healpix() {
64
depends=('python>=3.10' 'python-numpy>=2' 'python-astropy>=6.1')
65
optdepends=('python-astropy-healpix-doc: Documentation for Astropy-HEALPix')
66
cd ${srcdir}/${_pyname}-${pkgver}
67
68
install -D -m644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
69
install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
70
python -m installer --destdir="${pkgdir}" dist/*.whl
71
}
72
73
package_python-astropy-healpix-doc() {
74
pkgdesc="Documentation for AstroPy-HEALPix"
75
arch=('any')
76
cd ${srcdir}/${_pyname}-${pkgver}/docs/_build
77
78
install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../LICENSE.md
79
install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
80
cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
81
}
82
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 |