Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 868 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, nose, nibabel, numpy, scikitlearn 2, scipy, matplotlib }: 3 4buildPythonPackage rec { 5 pname = "nilearn"; 6 version = "0.5.0"; 7 name = pname + "-" + version; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "085cd4f7c19a47ed9d951c853223190b9fb0dbddeaeedf8f86dfa9c53d6492ca"; 12 }; 13 14 # disable some failing tests 15 checkPhase = '' 16 nosetests nilearn/tests \ 17 -e test_cache_mixin_with_expand_user -e test_clean_confounds -e test_detrend \ 18 -e test_clean_detrending -e test_high_variance_confounds 19 ''; 20 21 checkInputs = [ nose ]; 22 23 propagatedBuildInputs = [ 24 matplotlib 25 nibabel 26 numpy 27 scikitlearn 28 scipy 29 ]; 30 31 meta = with stdenv.lib; { 32 homepage = http://nilearn.github.io; 33 description = "A module for statistical learning on neuroimaging data"; 34 license = licenses.bsd3; 35 }; 36}