python3Packages.ansi2image: use finalAttrs

This commit is contained in:
Sigmanificient
2026-06-01 23:58:34 +02:00
parent aeaf401322
commit 8c25a50072
@@ -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 ];
};
}
})