From 1be3372ff3b7e33d14fa2707eeec766c16ed84ce Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 29 Jul 2026 11:15:18 +0200 Subject: [PATCH] python3Packages.rstcheck-core: migrate to finalAttrs --- pkgs/development/python-modules/rstcheck-core/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/rstcheck-core/default.nix b/pkgs/development/python-modules/rstcheck-core/default.nix index f462558cbeb5..1a227ce9ad3f 100644 --- a/pkgs/development/python-modules/rstcheck-core/default.nix +++ b/pkgs/development/python-modules/rstcheck-core/default.nix @@ -12,7 +12,7 @@ setuptools-scm, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "rstcheck-core"; version = "1.3.1"; pyproject = true; @@ -20,7 +20,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "rstcheck"; repo = "rstcheck-core"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-4NvaBG2LQqHJgDLcUpjVjknkc0unVyAM8d5Z8SlZ2jw="; }; @@ -52,8 +52,8 @@ buildPythonPackage rec { meta = { description = "Library for checking syntax of reStructuredText"; homepage = "https://github.com/rstcheck/rstcheck-core"; - changelog = "https://github.com/rstcheck/rstcheck-core/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/rstcheck/rstcheck-core/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})