| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 2.4.0 | 8 | ~amd64 ~x86 | 0 |
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1 pypi
DATA_COM="15f5a7e"
DATA_URI="https://github.com/sunpy/data/raw/${DATA_COM}/sunpy/v1"
DESCRIPTION="For multi-dimensional contiguious and non-contiguious coordinate aware arrays"
HOMEPAGE="https://docs.sunpy.org/projects/ndcube"
SRC_URI+=" doc? (
http://www.astropy.org/astropy-data/tutorials/FITS-images/HorseHead.fits
${DATA_URI}/AIA20110607_063305_0094_lowres.fits -> ${PN}-${DATA_COM}-d-AIA20110607_063305_0094_lowres.fits
${DATA_URI}/AIA20110607_063301_0131_lowres.fits -> ${PN}-${DATA_COM}-d-AIA20110607_063301_0131_lowres.fits
${DATA_URI}/AIA20110607_063302_0171_lowres.fits -> ${PN}-${DATA_COM}-d-AIA20110607_063302_0171_lowres.fits
${DATA_URI}/AIA20110607_063307_0193_lowres.fits -> ${PN}-${DATA_COM}-d-AIA20110607_063307_0193_lowres.fits
${DATA_URI}/AIA20110607_063302_0211_lowres.fits -> ${PN}-${DATA_COM}-d-AIA20110607_063302_0211_lowres.fits
${DATA_URI}/AIA20110607_063334_0304_lowres.fits -> ${PN}-${DATA_COM}-d-AIA20110607_063334_0304_lowres.fits
${DATA_URI}/AIA20110607_063303_0335_lowres.fits -> ${PN}-${DATA_COM}-d-AIA20110607_063303_0335_lowres.fits
${DATA_URI}/AIA20110607_063305_1600_lowres.fits -> ${PN}-${DATA_COM}-d-AIA20110607_063305_1600_lowres.fits
)
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples plotting reproject"
RDEPEND=">dev-python/numpy-1.26.0[${PYTHON_USEDEP}]
>=dev-python/astropy-6.1.0[${PYTHON_USEDEP}]
>=dev-python/gwcs-0.21.0[${PYTHON_USEDEP}]
>=dev-python/scipy-1.12.0[${PYTHON_USEDEP}]
plotting? (
>=dev-python/matplotlib-3.9.0[${PYTHON_USEDEP}]
>=dev-python/mpl-animators-1.2[${PYTHON_USEDEP}]
)
reproject? ( >=dev-python/reproject-0.14[${PYTHON_USEDEP}] )
"
BDEPEND=">=dev-python/setuptools-scm-8.0.0[${PYTHON_USEDEP}]
doc? ( media-gfx/graphviz )
test? (
dev-python/dask[${PYTHON_USEDEP}]
dev-python/mpl-animators[${PYTHON_USEDEP}]
dev-python/reproject[${PYTHON_USEDEP}]
dev-python/sunpy[${PYTHON_USEDEP}]
)
"
PDEPEND="test? ( dev-python/specutils[${PYTHON_USEDEP}] )"
EPYTEST_PLUGINS=( pytest-{asdf-plugin,doctestplus,mpl,remotedata} )
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/sphinx-automodapi \
">=dev-python/sphinx-changelog-1.5.0" \
dev-python/sphinx-gallery \
dev-python/sphinxext-opengraph \
dev-python/sunpy-sphinx-theme \
">=dev-python/mpl-animators-1.2" \
dev-python/reproject \
">=dev-python/sunpy-6.1.0"
python_prepare_all() {
use doc && { eapply "${FILESDIR}"/${PN}-2.3.0-doc-use-local-fits.patch ; \
for fdat in "${DISTDIR}"/*-d-*; do { cp ${fdat} "${S}"/examples/${fdat##*-d-} || die ; } ; done ; \
cp "${DISTDIR}"/HorseHead.fits examples || die ; }
distutils-r1_python_prepare_all
}
python_install_all() {
if use examples; then
docompress -x "/usr/share/doc/${PF}/examples"
docinto examples
dodoc -r examples/.
fi
distutils-r1_python_install_all
}
>dev-python/numpy-1.26.0[${PYTHON_USEDEP}]
>=dev-python/astropy-6.1.0[${PYTHON_USEDEP}]
>=dev-python/gwcs-0.21.0[${PYTHON_USEDEP}]
>=dev-python/scipy-1.12.0[${PYTHON_USEDEP}]
plotting? (
>=dev-python/matplotlib-3.9.0[${PYTHON_USEDEP}]
>=dev-python/mpl-animators-1.2[${PYTHON_USEDEP}]
)
reproject? ( >=dev-python/reproject-0.14[${PYTHON_USEDEP}] )
>=dev-python/setuptools-scm-8.0.0[${PYTHON_USEDEP}]
doc? ( media-gfx/graphviz )
test? (
dev-python/dask[${PYTHON_USEDEP}]
dev-python/mpl-animators[${PYTHON_USEDEP}]
dev-python/reproject[${PYTHON_USEDEP}]
dev-python/sunpy[${PYTHON_USEDEP}]
)