Install this version:
emerge -a =dev-python/astropy-healpix-2.0.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/astropy-healpix-2.0.1
Or alternatively:
emerge --autounmask-write -a =dev-python/astropy-healpix-2.0.1
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_VERIFY_REPO=https://github.com/astropy/astropy-healpix
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1 optfeature pypi
DESCRIPTION="BSD-licensed HEALPix for Astropy"
HOMEPAGE="http://astropy-healpix.readthedocs.io"
SRC_URI+=" doc? ( https://lambda.gsfc.nasa.gov/data/map/dr3/skymaps/5yr//wmap_band_imap_r9_5yr_K_v3.fits )"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc intersphinx"
RESTRICT="intersphinx? ( network-sandbox )"
REQUIRED_USE="intersphinx? ( doc )"
DEPEND=">=dev-python/numpy-2.0.0:=[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}
>=dev-python/astropy-6.1[${PYTHON_USEDEP}]
"
BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]
>=dev-python/extension-helpers-1.3[${PYTHON_USEDEP}]
doc? (
${RDEPEND}
>=dev-python/sphinx-astropy-1.11[${PYTHON_USEDEP},confv2]
)
test? ( dev-python/healpy[${PYTHON_USEDEP}] )
"
PATCHES=( "${FILESDIR}"/${PN}-0.5-doc-use-local-fits.patch )
#EPYTEST_PLUGINS=( hypothesis pytest-{astropy-header,doctestplus} )
EPYTEST_PLUGINS=( hypothesis pytest-astropy-header )
distutils_enable_tests pytest
#distutils_enable_sphinx docs dev-python/sphinx-astropy dev-python/astropy
python_prepare_all() {
use doc && { cp "${DISTDIR}"/wmap_band_imap_r9_5yr_K_v3.fits "${S}"/docs || die ; }
distutils-r1_python_prepare_all
}
python_compile_all() {
if use doc; then
VARTEXFONTS="${T}"/fonts MPLCONFIGDIR="${T}" PYTHONPATH="${BUILD_DIR}"/install/$(python_get_sitedir) \
emake "SPHINXOPTS=$(usex intersphinx '' '-D disable_intersphinx=1')" -C docs html
HTML_DOCS=( docs/_build/html/. )
fi
}
python_test() {
epytest "${BUILD_DIR}"
}
pkg_postinst() {
optfeature "testing (not really required, and the tests may fail if healpy is installed)" dev-python/healpy
}
Manage flags for this package:
euse -i <flag> -p dev-python/astropy-healpix |
euse -E <flag> -p dev-python/astropy-healpix |
euse -D <flag> -p dev-python/astropy-healpix
>=dev-python/numpy-2.0.0:=[]
>=dev-python/numpy-2.0.0:=[] >=dev-python/astropy-6.1[]
dev-python/setuptools-scm[] >=dev-python/extension-helpers-1.3[] doc? ( >=dev-python/numpy-2.0.0:=[] >=dev-python/astropy-6.1[] >=dev-python/sphinx-astropy-1.11[,confv2] ) test? ( dev-python/healpy[] )