{ 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 ]; }; }