2020-03-26 15:36:02 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, nose
|
2020-01-27 18:52:02 +00:00
|
|
|
, nibabel, numpy, pandas, scikitlearn, scipy, matplotlib, joblib }:
|
2017-09-15 20:48:53 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nilearn";
|
2019-12-19 19:31:16 +00:00
|
|
|
version = "0.6.0";
|
2017-09-15 20:48:53 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:16 +00:00
|
|
|
sha256 = "07eb764f2b7b39b487f806a067e394d8ebffff21f57cd1ecdb5c4030b7210210";
|
2017-09-15 20:48:53 +00:00
|
|
|
};
|
|
|
|
|
2020-01-27 18:52:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "required_packages.append('sklearn')" ""
|
|
|
|
'';
|
|
|
|
# https://github.com/nilearn/nilearn/issues/2288
|
|
|
|
|
2018-09-13 17:40:29 +00:00
|
|
|
# disable some failing tests
|
|
|
|
checkPhase = ''
|
2020-01-27 18:52:02 +00:00
|
|
|
pytest nilearn/tests -k 'not test_cache_mixin_with_expand_user' # accesses ~/
|
2018-09-13 17:40:29 +00:00
|
|
|
'';
|
2017-09-15 20:48:53 +00:00
|
|
|
|
2020-03-26 15:36:02 +00:00
|
|
|
checkInputs = [ pytest nose ];
|
2017-09-15 20:48:53 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-01-27 18:52:02 +00:00
|
|
|
joblib
|
2017-09-15 20:48:53 +00:00
|
|
|
matplotlib
|
|
|
|
nibabel
|
|
|
|
numpy
|
2020-01-27 18:52:02 +00:00
|
|
|
pandas
|
2017-09-15 20:48:53 +00:00
|
|
|
scikitlearn
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-07 18:12:27 +00:00
|
|
|
homepage = "http://nilearn.github.io";
|
2017-09-15 20:48:53 +00:00
|
|
|
description = "A module for statistical learning on neuroimaging data";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|