2017-09-15 21:48:53 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, nose, nibabel, numpy, scikitlearn
|
|
|
|
, scipy, matplotlib }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nilearn";
|
2018-06-21 06:37:17 +01:00
|
|
|
version = "0.4.2";
|
2017-11-09 11:26:09 +00:00
|
|
|
name = pname + "-" + version;
|
2017-09-15 21:48:53 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-21 06:37:17 +01:00
|
|
|
sha256 = "5049363eb6da2e7c35589477dfc79bf69929ca66de2d7ed2e9dc07acf78636f4";
|
2017-09-15 21:48:53 +01:00
|
|
|
};
|
|
|
|
|
2018-09-13 18:40:29 +01:00
|
|
|
# disable some failing tests
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests nilearn/tests \
|
2018-09-19 22:50:22 +01: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 18:40:29 +01:00
|
|
|
'';
|
2017-09-15 21:48:53 +01:00
|
|
|
|
2018-09-13 18:40:29 +01:00
|
|
|
checkInputs = [ nose ];
|
2017-09-15 21:48:53 +01: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;
|
|
|
|
};
|
|
|
|
}
|