Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/nilearn/
Date: Thu, 02 Aug 2018 17:42:05
Message-Id: 1533231714.9027d0232f481c090e41e26a544da60a2ea7eec4.chymera@gentoo
1 commit: 9027d0232f481c090e41e26a544da60a2ea7eec4
2 Author: Horea Christian <horea.christ <AT> yandex <DOT> com>
3 AuthorDate: Thu Aug 2 17:41:54 2018 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Thu Aug 2 17:41:54 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=9027d023
7
8 sci-biology/nilearn: version bump
9
10 Package-Manager: Portage-2.3.44, Repoman-2.3.10
11
12 sci-biology/nilearn/nilearn-0.4.2.ebuild | 51 ++++++++++++++++++++++++++++++++
13 1 file changed, 51 insertions(+)
14
15 diff --git a/sci-biology/nilearn/nilearn-0.4.2.ebuild b/sci-biology/nilearn/nilearn-0.4.2.ebuild
16 new file mode 100644
17 index 000000000..87226eec3
18 --- /dev/null
19 +++ b/sci-biology/nilearn/nilearn-0.4.2.ebuild
20 @@ -0,0 +1,51 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
27 +
28 +inherit distutils-r1
29 +
30 +DESCRIPTION="Fast and easy statistical learning on NeuroImaging data"
31 +HOMEPAGE="http://nilearn.github.io/"
32 +SRC_URI="https://github.com/nilearn/nilearn/archive/${PV}.tar.gz -> ${P}.tar.gz"
33 +
34 +LICENSE="BSD"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~x86"
37 +IUSE="+plot test"
38 +
39 +DEPEND="
40 + test? (
41 + ${RDEPEND}
42 + dev-python/nose[${PYTHON_USEDEP}]
43 + )
44 + dev-python/setuptools[${PYTHON_USEDEP}]
45 + "
46 +RDEPEND="
47 + dev-python/joblib[${PYTHON_USEDEP}]
48 + dev-python/numpy[${PYTHON_USEDEP}]
49 + sci-libs/scikits_learn[${PYTHON_USEDEP}]
50 + sci-libs/scipy[${PYTHON_USEDEP}]
51 + sci-libs/nibabel[${PYTHON_USEDEP}]
52 + plot? ( dev-python/matplotlib[${PYTHON_USEDEP}] )"
53 +
54 +# upstream is reluctant to *not* depend on bundled scikits_learn:
55 +# https://github.com/nilearn/nilearn/pull/1398
56 +python_prepare_all() {
57 + local f
58 + for f in nilearn/{*/*/,*/,}*.py; do
59 + sed -r \
60 + -e '/^from/s/(sklearn|\.|)\.externals\.joblib/joblib/' \
61 + -e 's/from (sklearn|\.|)\.externals import/import/' \
62 + -i $f || die
63 + done
64 +
65 + distutils-r1_python_prepare_all
66 +}
67 +
68 +python_test() {
69 + echo "backend: Agg" > matplotlibrc
70 + MPLCONFIGDIR=. nosetests -v || die
71 +}