python3Packages.glances-api: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-04-07 01:33:12 +02:00
parent 88613e4d1e
commit deb8e4ee2b
@@ -9,7 +9,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "glances-api";
version = "0.9.1";
pyproject = true;
@@ -17,7 +17,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = "python-glances-api";
tag = version;
tag = finalAttrs.version;
hash = "sha256-Hi9MvqxrqYB9MbTtm8XWJ1U4KpO9aB2lAIdZbrvNEdY=";
};
@@ -36,8 +36,8 @@ buildPythonPackage rec {
meta = {
description = "Python API for interacting with Glances";
homepage = "https://github.com/home-assistant-ecosystem/python-glances-api";
changelog = "https://github.com/home-assistant-ecosystem/python-glances-api/releases/tag/${version}";
changelog = "https://github.com/home-assistant-ecosystem/python-glances-api/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
})