From fe207b8e997e78ddffdbde3d7f55cfbabfa6e39e Mon Sep 17 00:00:00 2001 From: eljamm Date: Wed, 18 Nov 2026 16:29:19 +0100 Subject: [PATCH] python3Packages.icalendar-searcher: use finalAttrs --- .../python-modules/icalendar-searcher/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/icalendar-searcher/default.nix b/pkgs/development/python-modules/icalendar-searcher/default.nix index 6ef600f67c10..459ac31a3106 100644 --- a/pkgs/development/python-modules/icalendar-searcher/default.nix +++ b/pkgs/development/python-modules/icalendar-searcher/default.nix @@ -10,7 +10,7 @@ recurring-ical-events, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "icalendar-searcher"; version = "1.3.0"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "PyCalendar"; repo = "icalendar-searcher"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-FNrc+SQar8vftn2zGtMtQW5Tb9KwELSozt8oO4ogxn0="; }; @@ -41,14 +41,14 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; meta = { - changelog = "https://github.com/PyCalendar/icalendar-searcher/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/PyCalendar/icalendar-searcher/blob/${finalAttrs.src.tag}/CHANGELOG.md"; description = "Search, filter and sort iCalendar components"; homepage = "https://github.com/PyCalendar/icalendar-searcher"; license = lib.licenses.agpl3Only; maintainers = [ lib.maintainers.dotlambda ]; teams = [ lib.teams.ngi ]; }; -} +})