python-stsynphot

LOW
maintainer Universebenzene 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The non-standard host (ssb.stsci.edu) hosts a FITS data file used for testing, not executable code; the source is from a legitimate astronomy institution and the file is installed as test data, posing minimal risk.

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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The non-standard host (ssb.stsci.edu) hosts a FITS data file used for testing, not executable code; the source is from a legitimate astronomy institution and the file is installed as test data, posing minimal risk.

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:25 "https://ssb.stsci.edu/cdbs/calspec/alpha_lyr_stis_011.fits")

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Astro Benzene <universebenzene at sina dot com>
2
3pkgbase=python-stsynphot
4_pyname=${pkgbase#python-}
5pkgname=("python-${_pyname}" "python-${_pyname}-doc")
6pkgver=1.5.1
7pkgrel=1
8pkgdesc="Synthetic photometry using Astropy for HST and JWST"
9arch=('any')
10url="https://stsynphot.readthedocs.io"
11license=('MIT')
12makedepends=('python-setuptools-scm'
13 'python-build'
14 'python-installer'
15 'python-sphinx-astropy'
16 'python-matplotlib'
17 'python-synphot'
18 'graphviz') # wheel required by new setuptools
19checkdepends=('python-pytest-astropy-header'
20# 'python-pytest-xdist'
21 'python-pytest-doctestplus'
22 'python-pytest-remotedata') # astropy <- synphot already in makedepends
23# 'python-beautifulsoup4'
24source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
25 "https://ssb.stsci.edu/cdbs/calspec/alpha_lyr_stis_011.fits")
26# "https://ssb.stsci.edu/trds/tarfiles/synphot1.tar.gz") # test data too large
27md5sums=('48c2dee066bff6084d30a37e6d721e2c'
28 '20d7fa5941ae02f9948b671ee75709d1')
29
30get_pyver() {
31 python -c "import sys; print('$1'.join(map(str, sys.version_info[:2])))"
32}
33
34prepare() {
35 install -Dm644 ${srcdir}/{,grp/redcat/trds/calspec/}alpha_lyr_stis_011.fits
36}
37
38build() {
39 cd ${srcdir}/${_pyname}-${pkgver}
40 python -m build --wheel --no-isolation
41
42 msg "Building Docs"
43 ln -rs ${srcdir}/${_pyname}-${pkgver}/src/${_pyname/-/_}*egg-info \
44 build/lib/${_pyname/-/_}-${pkgver}-py$(get_pyver .).egg-info
45 PYTHONPATH="../build/lib" make -C docs html
46}
47
48check() {
49 cd ${srcdir}/${_pyname}-${pkgver}
50
51 PYSYN_CDBS="${srcdir}/grp/redcat/trds" pytest || warning "Tests failed" # -vv -l -ra --color=yes -o console_output_style=count -p xdist -n 4 ##--remote-data #
52}
53
54package_python-stsynphot() {
55 depends=('python>=3.10'
56 'python-astropy>=6'
57 'python-scipy>=1.9'
58 'python-synphot>=1.1'
59 'python-beautifulsoup4')
60 optdepends=('python-matplotlib: For plotting'
61 'python-stsynphot-doc: Documentation for stsynphot')
62 cd ${srcdir}/${_pyname}-${pkgver}
63
64 install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
65 install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
66 python -m installer --destdir="${pkgdir}" dist/*.whl
67}
68
69package_python-stsynphot-doc() {
70 pkgdesc="Documentation for Python stsynphot"
71 cd ${srcdir}/${_pyname}-${pkgver}/docs/_build
72
73 install -D -m644 ../../LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
74 install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
75 cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
76}
77

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