From 734bc969011fa3f50b2d4e66912a527ab1fa5543 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 1 Mar 2026 00:10:15 +0000 Subject: [PATCH] python3Packages.niworks: cleanup --- .../development/python-modules/niworkflows/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/niworkflows/default.nix b/pkgs/development/python-modules/niworkflows/default.nix index 08f83f95798b..b53adb8324f8 100644 --- a/pkgs/development/python-modules/niworkflows/default.nix +++ b/pkgs/development/python-modules/niworkflows/default.nix @@ -38,7 +38,7 @@ writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "niworkflows"; version = "1.14.4"; pyproject = true; @@ -46,7 +46,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "nipreps"; repo = "niworkflows"; - tag = version; + tag = finalAttrs.version; hash = "sha256-AMUOiIL33kcJtlKT+L5QwcUh8mBBkf80uzOQZFKDauo="; }; @@ -82,7 +82,7 @@ buildPythonPackage rec { transforms3d ]; - env.SETUPTOOLS_SCM_PRETEND_VERSION = version; + env.SETUPTOOLS_SCM_PRETEND_VERSION = finalAttrs.version; nativeCheckInputs = [ pytest-cov-stub @@ -115,8 +115,8 @@ buildPythonPackage rec { 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"; + changelog = "https://github.com/nipreps/niworkflows/blob/${finalAttrs.src.tag}/CHANGES.rst"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bcdarwin ]; }; -} +})