python313Packages.nicegui: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-15 08:17:58 +01:00
parent a2b72e05d7
commit 9ddd08a574
@@ -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 ];
};
}
})