# Copyright 2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYPI_NO_NORMALIZE=1 PYPI_PN="APLpy" PYTHON_COMPAT=( python{2_7,3_{10..11}} ) inherit distutils-r1 pypi virtualx xdg-utils optfeature DESCRIPTION="Astronomical Plotting Library in Python" HOMEPAGE="https://aplpy.github.com/" LICENSE="MIT" SLOT="0" #KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="doc test" RDEPEND=">=dev-python/astropy-0.2.0[${PYTHON_USEDEP}] >=dev-python/numpy-1.4.1[${PYTHON_USEDEP}] >=dev-python/matplotlib-1.0.0[${PYTHON_USEDEP}] " BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] dev-python/astropy-helpers[${PYTHON_USEDEP}] doc? ( dev-python/sphinx-astropy[${PYTHON_USEDEP}] matplotlibrc virtx "${EPYTHON}" -c "import aplpy, sys;r = aplpy.test();sys.exit(r)" } python_install_all() { use doc && local HTML_DOCS=( docs/_build/html/. ) distutils-r1_python_install_all } pkg_postinst() { optfeature "Interact with Montage" dev-python/montage-wrapper optfeature "Read DS9 regions files" dev-python/pyregion optfeature "Extend image i/o formats" dev-python/pillow optfeature "Astronomy Visualization Metadata tagging" dev-python/pyavm }