python312Packages.niworkflows: 1.12.0 -> 1.12.2

Diff: https://github.com/nipreps/niworkflows/compare/refs/tags/1.12.0...1.12.2

Changelog: https://github.com/nipreps/niworkflows/blob/1.12.2/CHANGES.rst
This commit is contained in:
Gaetan Lepage
2025-02-17 11:04:33 +01:00
parent e331616f17
commit 68f695de67
@@ -2,9 +2,13 @@
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatch-vcs,
hatchling,
pytestCheckHook,
# dependencies
acres,
attrs,
importlib-resources,
jinja2,
@@ -26,18 +30,24 @@
templateflow,
traits,
transforms3d,
# tests
pytest-cov-stub,
pytest-env,
pytestCheckHook,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "niworkflows";
version = "1.12.0";
version = "1.12.2";
pyproject = true;
src = fetchFromGitHub {
owner = "nipreps";
repo = "niworkflows";
tag = version;
hash = "sha256-OWsfz5YDPy1qPpXomr4YiuCDf40Fy1pW8cNHPjHfqp4=";
hash = "sha256-rgnfp12SHlL3LFFMSrHlTd0tWNnA4ekxZ9kKYRvZWlw=";
};
pythonRelaxDeps = [ "traits" ];
@@ -48,6 +58,7 @@ buildPythonPackage rec {
];
dependencies = [
acres
attrs
importlib-resources
jinja2
@@ -73,29 +84,38 @@ buildPythonPackage rec {
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''export HOME=$(mktemp -d)'';
nativeCheckInputs = [
pytest-cov-stub
pytest-env
pytestCheckHook
writableTmpDirAsHomeHook
];
pytestFlagsArray = [ "niworkflows" ];
# try to download data:
disabledTests = [
"test_GenerateCifti"
# 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"
"niworkflows.utils.misc.get_template_specs"
"niworkflows.interfaces.cifti._prepare_cifti"
];
disabledTestPaths = [ "niworkflows/tests/test_registration.py" ];
disabledTestPaths = [
"niworkflows/tests/test_registration.py"
];
pythonImportsCheck = [ "niworkflows" ];
meta = with lib; {
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 = licenses.asl20;
maintainers = with maintainers; [ bcdarwin ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}