From c446952cb03a0dc2e88e8b8efb21ec6166bc7cab Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 27 Apr 2026 09:43:53 +0000 Subject: [PATCH] python3Packages.test2ref: use the finalAttrs pattern --- pkgs/development/python-modules/test2ref/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/test2ref/default.nix b/pkgs/development/python-modules/test2ref/default.nix index 3dfaf492a5bb..5c4945b4d84f 100644 --- a/pkgs/development/python-modules/test2ref/default.nix +++ b/pkgs/development/python-modules/test2ref/default.nix @@ -14,7 +14,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "test2ref"; version = "1.2.3"; pyproject = true; @@ -23,7 +23,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "nbiotcloud"; repo = "test2ref"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-20vE6o8yKphKxlfGo+lBZ1VlKyCVlNawlMYVcj4JAtY="; }; @@ -53,8 +53,8 @@ buildPythonPackage rec { meta = { description = "Testing Against Learned Reference Data"; homepage = "https://github.com/nbiotcloud/test2ref"; - changelog = "https://github.com/nbiotcloud/test2ref/releases/tag/${src.tag}"; + changelog = "https://github.com/nbiotcloud/test2ref/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; }; -} +})