Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/nilearn/
Date: Tue, 07 Sep 2021 12:56:30
Message-Id: 1631019383.8bd0ea435ce2be0c59162d5be25fb524eb302df4.andrewammerlaan@gentoo
1 commit: 8bd0ea435ce2be0c59162d5be25fb524eb302df4
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 7 12:55:53 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 12:56:23 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8bd0ea43
7
8 sci-biology/nilearn: add version 0.8.0
9
10 Package-Manager: Portage-3.0.22, Repoman-3.0.3
11 RepoMan-Options: --force
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 sci-biology/nilearn/metadata.xml | 3 --
15 sci-biology/nilearn/nilearn-0.8.0.ebuild | 42 ++++++++++++++++++++++++
16 sci-biology/nilearn/nilearn-9999.ebuild | 56 ++++++++++----------------------
17 3 files changed, 60 insertions(+), 41 deletions(-)
18
19 diff --git a/sci-biology/nilearn/metadata.xml b/sci-biology/nilearn/metadata.xml
20 index 8ccfeac5c..9da61e484 100644
21 --- a/sci-biology/nilearn/metadata.xml
22 +++ b/sci-biology/nilearn/metadata.xml
23 @@ -14,9 +14,6 @@ Nilearn is a Python module for fast and easy statistical learning on NeuroImagin
24 It leverages the scikit-learn Python toolbox for multivariate statistics with applications
25 such as predictive modelling, classification, decoding, or connectivity analysis.
26 </longdescription>
27 - <use>
28 - <flag name="plot">Adds optional dependency needed for plotting function subset.</flag>
29 - </use>
30 <upstream>
31 <remote-id type="github">nilearn/nilearn</remote-id>
32 <remote-id type="pypi">nilearn</remote-id>
33
34 diff --git a/sci-biology/nilearn/nilearn-0.8.0.ebuild b/sci-biology/nilearn/nilearn-0.8.0.ebuild
35 new file mode 100644
36 index 000000000..a70e8d0fc
37 --- /dev/null
38 +++ b/sci-biology/nilearn/nilearn-0.8.0.ebuild
39 @@ -0,0 +1,42 @@
40 +# Copyright 1999-2021 Gentoo Authors
41 +# Distributed under the terms of the GNU General Public License v2
42 +
43 +EAPI=8
44 +
45 +PYTHON_COMPAT=( python3_{8..9} )
46 +
47 +inherit distutils-r1
48 +
49 +DESCRIPTION="Fast and easy statistical learning on NeuroImaging data"
50 +HOMEPAGE="http://nilearn.github.io/"
51 +SRC_URI="https://github.com/nilearn/nilearn/archive/${PV}.tar.gz -> ${P}.tar.gz"
52 +
53 +LICENSE="BSD"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~x86"
56 +
57 +# Tests attempt to download external data.
58 +RESTRICT="test"
59 +
60 +BDEPEND="
61 + test? (
62 + dev-python/matplotlib[${PYTHON_USEDEP}]
63 + )
64 +"
65 +
66 +RDEPEND="
67 + >=dev-python/joblib-0.12[${PYTHON_USEDEP}]
68 + >=dev-python/numpy-1.16[${PYTHON_USEDEP}]
69 + >=sci-libs/scikit-learn-0.21[${PYTHON_USEDEP}]
70 + >=dev-python/scipy-1.2[${PYTHON_USEDEP}]
71 + >=sci-libs/nibabel-2.5[${PYTHON_USEDEP}]
72 + >=dev-python/pandas-0.24.0[${PYTHON_USEDEP}]
73 + >=dev-python/requests-2[${PYTHON_USEDEP}]
74 +"
75 +
76 +distutils_enable_tests pytest
77 +
78 +python_test() {
79 + echo "backend: Agg" > matplotlibrc
80 + MPLCONFIGDIR=. pytest -vv || die
81 +}
82
83 diff --git a/sci-biology/nilearn/nilearn-9999.ebuild b/sci-biology/nilearn/nilearn-9999.ebuild
84 index 7aca41bd5..a9478fc8e 100644
85 --- a/sci-biology/nilearn/nilearn-9999.ebuild
86 +++ b/sci-biology/nilearn/nilearn-9999.ebuild
87 @@ -1,62 +1,42 @@
88 # Copyright 1999-2021 Gentoo Authors
89 # Distributed under the terms of the GNU General Public License v2
90
91 -EAPI=7
92 +EAPI=8
93
94 -PYTHON_COMPAT=( python3_{7..9} )
95 +PYTHON_COMPAT=( python3_{8..9} )
96
97 inherit distutils-r1 git-r3
98
99 DESCRIPTION="Fast and easy statistical learning on NeuroImaging data"
100 HOMEPAGE="http://nilearn.github.io/"
101 -SRC_URI=""
102 EGIT_REPO_URI="https://github.com/nilearn/nilearn"
103
104 LICENSE="BSD"
105 SLOT="0"
106 -KEYWORDS=""
107 -IUSE="+plot test"
108 +KEYWORDS="~amd64 ~x86"
109
110 # Tests attempt to download external data.
111 RESTRICT="test"
112
113 -DEPEND="
114 +BDEPEND="
115 test? (
116 - ${RDEPEND}
117 - dev-python/nose[${PYTHON_USEDEP}]
118 - )
119 - dev-python/setuptools[${PYTHON_USEDEP}]
120 - "
121 + dev-python/matplotlib[${PYTHON_USEDEP}]
122 + )
123 +"
124 +
125 RDEPEND="
126 - dev-python/joblib[${PYTHON_USEDEP}]
127 - dev-python/numpy[${PYTHON_USEDEP}]
128 - sci-libs/scikit-learn[${PYTHON_USEDEP}]
129 - dev-python/scipy[${PYTHON_USEDEP}]
130 - sci-libs/nibabel[${PYTHON_USEDEP}]
131 - plot? ( dev-python/matplotlib[${PYTHON_USEDEP}] )"
132 -
133 -# (Temporarily) commented out, since Gentoo sci-libs/scikit-learn decided it
134 -# is a mess to maintain system joblib usage
135 -#PATCHES=( "${FILESDIR}/0.4.1-bundled_joblib_test.patch" )
136 -
137 -python_prepare_all() {
138 - # upstream is reluctant to *not* depend on bundled scikit-learn:
139 - # https://github.com/nilearn/nilearn/pull/1398
140 - # (Temporarily) commented out, since Gentoo sci-libs/scikit-learn decided it
141 - # is a mess to maintain system joblib usage
142 - #local f
143 - #for f in nilearn/{*/*/,*/,}*.py; do
144 - # sed -r \
145 - # -e '/^from/s/(sklearn|\.|)\.externals\.joblib/joblib/' \
146 - # -e 's/from (sklearn|\.|)\.externals import/import/' \
147 - # -i $f || die
148 - #done
149 -
150 - distutils-r1_python_prepare_all
151 -}
152 + >=dev-python/joblib-0.12[${PYTHON_USEDEP}]
153 + >=dev-python/numpy-1.16[${PYTHON_USEDEP}]
154 + >=sci-libs/scikit-learn-0.21[${PYTHON_USEDEP}]
155 + >=dev-python/scipy-1.2[${PYTHON_USEDEP}]
156 + >=sci-libs/nibabel-2.5[${PYTHON_USEDEP}]
157 + >=dev-python/pandas-0.24.0[${PYTHON_USEDEP}]
158 + >=dev-python/requests-2[${PYTHON_USEDEP}]
159 +"
160 +
161 +distutils_enable_tests pytest
162
163 python_test() {
164 echo "backend: Agg" > matplotlibrc
165 - #MPLCONFIGDIR=. nosetests -v || die
166 MPLCONFIGDIR=. pytest -vv || die
167 }