python-stsynphot-doc
python-stsynphot
scanned 2026-09-17 00:27:14.276658
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
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)
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# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgbase=python-stsynphot
_pyname=${pkgbase#python-}
pkgname=("python-${_pyname}" "python-${_pyname}-doc")
pkgver=1.5.1
pkgrel=1
pkgdesc="Synthetic photometry using Astropy for HST and JWST"
arch=('any')
url="https://stsynphot.readthedocs.io"
license=('MIT')
makedepends=('python-setuptools-scm'
'python-build'
'python-installer'
'python-sphinx-astropy'
'python-matplotlib'
'python-synphot'
'graphviz') # wheel required by new setuptools
checkdepends=('python-pytest-astropy-header'
# 'python-pytest-xdist'
'python-pytest-doctestplus'
'python-pytest-remotedata') # astropy <- synphot already in makedepends
# 'python-beautifulsoup4'
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
"https://ssb.stsci.edu/cdbs/calspec/alpha_lyr_stis_011.fits")
# "https://ssb.stsci.edu/trds/tarfiles/synphot1.tar.gz") # test data too large
md5sums=('48c2dee066bff6084d30a37e6d721e2c'
'20d7fa5941ae02f9948b671ee75709d1')
get_pyver() {
python -c "import sys; print('$1'.join(map(str, sys.version_info[:2])))"
}
prepare() {
install -Dm644 ${srcdir}/{,grp/redcat/trds/calspec/}alpha_lyr_stis_011.fits
}
build() {
cd ${srcdir}/${_pyname}-${pkgver}
python -m build --wheel --no-isolation
msg "Building Docs"
ln -rs ${srcdir}/${_pyname}-${pkgver}/src/${_pyname/-/_}*egg-info \
build/lib/${_pyname/-/_}-${pkgver}-py$(get_pyver .).egg-info
PYTHONPATH="../build/lib" make -C docs html
}
check() {
cd ${srcdir}/${_pyname}-${pkgver}
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 #
}
package_python-stsynphot() {
depends=('python>=3.10'
'python-astropy>=6'
'python-scipy>=1.9'
'python-synphot>=1.1'
'python-beautifulsoup4')
optdepends=('python-matplotlib: For plotting'
'python-stsynphot-doc: Documentation for stsynphot')
cd ${srcdir}/${_pyname}-${pkgver}
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
package_python-stsynphot-doc() {
pkgdesc="Documentation for Python stsynphot"
cd ${srcdir}/${_pyname}-${pkgver}/docs/_build
install -D -m644 ../../LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
}
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 |