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