nixpkgs/pkgs/development/python-modules/nilearn/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

36 lines
892 B
Nix

{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, lxml, matplotlib
, nibabel, numpy, pandas, scikit-learn, scipy, joblib, requests }:
buildPythonPackage rec {
pname = "nilearn";
version = "0.9.2";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-jajTg12SzXuKbMkkVaSJ1+f1mUz2T8cbzmU+NidzueQ=";
};
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;
};
}