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