1{ stdenv, buildPythonPackage, fetchPypi, nose, nibabel, numpy, scikitlearn
2, scipy, matplotlib }:
3
4buildPythonPackage rec {
5 pname = "nilearn";
6 version = "0.4.2";
7 name = pname + "-" + version;
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "5049363eb6da2e7c35589477dfc79bf69929ca66de2d7ed2e9dc07acf78636f4";
12 };
13
14 checkPhase = "nosetests --exclude with_expand_user nilearn/tests";
15
16 buildInputs = [ nose ];
17
18 propagatedBuildInputs = [
19 matplotlib
20 nibabel
21 numpy
22 scikitlearn
23 scipy
24 ];
25
26 meta = with stdenv.lib; {
27 homepage = http://nilearn.github.io;
28 description = "A module for statistical learning on neuroimaging data";
29 license = licenses.bsd3;
30 };
31}