From 5d9499fa40989ef35cba951a10e9016f75e68252 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 5 Jan 2026 12:36:36 +0000 Subject: [PATCH] python3Packages.beancount-parser: use finalAttrs --- .../python-modules/beancount-parser/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/beancount-parser/default.nix b/pkgs/development/python-modules/beancount-parser/default.nix index 620f0f199a8c..5951efbadfac 100644 --- a/pkgs/development/python-modules/beancount-parser/default.nix +++ b/pkgs/development/python-modules/beancount-parser/default.nix @@ -8,7 +8,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "beancount-parser"; version = "1.2.3"; format = "pyproject"; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "LaunchPlatform"; repo = "beancount-parser"; - tag = version; + tag = finalAttrs.version; hash = "sha256-8YcrsLdSRTixKXU/IM821kNcBo0jB/8DXA1/KiedsBY="; }; @@ -33,8 +33,8 @@ buildPythonPackage rec { meta = { description = "Standalone Lark based Beancount syntax parser"; homepage = "https://github.com/LaunchPlatform/beancount-parser/"; - changelog = "https://github.com/LaunchPlatform/beancount-parser/releases/tag/${version}"; + changelog = "https://github.com/LaunchPlatform/beancount-parser/releases/tag/${finalAttrs.version}"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ ambroisie ]; }; -} +})