Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 56 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 pytestCheckHook, 7 hatch-vcs, 8 lxml, 9 matplotlib, 10 nibabel, 11 numpy, 12 pandas, 13 scikit-learn, 14 scipy, 15 joblib, 16 requests, 17}: 18 19buildPythonPackage rec { 20 pname = "nilearn"; 21 version = "0.10.4"; 22 pyproject = true; 23 24 disabled = pythonOlder "3.8"; 25 26 src = fetchPypi { 27 inherit pname version; 28 hash = "sha256-lFC9Vqd22ZezJPRd0Yv5bom9jYAWCXT8x1kzP7rqNcI="; 29 }; 30 31 nativeBuildInputs = [ hatch-vcs ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 disabledTests = [ "test_clean_confounds" ]; # https://github.com/nilearn/nilearn/issues/2608 35 # do subset of tests which don't fetch resources 36 pytestFlagsArray = [ "nilearn/connectome/tests" ]; 37 38 propagatedBuildInputs = [ 39 joblib 40 lxml 41 matplotlib 42 nibabel 43 numpy 44 pandas 45 requests 46 scikit-learn 47 scipy 48 ]; 49 50 meta = with lib; { 51 homepage = "https://nilearn.github.io"; 52 description = "Module for statistical learning on neuroimaging data"; 53 changelog = "https://github.com/nilearn/nilearn/releases/tag/${version}"; 54 license = licenses.bsd3; 55 }; 56}