dev-python/specutils: initial import

Package-Manager: portage-2.2.28
This commit is contained in:
Sébastien Fabbro
2016-03-17 21:06:49 +00:00
parent e9054e3f1e
commit cb509e670b
3 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST specutils-0.1.tar.gz 3494885 SHA256 b7df818eb3e41ea01e00db1ac470e9c2f24adabfb131d57d53b4c792accea1cd SHA512 43e67c56d77bb06a1a96674755d843ba89d6da7b887f5fef8f2c190487c0a802631c9b782ca58b27216d449ee47353e9c0bf5a9cd73c2db4e5fb683f68a9c6c4 WHIRLPOOL 252ecab3688b26078e3b9da570c6ba5e7a137e7b5f9598074487ccec32f5c9ee7c3424afb5426c7a9b5ce6ed9d2a0825db3263882b43918a67bd24dfa05f03d1

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>sci-astronomy@gentoo.org</email>
<name>Gentoo Astronomy Project</name>
</maintainer>
<longdescription lang="en">
specutils is a package to implement utilities and data structures to
analyse astronomical spectra within python. It extends NDData from Astropy
into a class with special handling of 1D spectra.
</longdescription>
<upstream>
<remote-id type="pypi">specutils</remote-id>
<remote-id type="github">astropy/specutils</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,52 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
inherit distutils-r1
DESCRIPTION="Python package for astronomy spectral operations"
HOMEPAGE="https://photutils.readthedocs.org/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
LICENSE="BSD"
SLOT="0"
IUSE="doc test"
DOCS=( README.rst )
RDEPEND="
dev-python/astropy[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/astropy-helpers[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}] )
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
python_prepare_all() {
sed -i -e '/auto_use/s/True/False/' setup.cfg || die
distutils-r1_python_prepare_all
}
python_compile_all() {
if use doc; then
python_setup
VARTEXFONTS="${T}"/fonts \
MPLCONFIGDIR="${BUILD_DIR}" \
PYTHONPATH="${BUILD_DIR}"/lib \
esetup.py build_sphinx
fi
}
python_test() {
esetup.py test
}
python_install_all() {
use doc && local HTML_DOCS=( docs/_build/html/ )
distutils-r1_python_install_all
}