diff options
author | Sébastien Fabbro <bicatali@gentoo.org> | 2016-03-17 21:06:49 +0000 |
---|---|---|
committer | Sébastien Fabbro <bicatali@gentoo.org> | 2016-03-18 20:10:39 +0000 |
commit | cb509e670bda8bf0506fbc86abe7a38155e274b0 (patch) | |
tree | 512cd9f2548fea3b383cb14dd062139c3f4dc257 /dev-python/specutils | |
parent | e9054e3f1ec805b8984adbc65c68cd4e5738b6b4 (diff) | |
download | gentoo-cb509e670bda8bf0506fbc86abe7a38155e274b0.tar.gz gentoo-cb509e670bda8bf0506fbc86abe7a38155e274b0.tar.xz |
dev-python/specutils: initial import
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-python/specutils')
-rw-r--r-- | dev-python/specutils/Manifest | 1 | ||||
-rw-r--r-- | dev-python/specutils/metadata.xml | 17 | ||||
-rw-r--r-- | dev-python/specutils/specutils-0.1.ebuild | 52 |
3 files changed, 70 insertions, 0 deletions
diff --git a/dev-python/specutils/Manifest b/dev-python/specutils/Manifest new file mode 100644 index 00000000000..74582b55b83 --- /dev/null +++ b/dev-python/specutils/Manifest @@ -0,0 +1 @@ +DIST specutils-0.1.tar.gz 3494885 SHA256 b7df818eb3e41ea01e00db1ac470e9c2f24adabfb131d57d53b4c792accea1cd SHA512 43e67c56d77bb06a1a96674755d843ba89d6da7b887f5fef8f2c190487c0a802631c9b782ca58b27216d449ee47353e9c0bf5a9cd73c2db4e5fb683f68a9c6c4 WHIRLPOOL 252ecab3688b26078e3b9da570c6ba5e7a137e7b5f9598074487ccec32f5c9ee7c3424afb5426c7a9b5ce6ed9d2a0825db3263882b43918a67bd24dfa05f03d1 diff --git a/dev-python/specutils/metadata.xml b/dev-python/specutils/metadata.xml new file mode 100644 index 00000000000..45d4e24160e --- /dev/null +++ b/dev-python/specutils/metadata.xml @@ -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> diff --git a/dev-python/specutils/specutils-0.1.ebuild b/dev-python/specutils/specutils-0.1.ebuild new file mode 100644 index 00000000000..232185c542a --- /dev/null +++ b/dev-python/specutils/specutils-0.1.ebuild @@ -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 +} |