nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, matplotlib
2, nibabel, numpy, pandas, scikit-learn, scipy, joblib, requests }:
3
4buildPythonPackage rec {
5 pname = "nilearn";
6 version = "0.9.0";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "sha256-+cjjCt71FImRCux3JLVpneF4Qn065jhz2tmyPdMh/nY=";
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 matplotlib
21 nibabel
22 numpy
23 pandas
24 requests
25 scikit-learn
26 scipy
27 ];
28
29 meta = with lib; {
30 homepage = "https://nilearn.github.io";
31 description = "A module for statistical learning on neuroimaging data";
32 license = licenses.bsd3;
33 };
34}