From 8c25a50072d774ad6894bfe76bc2d04f54bed658 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 1 Jun 2026 23:58:34 +0200 Subject: [PATCH] python3Packages.ansi2image: use finalAttrs --- pkgs/development/python-modules/ansi2image/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/ansi2image/default.nix b/pkgs/development/python-modules/ansi2image/default.nix index d8229e25598d..6259f7505fae 100644 --- a/pkgs/development/python-modules/ansi2image/default.nix +++ b/pkgs/development/python-modules/ansi2image/default.nix @@ -8,7 +8,7 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "ansi2image"; version = "0.1.5"; pyproject = true; @@ -16,7 +16,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "helviojunior"; repo = "ansi2image"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-GWrVo1WJux+ATvG5F9J4WMDlI0XAeTpQg7NrkN1P4Co="; }; @@ -37,8 +37,8 @@ buildPythonPackage rec { description = "Module to convert ANSI text to an image"; mainProgram = "ansi2image"; homepage = "https://github.com/helviojunior/ansi2image"; - changelog = "https://github.com/helviojunior/ansi2image/blob/${version}/CHANGELOG"; + changelog = "https://github.com/helviojunior/ansi2image/blob/${finalAttrs.version}/CHANGELOG"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ fab ]; }; -} +})