| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.9.0 | 8 | ~amd64 ~x86 | 0 |
# Copyright 1999-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
DESCRIPTION="Access HMI, AIA and MDI data with Python from the public JSOC DRMS server"
HOMEPAGE="https://docs.sunpy.org/projects/drms"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
PROPERTIES="test_network"
RESTRICT="test
examples? ( network-sandbox )"
REQUIRED_USE="examples? ( doc )"
RDEPEND=">=dev-python/numpy-1.23.5[${PYTHON_USEDEP}]
>=dev-python/pandas-1.5.1[${PYTHON_USEDEP}]
>=dev-python/packaging-23.0[${PYTHON_USEDEP}]
"
BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]
doc? ( media-gfx/graphviz )
test? ( dev-python/astropy[${PYTHON_USEDEP}] )
"
EPYTEST_PLUGINS=( pytest-{doctestplus,remotedata} )
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/sphinx-automodapi \
dev-python/sphinx-changelog \
dev-python/sphinx-copybutton \
dev-python/sphinx-hoverxref \
dev-python/sphinx-gallery \
dev-python/sunpy-sphinx-theme \
dev-python/astropy \
dev-python/matplotlib
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
}
python_test() {
JSOC_EMAIL="jsoc@sunpy.org" epytest --remote-data
}
>=dev-python/numpy-1.23.5[${PYTHON_USEDEP}]
>=dev-python/pandas-1.5.1[${PYTHON_USEDEP}]
>=dev-python/packaging-23.0[${PYTHON_USEDEP}]
dev-python/setuptools-scm[${PYTHON_USEDEP}]
doc? ( media-gfx/graphviz )
test? ( dev-python/astropy[${PYTHON_USEDEP}] )