From 9ddd08a5740be87c5e5db0e5b2cf80421328c960 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 10 Jan 2026 21:51:47 +0100 Subject: [PATCH] python313Packages.nicegui: migrate to finalAttrs --- pkgs/development/python-modules/nicegui/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/nicegui/default.nix b/pkgs/development/python-modules/nicegui/default.nix index 94a2171a4bad..f7a4c6f45a3a 100644 --- a/pkgs/development/python-modules/nicegui/default.nix +++ b/pkgs/development/python-modules/nicegui/default.nix @@ -41,7 +41,7 @@ writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "nicegui"; version = "3.5.0"; pyproject = true; @@ -49,7 +49,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zauberzeug"; repo = "nicegui"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-4bIpQ6n6s6GgwAzDs6pPULNlwYqclNHvWlPOwJ5I5v4="; }; @@ -105,7 +105,7 @@ buildPythonPackage rec { webdriver-manager writableTmpDirAsHomeHook ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies); pythonImportsCheck = [ "nicegui" ]; @@ -115,8 +115,8 @@ buildPythonPackage rec { meta = { description = "Module to create web-based user interfaces"; homepage = "https://github.com/zauberzeug/nicegui/"; - changelog = "https://github.com/zauberzeug/nicegui/releases/tag/${src.tag}"; + changelog = "https://github.com/zauberzeug/nicegui/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})