1{ stdenv, buildPythonPackage, fetchPypi, nose, nibabel, numpy, scikitlearn
2, scipy, matplotlib }:
3
4buildPythonPackage rec {
5 pname = "nilearn";
6 version = "0.3.1";
7 name = "nilearn-${version}";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "0kkarh5cdcd2czs0bf0s1g51qas84mfxfq0dzd7k5h5l0qr4zy06";
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}