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.9.2";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "sha256-jajTg12SzXuKbMkkVaSJ1+f1mUz2T8cbzmU+NidzueQ=";
11 };
12
13 checkInputs = [ 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}