aboutsummaryrefslogtreecommitdiff
blob: a9478fc8e0492a6c3d55bdd4a84e2d19a17c1f91 (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-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{8..9} )

inherit distutils-r1 git-r3

DESCRIPTION="Fast and easy statistical learning on NeuroImaging data"
HOMEPAGE="http://nilearn.github.io/"
EGIT_REPO_URI="https://github.com/nilearn/nilearn"

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}]
	>=sci-libs/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=. pytest -vv || die
}