diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/naima | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/naima')
-rw-r--r-- | dev-python/naima/Manifest | 3 | ||||
-rw-r--r-- | dev-python/naima/metadata.xml | 19 | ||||
-rw-r--r-- | dev-python/naima/naima-0.8-r1.ebuild | 62 |
3 files changed, 84 insertions, 0 deletions
diff --git a/dev-python/naima/Manifest b/dev-python/naima/Manifest new file mode 100644 index 000000000000..fd93f874da45 --- /dev/null +++ b/dev-python/naima/Manifest @@ -0,0 +1,3 @@ +DIST naima-0.8.tar.gz 5485631 BLAKE2B b51139b1fcb31c23edbe28f2760b5d270c0989ac70d096e0f42e90a422d8e297dac06f0fae341be1e7950ae9b25ea6eae19e297eb9c17b70235107bd8dddfa3d SHA512 38ac487ffaf3169f6e351ac1abb22244a90a872661627bd784ff0b37068e6155cc504756440db55b481e249fa8df97530e6074ff382d98e8d142aa5fa607f99d +EBUILD naima-0.8-r1.ebuild 1500 BLAKE2B c21c39a144d02d91ce7657876cc1f37a00b500d8e65b2eee191b4c60f365aeecbe8634fc0d6fe6423aabb362292d7adc3bfc7c5cd984649d185b504afdf9c334 SHA512 2ef95f5484b8bf234fa1642cd3daeb7c7efbf63f0fc6a7ef33005b3e155117ec6e9e39846013d9b65b28c9f2e092f04b755c7809201e5a48d65d11cd9a45f641 +MISC metadata.xml 746 BLAKE2B 72136b2f16d073f86982021ebd46fb5e3c9200b8bef539202c90eac29f8be6f01d745e7b3a9c5199828cae7ff2ebb0503a27882e2cbf672475fa14052f3dd2f6 SHA512 c3ff9eef465f6bd6be732e9b7e6e154798a485395106b54daf8680d8b9368181d98ebaab6c7cc702e171f461e99d8c2b67e6271fe733f81509ff77f77bc5b39b 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 +} |