From 41cf600a24be8928fc86d1f451e6ae287674140e Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 5 Jan 2026 00:04:12 +0100 Subject: [PATCH] python3Packages.mdformat-gfm-alerts: use finalAttrs --- .../python-modules/mdformat-gfm-alerts/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/mdformat-gfm-alerts/default.nix b/pkgs/development/python-modules/mdformat-gfm-alerts/default.nix index 3a997e5e421b..9b46ebf11a6f 100644 --- a/pkgs/development/python-modules/mdformat-gfm-alerts/default.nix +++ b/pkgs/development/python-modules/mdformat-gfm-alerts/default.nix @@ -8,7 +8,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "mdformat-gfm-alerts"; version = "2.0.0"; pyproject = true; @@ -16,7 +16,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "KyleKing"; repo = "mdformat-gfm-alerts"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-Hfi4Ek91G8WHAWjv7m52ZnT5Je9QyZT4yWSecaeTcvA="; }; @@ -34,8 +34,8 @@ buildPythonPackage rec { meta = { description = "Format 'GitHub Markdown Alerts', which use blockquotes to render admonitions"; homepage = "https://github.com/KyleKing/mdformat-gfm-alerts"; - changelog = "https://github.com/KyleKing/mdformat-gfm-alerts/releases/tag/${src.tag}"; + changelog = "https://github.com/KyleKing/mdformat-gfm-alerts/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sigmanificient ]; }; -} +})