Skip to content

Commit 11c8804

Browse files
Samuel LeathersMic92
Samuel Leathers
authored andcommittedSep 15, 2017
nilearn: 0.2.5 -> 0.3.1
fixes #29178 (cherry picked from commit f8f62d5)
1 parent 8f37a14 commit 11c8804

File tree

2 files changed

+32
-30
lines changed

2 files changed

+32
-30
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{ stdenv, buildPythonPackage, fetchPypi, nose, nibabel, numpy, scikitlearn
2+
, scipy, matplotlib }:
3+
4+
buildPythonPackage 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+
}

‎pkgs/top-level/python-packages.nix

+1-30
Original file line numberDiff line numberDiff line change
@@ -13204,36 +13204,7 @@ in {
1320413204
};
1320513205
};
1320613206

13207-
nilearn = buildPythonPackage rec {
13208-
version = "0.2.5";
13209-
name = "nilearn-${version}";
13210-
13211-
# package seems to attempt Python 3 compatibility, but throws UnicodeDecodeError when building:
13212-
disabled = isPy3k;
13213-
13214-
src = pkgs.fetchurl {
13215-
url = "mirror://pypi/n/nilearn/${name}.tar.gz";
13216-
sha256 = "1lmkrzr5x2yp129v2fvckrbdzf2kpcivdg9cacl519l3mb0acdv9";
13217-
};
13218-
13219-
checkPhase = "nosetests --exclude with_expand_user nilearn/tests";
13220-
13221-
buildInputs = with self; [ nose ];
13222-
13223-
propagatedBuildInputs = with self; [
13224-
matplotlib
13225-
nibabel
13226-
numpy
13227-
scikitlearn
13228-
scipy
13229-
];
13230-
13231-
meta = {
13232-
homepage = http://nilearn.github.io;
13233-
description = "A module for statistical learning on neuroimaging data";
13234-
license = licenses.bsd3;
13235-
};
13236-
};
13207+
nilearn = callPackage ../development/python-modules/nilearn {};
1323713208

1323813209
nipy = buildPythonPackage rec {
1323913210
version = "0.4.0";

0 commit comments

Comments
 (0)
Please sign in to comment.