summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2016-06-24 12:02:58 -0400
committerBen Darwin <bcdarwin@gmail.com>2016-06-24 15:00:12 -0400
commit8c10d146af8a8669f439ea6ec90d578d9e31942f (patch)
treeb41eb8549b490460cdc40461b11dd5f14cc2d76c /pkgs
parent786a10c9b6b0af4964534004ef9053103282c7da (diff)
downloadnixlib-8c10d146af8a8669f439ea6ec90d578d9e31942f.tar
nixlib-8c10d146af8a8669f439ea6ec90d578d9e31942f.tar.gz
nixlib-8c10d146af8a8669f439ea6ec90d578d9e31942f.tar.bz2
nixlib-8c10d146af8a8669f439ea6ec90d578d9e31942f.tar.lz
nixlib-8c10d146af8a8669f439ea6ec90d578d9e31942f.tar.xz
nixlib-8c10d146af8a8669f439ea6ec90d578d9e31942f.tar.zst
nixlib-8c10d146af8a8669f439ea6ec90d578d9e31942f.zip
pythonPackages.nilearn: init at 2.5.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/python-packages.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 056e9cc54ca0..77675354a05d 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -13602,6 +13602,37 @@ in modules // {
     };
   };
 
+  nilearn = buildPythonPackage rec {
+    version = "0.2.5";
+    name = "nilearn-${version}";
+
+    # package seems to attempt Python 3 compatibility, but throws UnicodeDecodeError when building:
+    disabled = isPy3k;
+
+    src = pkgs.fetchurl {
+      url = "mirror://pypi/n/nilearn/${name}.tar.gz";
+      sha256 = "1lmkrzr5x2yp129v2fvckrbdzf2kpcivdg9cacl519l3mb0acdv9";
+    };
+
+    checkPhase = "nosetests --exclude with_expand_user nilearn/tests";
+
+    buildInputs = with self; [ nose ];
+
+    propagatedBuildInputs = with self; [
+      matplotlib
+      nibabel
+      numpy
+      scikitlearn
+      scipy
+    ];
+
+    meta = {
+      homepage = http://nilearn.github.io;
+      description = "A module for statistical learning on neuroimaging data";
+      license = licenses.bsd3;
+    };
+  };
+
   nipy = buildPythonPackage rec {
     version = "0.4.0";
     name = "nipy-${version}";