python-stsynphot-doc
python-stsynphot
scanned 2026-11-01 00:21:48.120785
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-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 |