python-specutils-doc
python-specutils
scanned 2026-09-17 00:27:14.276658
The package downloads FITS data files from non-whitelisted hosts for offline documentation use, but these are non-executable scientific data files, not code, and are used only to build documentation locally.
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 package downloads FITS data files from non-whitelisted hosts for offline documentation use, but these are non-executable scientific data files, not code, and are used only to build documentation locally.
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:29
"https://stsci.box.com/shared/static/28a88k1qfipo4yxc4p4d40v4axtlal8y.fits" -
PKGBUILD:30
"https://data.sdss.org/sas/dr16/sdss/spectro/redux/26/spectra/1323/spec-1323-52797-0012.fits"
PKGBUILD
2 offending line(s) highlighted# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgbase=python-specutils
_pyname=${pkgbase#python-}
pkgname=("python-${_pyname}" "python-${_pyname}-doc")
pkgver=2.4.0
pkgrel=1
pkgdesc="Astropy Affiliated package for 1D spectral operations"
arch=('any')
url="http://specutils.readthedocs.io"
license=('BSD-3-Clause')
makedepends=('python-setuptools-scm'
'python-build'
'python-installer'
'python-sphinx-astropy'
'python-sphinx-copybutton'
# 'python-matplotlib' <- ... new astropy-sphinx-theme
'python-gwcs'
'python-ndcube>=2.0'
'graphviz') # wheel required by new setuptools
checkdepends=('python-pytest-astropy-header'
'python-pytest-asdf-plugin'
'python-pytest-doctestplus'
# 'python-pytest-xdist'
# 'python-pytest-timeout'
'python-pytest-remotedata'
'python-matplotlib') # gwcs, ndcube already in makedepends; header in conftest.py
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
"https://stsci.box.com/shared/static/28a88k1qfipo4yxc4p4d40v4axtlal8y.fits"
"https://data.sdss.org/sas/dr16/sdss/spectro/redux/26/spectra/1323/spec-1323-52797-0012.fits"
'use_local_doc_fits_offline.patch')
#https://dr15.sdss.org/sas/dr15/manga/spectro/redux/v2_4_3/8485/stack/manga-8485-1901-LOGRSS.fits.gz
md5sums=('c7812d5f5d9407476231bbe26eaaa2e3'
'6de4c8ee5659e87a302e3de595074ba5'
'3586c5d0810108a182ba9146908dc180'
'1bda649a83a3d021e75dc09a0da395b3')
prepare() {
cd ${srcdir}/${_pyname}-${pkgver}
cp ${srcdir}/*.fits docs
patch -Np1 -i "${srcdir}/use_local_doc_fits_offline.patch"
# sed -i "/astropy.utils.exceptions/a \ ignore:Subclassing validator classes is not intended:DeprecationWarning" setup.cfg
# sed -i "/astropy.utils.exceptions/a \ ignore:pkg_resources is deprecated as an API:DeprecationWarning" setup.cfg
}
build() {
cd ${srcdir}/${_pyname}-${pkgver}
python -m build --wheel --no-isolation
msg "Building Docs"
PYTHONPATH="../build/lib" make -C docs html
}
check() {
cd ${srcdir}/${_pyname}-${pkgver}
# skip some tests that need lots of online data or cost lots of time --ignore=docs/_build
pytest --ignore=docs/_build \
--ignore=specutils/io/asdf/tags/tests/test_spectra.py \
--ignore=specutils/io/default_loaders/tests/test_apogee.py \
--deselect=specutils/tests/test_loaders.py::test_ctypye_not_compliant[remote_data_path0] \
--deselect=specutils/tests/test_loaders.py::test_hst_cos[remote_data_path0] \
--deselect=specutils/tests/test_loaders.py::test_hst_cos[remote_data_path1] \
--deselect=specutils/tests/test_loaders.py::test_hst_stis[remote_data_path0] \
--deselect=specutils/tests/test_loaders.py::test_hst_stis[remote_data_path1] \
--deselect=specutils/tests/test_loaders.py::test_hst_stis[remote_data_path2] \
--deselect=specutils/tests/test_loaders.py::test_apstar_loader \
--deselect=specutils/tests/test_loaders.py::test_manga_cube \
--deselect=specutils/tests/test_loaders.py::test_manga_cube \
--deselect=specutils/tests/test_loaders.py::test_manga_rss \
--deselect=specutils/tests/test_loaders.py::test_sdss_spplate \
--deselect=specutils/tests/test_loaders.py::test_sdss_spspec \
--deselect=specutils/tests/test_loaders.py::test_sdss_compressed[gzip] \
--deselect=specutils/tests/test_loaders.py::test_sdss_compressed[bzip2] \
--deselect=specutils/tests/test_loaders.py::test_sdss_compressed[xz] \
--deselect=specutils/tests/test_loaders.py::TestAAOmega2dF::test_with_rwss[remote_data_path0] \
--deselect=specutils/tests/test_loaders.py::TestAAOmega2dF::test_without_rwss[remote_data_path0] \
--deselect=specutils/tests/test_loaders.py::TestAAOmega2dF::test_with_rwss_guess[remote_data_path0] \
--deselect=specutils/tests/test_loaders.py::TestAAOmega2dF::test_without_rwss_guess[remote_data_path0] \
--deselect=specutils/tests/test_loaders.py::test_apvisit_loader \
--deselect=specutils/tests/test_loaders.py::test_iraf_multispec_chebyshev \
--deselect=specutils/tests/test_loaders.py::test_iraf_multispec_legendre \
--deselect=specutils/tests/test_loaders.py::test_muscles_loader \
--deselect=specutils/tests/test_loaders.py::test_subaru_pfs_loader \
--deselect=specutils/tests/test_spectral_axis.py::test_create_spectral_axis || warning "Tests failed" # -vv -l -ra --color=yes -o console_output_style=count -p xdist -n 4
}
package_python-specutils() {
depends=('python>=3.11' 'python-scipy>=1.14' 'python-gwcs>=0.25.1' 'python-ndcube>=2.0') # astropy asdf asdf-astropy required by gwcs
optdepends=('python-specutils-doc: Documentation for Specutils')
cd ${srcdir}/${_pyname}-${pkgver}
install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" licenses/*
install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
package_python-specutils-doc() {
pkgdesc="Documentation for Python Specutils module"
cd ${srcdir}/${_pyname}-${pkgver}/docs/_build
install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../licenses/*
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 |