2017-09-15 22:48:53 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, nose, nibabel, numpy, scikitlearn
|
|
|
|
, scipy, matplotlib }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nilearn";
|
2019-04-24 18:42:49 +02:00
|
|
|
version = "0.5.2";
|
2017-11-09 12:26:09 +01:00
|
|
|
name = pname + "-" + version;
|
2017-09-15 22:48:53 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-24 18:42:49 +02:00
|
|
|
sha256 = "18b763d641e6903bdf8512e0ec5cdc14133fb4679e9a15648415e9be62c81b56";
|
2017-09-15 22:48:53 +02:00
|
|
|
};
|
|
|
|
|
2018-09-13 19:40:29 +02:00
|
|
|
# disable some failing tests
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests nilearn/tests \
|
2018-09-19 23:50:22 +02:00
|
|
|
-e test_cache_mixin_with_expand_user -e test_clean_confounds -e test_detrend \
|
|
|
|
-e test_clean_detrending -e test_high_variance_confounds
|
2018-09-13 19:40:29 +02:00
|
|
|
'';
|
2017-09-15 22:48:53 +02:00
|
|
|
|
2018-09-13 19:40:29 +02:00
|
|
|
checkInputs = [ nose ];
|
2017-09-15 22:48:53 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
nibabel
|
|
|
|
numpy
|
|
|
|
scikitlearn
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://nilearn.github.io;
|
|
|
|
description = "A module for statistical learning on neuroimaging data";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|