From eb9adef7aafc4697dd493585bade15e7b49d4ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Fabbro?= Date: Mon, 21 Mar 2016 18:27:23 +0000 Subject: dev-python/naima: initial import Package-Manager: portage-2.2.28 --- dev-python/naima/Manifest | 1 + dev-python/naima/metadata.xml | 18 ++++++++++++ dev-python/naima/naima-0.7.1.ebuild | 56 +++++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 dev-python/naima/Manifest create mode 100644 dev-python/naima/metadata.xml create mode 100644 dev-python/naima/naima-0.7.1.ebuild (limited to 'dev-python/naima') diff --git a/dev-python/naima/Manifest b/dev-python/naima/Manifest new file mode 100644 index 00000000000..e79926f96dc --- /dev/null +++ b/dev-python/naima/Manifest @@ -0,0 +1 @@ +DIST naima-0.7.1.tar.gz 4876886 SHA256 686b0c9ded61099bc0021a9ccd252004c7f56beca2ef32220e54ef8ca007f89a SHA512 c157be2bb3dfd9ebdedf757a401343f2ca7a338f210686e49119accd75a12fe5172dfa0859ed326d910e1dbb27a09f3f5f40ee8a87d4938a1267024d4f72caa7 WHIRLPOOL ce0dade3afb95a6f004de480f5713d6888d2eea817a0b09b1e9759a56fba8ef52b7c729c0a156f95aa866bc41b6bd004ad451fa5a748158ddfbf5c0bc2130bdd diff --git a/dev-python/naima/metadata.xml b/dev-python/naima/metadata.xml new file mode 100644 index 00000000000..47445691535 --- /dev/null +++ b/dev-python/naima/metadata.xml @@ -0,0 +1,18 @@ + + + + + sci-astronomy@gentoo.org + Gentoo Astronomy Project + + + naima is a Python package for computation of non-thermal radiation + from relativistic particle populations. It includes tools to + perform MCMC fitting of radiative models to X-ray, GeV, and TeV + spectra using emcee, an affine-invariant ensemble sampler for + Markov Chain Monte Carlo. + + + naima + + diff --git a/dev-python/naima/naima-0.7.1.ebuild b/dev-python/naima/naima-0.7.1.ebuild new file mode 100644 index 00000000000..f0dbe3bcdc1 --- /dev/null +++ b/dev-python/naima/naima-0.7.1.ebuild @@ -0,0 +1,56 @@ +# 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 eutils + +DESCRIPTION="Python package for gamma-ray astronomy" +HOMEPAGE="https://gammapy.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/emcee[${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}] ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +DOCS=( README.rst CHANGES.rst ) + +python_prepare_all() { + sed -e '/auto_use/s/True/False/' -i 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 --no-intersphinx + fi +} + +python_test() { + esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} -- cgit v1.2.1