aboutsummaryrefslogtreecommitdiff
blob: 92c788f28d6786b4ac1754dee2483478c1b57363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{10..11} )

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}.gh.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"

# Tests attempt to download external data.
RESTRICT="test"

BDEPEND="
	test? (
		dev-python/matplotlib[${PYTHON_USEDEP}]
	)
"

RDEPEND="
	>=dev-python/joblib-0.12[${PYTHON_USEDEP}]
	>=dev-python/numpy-1.16[${PYTHON_USEDEP}]
	>=dev-python/scikit-learn-0.21[${PYTHON_USEDEP}]
	>=dev-python/scipy-1.2[${PYTHON_USEDEP}]
	>=sci-libs/nibabel-2.5[${PYTHON_USEDEP}]
	>=dev-python/pandas-0.24.0[${PYTHON_USEDEP}]
	>=dev-python/requests-2[${PYTHON_USEDEP}]
"

distutils_enable_tests pytest

python_test() {
	echo "backend: Agg" > matplotlibrc
	MPLCONFIGDIR=. epytest
}