Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
77 lines
1.3 KiB
Nix
77 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatch-vcs,
|
|
hatchling,
|
|
|
|
# dependencies
|
|
joblib,
|
|
lxml,
|
|
nibabel,
|
|
numpy,
|
|
pandas,
|
|
requests,
|
|
scikit-learn,
|
|
scipy,
|
|
packaging,
|
|
|
|
pytestCheckHook,
|
|
pytest-timeout,
|
|
numpydoc,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nilearn";
|
|
version = "0.12.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nilearn";
|
|
repo = "nilearn";
|
|
tag = version;
|
|
hash = "sha256-jUP/gUMUVveX8m2VbyilTsx5OppuYVXH1qKeEfEVajQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail " --template=maint_tools/templates/index.html" ""
|
|
'';
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
dependencies = [
|
|
joblib
|
|
lxml
|
|
nibabel
|
|
numpy
|
|
pandas
|
|
requests
|
|
scikit-learn
|
|
scipy
|
|
packaging
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-timeout
|
|
numpydoc
|
|
];
|
|
|
|
# do subset of tests which don't fetch resources
|
|
enabledTestPaths = [ "nilearn/connectome/tests" ];
|
|
|
|
meta = {
|
|
description = "Module for statistical learning on neuroimaging data";
|
|
homepage = "https://nilearn.github.io";
|
|
changelog = "https://github.com/nilearn/nilearn/releases/tag/${src.tag}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
}
|