Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, lxml, matplotlib 2, nibabel, numpy, pandas, scikit-learn, scipy, joblib, requests }: 3 4buildPythonPackage rec { 5 pname = "nilearn"; 6 version = "0.10.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 hash = "sha256-zH8QaOA4B2Un6tG9NjQ2+I9ejSHou1ezI7MLkm/HVTo="; 11 }; 12 13 nativeCheckInputs = [ pytestCheckHook ]; 14 disabledTests = [ "test_clean_confounds" ]; # https://github.com/nilearn/nilearn/issues/2608 15 # do subset of tests which don't fetch resources 16 pytestFlagsArray = [ "nilearn/connectome/tests" ]; 17 18 propagatedBuildInputs = [ 19 joblib 20 lxml 21 matplotlib 22 nibabel 23 numpy 24 pandas 25 requests 26 scikit-learn 27 scipy 28 ]; 29 30 meta = with lib; { 31 homepage = "https://nilearn.github.io"; 32 description = "A module for statistical learning on neuroimaging data"; 33 license = licenses.bsd3; 34 }; 35}