From 64b259bb300700894ef676132e751d5545e8ba80 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 24 Jun 2026 11:14:45 +0200 Subject: [PATCH] python3Packages.rich-rst: migrate to finalAttrs --- .../python-modules/rich-rst/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/rich-rst/default.nix b/pkgs/development/python-modules/rich-rst/default.nix index 8e8391bc9593..457138c5e226 100644 --- a/pkgs/development/python-modules/rich-rst/default.nix +++ b/pkgs/development/python-modules/rich-rst/default.nix @@ -1,15 +1,15 @@ { lib, buildPythonPackage, - fetchFromGitHub, - setuptools, - setuptools-scm, docutils, - rich, + fetchFromGitHub, pytestCheckHook, + rich, + setuptools-scm, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "rich-rst"; version = "2.0.1"; pyproject = true; @@ -17,7 +17,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "wasi-master"; repo = "rich-rst"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-7nniBu9UnXA0pogv0TDkANTeOcsVYbyDxEr6/r7MxcY="; }; @@ -38,7 +38,8 @@ buildPythonPackage rec { meta = { description = "Beautiful reStructuredText renderer for rich"; homepage = "https://github.com/wasi-master/rich-rst"; + changelog = "https://github.com/wasi-master/rich-rst/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = [ ]; }; -} +})