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 ]; }; -} +})