aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-biology/nilearn/Manifest1
-rw-r--r--sci-biology/nilearn/nilearn-0.4.2.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/sci-biology/nilearn/Manifest b/sci-biology/nilearn/Manifest
index a10e7cbe8..3ce471316 100644
--- a/sci-biology/nilearn/Manifest
+++ b/sci-biology/nilearn/Manifest
@@ -2,3 +2,4 @@ DIST nilearn-0.2.5.tar.gz 2660422 BLAKE2B b66a0a725019afc5fa3845a74b26efff12793d
DIST nilearn-0.2.6.tar.gz 2674241 BLAKE2B 3b6a38896e948258c9af7b624cbf809e1928b5e0e3aeb43bd67b85a19d0e51a93fd8914485fedc51f5d1cc75f4d32ec6e0a85f94a422a8d7f29437b80cb99373 SHA512 33de004619d018829f4dd2338ae1738a3ee4ecf188569404f1840f29cd1d30c1d24ffdaa44841ebd4656837973a80646906e24fdf01b11b2678a6c63fe0c228d
DIST nilearn-0.3.1.tar.gz 2793233 BLAKE2B 55054fdcb21f5a80283a2ba958510aa8a22a73882a324a22e37ee0c5292745658f6f7dd16042ba2e3eb91e7145650961c71de979716cd17af18842763c66223c SHA512 e222d868c2fff4dbe94a8e81498b4e3c4628a77e7f5d7ca77f9a28486f6e993b9ac20c55cf16f06b93cb3ffb577e9e0a87756b089f83c3387ab515e7991d8654
DIST nilearn-0.4.1.tar.gz 2835584 BLAKE2B c3e8a06b410b087abc8a3e05cbac65397e558de43da0af7d6776fb4817fa190da422b9b085977998cad52bca266799b3bcc285e8ccdef6b9f8cdb6840b934064 SHA512 b5849d49170d5d2a7488d9632162db4922f7edc093182dff2814fd661a6177b8b3f1a459626be0294075fab82d4bfa06485b03bb6b6e290ea230651515982c87
+DIST nilearn-0.4.2.tar.gz 2837042 BLAKE2B 8cf9e37e6b51b423b13b796a0ff4150a1c5d36b4b09150298f82e55e1690cd0e21e2e9393467470e804c66a9c437c7650a665c2a34d74d40bfea31341c990ebd SHA512 13acce019c903885caaadd3c0ce103ef2450b475e3297e08008c66a35777d7615dae264bd78507cc4117f87a3dd0d417cc9e1653f2186ee5c959b54ad9b6e577
diff --git a/sci-biology/nilearn/nilearn-0.4.2.ebuild b/sci-biology/nilearn/nilearn-0.4.2.ebuild
new file mode 100644
index 000000000..87226eec3
--- /dev/null
+++ b/sci-biology/nilearn/nilearn-0.4.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Fast and easy statistical learning on NeuroImaging data"
+HOMEPAGE="http://nilearn.github.io/"
+SRC_URI="https://github.com/nilearn/nilearn/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+plot test"
+
+DEPEND="
+ test? (
+ ${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ )
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ "
+RDEPEND="
+ dev-python/joblib[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ sci-libs/scikits_learn[${PYTHON_USEDEP}]
+ sci-libs/scipy[${PYTHON_USEDEP}]
+ sci-libs/nibabel[${PYTHON_USEDEP}]
+ plot? ( dev-python/matplotlib[${PYTHON_USEDEP}] )"
+
+# upstream is reluctant to *not* depend on bundled scikits_learn:
+# https://github.com/nilearn/nilearn/pull/1398
+python_prepare_all() {
+ local f
+ for f in nilearn/{*/*/,*/,}*.py; do
+ sed -r \
+ -e '/^from/s/(sklearn|\.|)\.externals\.joblib/joblib/' \
+ -e 's/from (sklearn|\.|)\.externals import/import/' \
+ -i $f || die
+ done
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ echo "backend: Agg" > matplotlibrc
+ MPLCONFIGDIR=. nosetests -v || die
+}