nixpkgs/pkgs/development/python-modules/nilearn/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

35 lines
891 B
Nix

{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, lxml, matplotlib
, nibabel, numpy, pandas, scikit-learn, scipy, joblib, requests }:
buildPythonPackage rec {
pname = "nilearn";
version = "0.10.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-zH8QaOA4B2Un6tG9NjQ2+I9ejSHou1ezI7MLkm/HVTo=";
};
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [ "test_clean_confounds" ]; # https://github.com/nilearn/nilearn/issues/2608
# do subset of tests which don't fetch resources
pytestFlagsArray = [ "nilearn/connectome/tests" ];
propagatedBuildInputs = [
joblib
lxml
matplotlib
nibabel
numpy
pandas
requests
scikit-learn
scipy
];
meta = with lib; {
homepage = "https://nilearn.github.io";
description = "A module for statistical learning on neuroimaging data";
license = licenses.bsd3;
};
}