30 buildPythonPackage rec {
31 pname = "niworkflows";
35 src = fetchFromGitHub {
38 rev = "refs/tags/${version}";
39 hash = "sha256-ZOn3KSaPAA8zTdyexrjF9Wkb5C5qA/5eSJahg2DcX20=";
43 substituteInPlace pyproject.toml --replace '"traits < 6.4"' '"traits"'
51 propagatedBuildInputs = [
75 env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
77 nativeCheckInputs = [ pytestCheckHook ];
78 preCheck = ''export HOME=$(mktemp -d)'';
79 pytestFlagsArray = [ "niworkflows" ];
80 # try to download data:
85 "test_SimpleShowMaskRPT"
86 "test_cifti_surfaces_plot"
87 "niworkflows.utils.misc.get_template_specs"
88 "niworkflows.interfaces.cifti._prepare_cifti"
90 disabledTestPaths = [ "niworkflows/tests/test_registration.py" ];
92 pythonImportsCheck = [ "niworkflows" ];
95 description = "Common workflows for MRI (anatomical, functional, diffusion, etc.)";
96 mainProgram = "niworkflows-boldref";
97 homepage = "https://github.com/nipreps/niworkflows";
98 changelog = "https://github.com/nipreps/niworkflows/blob/${src.rev}/CHANGES.rst";
99 license = licenses.asl20;
100 maintainers = with maintainers; [ bcdarwin ];