python-stsynphot-doc

maintainer Universebenzene · 0 votes · base python-stsynphot · scanned 2026-08-03 00:08:14.047287
LOW
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-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

Report a package

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

0 / 4000
Your suggestion