{ lib, buildPythonPackage, fetchFromGitHub, # build-system hatch-vcs, hatchling, # dependencies acres, attrs, importlib-resources, jinja2, looseversion, matplotlib, nibabel, nilearn, nipype, nitransforms, numpy, packaging, pandas, pybids, pyyaml, scikit-image, scipy, seaborn, svgutils, templateflow, traits, transforms3d, # tests pytest-cov-stub, pytest-env, pytestCheckHook, writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "niworkflows"; version = "1.14.2"; pyproject = true; src = fetchFromGitHub { owner = "nipreps"; repo = "niworkflows"; tag = version; hash = "sha256-LzzbletoZdI9HuaBWhFB6IGs1nX6ZItNP6cWlw5m5EE="; }; pythonRelaxDeps = [ "traits" ]; build-system = [ hatch-vcs hatchling ]; dependencies = [ acres attrs importlib-resources jinja2 looseversion matplotlib nibabel nilearn nipype nitransforms numpy packaging pandas pybids pyyaml scikit-image scipy seaborn svgutils templateflow traits transforms3d ]; env.SETUPTOOLS_SCM_PRETEND_VERSION = version; nativeCheckInputs = [ pytest-cov-stub pytest-env pytestCheckHook writableTmpDirAsHomeHook ]; enabledTestPaths = [ "niworkflows" ]; disabledTests = [ # try to download data: "ROIsPlot" "ROIsPlot2" "niworkflows.interfaces.cifti._prepare_cifti" "niworkflows.utils.misc.get_template_specs" "test_GenerateCifti" "test_SimpleShowMaskRPT" "test_cifti_surfaces_plot" "test_brain_extraction_wf_smoketest" ]; disabledTestPaths = [ "niworkflows/tests/test_registration.py" ]; pythonImportsCheck = [ "niworkflows" ]; meta = { description = "Common workflows for MRI (anatomical, functional, diffusion, etc.)"; mainProgram = "niworkflows-boldref"; homepage = "https://github.com/nipreps/niworkflows"; changelog = "https://github.com/nipreps/niworkflows/blob/${src.tag}/CHANGES.rst"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bcdarwin ]; }; }