mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
pytestCheckHook,
|
|
hatch-vcs,
|
|
lxml,
|
|
matplotlib,
|
|
nibabel,
|
|
numpy,
|
|
pandas,
|
|
scikit-learn,
|
|
scipy,
|
|
joblib,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nilearn";
|
|
version = "0.10.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-lFC9Vqd22ZezJPRd0Yv5bom9jYAWCXT8x1kzP7rqNcI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ hatch-vcs ];
|
|
|
|
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 = "Module for statistical learning on neuroimaging data";
|
|
changelog = "https://github.com/nilearn/nilearn/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|