python313Packages.nibe: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-29 22:15:25 +01:00
parent 413917af40
commit 5ce718f944
@@ -16,7 +16,7 @@
tenacity,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "nibe";
version = "2.22.0";
pyproject = true;
@@ -24,7 +24,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "yozik04";
repo = "nibe";
tag = version;
tag = finalAttrs.version;
hash = "sha256-mbLasfHPPrZvL+PheMutqvIiyQQoew7dGIPGekuk0Oo=";
};
@@ -53,15 +53,15 @@ buildPythonPackage rec {
pytest-asyncio
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
pythonImportsCheck = [ "nibe" ];
meta = {
description = "Library for the communication with Nibe heatpumps";
homepage = "https://github.com/yozik04/nibe";
changelog = "https://github.com/yozik04/nibe/releases/tag/${src.tag}";
changelog = "https://github.com/yozik04/nibe/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
}
})