summaryrefslogtreecommitdiff
path: root/dev-python/naima
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/naima
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/naima')
-rw-r--r--dev-python/naima/Manifest4
-rw-r--r--dev-python/naima/metadata.xml19
-rw-r--r--dev-python/naima/naima-0.8-r1.ebuild62
3 files changed, 85 insertions, 0 deletions
diff --git a/dev-python/naima/Manifest b/dev-python/naima/Manifest
new file mode 100644
index 000000000000..5679d61f70d6
--- /dev/null
+++ b/dev-python/naima/Manifest
@@ -0,0 +1,4 @@
+DIST naima-0.8.tar.gz 5485631 SHA256 9e2e4e8b4d1a64a213fd52fb681440f7c7b23e994bbde76f3c5b8926b46160af SHA512 38ac487ffaf3169f6e351ac1abb22244a90a872661627bd784ff0b37068e6155cc504756440db55b481e249fa8df97530e6074ff382d98e8d142aa5fa607f99d WHIRLPOOL d03bc8f98fd456ef609f344d584cf0b86d98701089310bf7554665595beda523597f56d9212f853780b660570605ad97801c99a97c60a616163eb854fe25f991
+EBUILD naima-0.8-r1.ebuild 1500 SHA256 7e643a02f2d7fabfd2fa613eb3bab50849cf1bcf046f7d4216f0f5ca345506ac SHA512 2ef95f5484b8bf234fa1642cd3daeb7c7efbf63f0fc6a7ef33005b3e155117ec6e9e39846013d9b65b28c9f2e092f04b755c7809201e5a48d65d11cd9a45f641 WHIRLPOOL a3546047ffdca7bf26c83b992af8b5d0387cc5ed683e69d88e98ff94f6466d73a5285fee8ca038e9775fd3c06a581bb7faae28145b39b4732a20ebfa2594fba6
+MISC ChangeLog 801 SHA256 f7a4151cec57f913de0b46170422adb40e4e20587f10532209a05467108065d9 SHA512 42090af87fb251fac4e473976042c9c52dce13a29639f08919745ad983dc042b026ebb5d63e8fff63f14d192f5005a2c501fa172e1454695dbdebd825cab9d09 WHIRLPOOL 2d0773dd8fb326e8927d8a4fc185f4ec5b5a047911629438200713e657049d58cc90de1ad62f643aa8198712fcc2139773b435f30220b516eaecf54801907377
+MISC metadata.xml 746 SHA256 b27b8e3d9835351a2279ba286f3e9c9446d9eba933303de34c3008b04c2589f7 SHA512 c3ff9eef465f6bd6be732e9b7e6e154798a485395106b54daf8680d8b9368181d98ebaab6c7cc702e171f461e99d8c2b67e6271fe733f81509ff77f77bc5b39b WHIRLPOOL 5a2027e533fc0fc20dae57c18ce0712df9702d66c8d05577cf24b154e1625e4c18409f3819215d004f1bc80655040ca5d12ab772fc59bea94fe8f2d57ba0c780
diff --git a/dev-python/naima/metadata.xml b/dev-python/naima/metadata.xml
new file mode 100644
index 000000000000..a8f7917f0e16
--- /dev/null
+++ b/dev-python/naima/metadata.xml
@@ -0,0 +1,19 @@
+<?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">
+ 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.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">zblz/naima</remote-id>
+ <remote-id type="pypi">naima</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/naima/naima-0.8-r1.ebuild b/dev-python/naima/naima-0.8-r1.ebuild
new file mode 100644
index 000000000000..255a80556315
--- /dev/null
+++ b/dev-python/naima/naima-0.8-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1 eutils xdg-utils
+
+DESCRIPTION="Python package for gamma-ray astronomy"
+HOMEPAGE="http://naima.readthedocs.io/"
+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/corner[${PYTHON_USEDEP}]
+ dev-python/emcee[${PYTHON_USEDEP}]
+ dev-python/h5py[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ sci-libs/scipy[${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
+ xdg_environment_reset
+ # issues during install time (bug #604012)
+ addpredict /proc/mtrr
+ addpredict /sys/devices/system/cpu/
+ 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
+}