python313Packages.hap-python: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-06 09:29:36 +01:00
parent 1824a5af81
commit 9325d2cd71
@@ -17,7 +17,7 @@
zeroconf,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "hap-python";
version = "5.0.0";
pyproject = true;
@@ -25,7 +25,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "ikalchev";
repo = "HAP-python";
tag = version;
tag = finalAttrs.version;
hash = "sha256-+EhxoO5X/ANGh008WE0sJeBsu8SRnuds3hXGxNWpKnk=";
};
@@ -49,7 +49,7 @@ buildPythonPackage rec {
pytest-timeout
pytestCheckHook
]
++ optional-dependencies.QRCode;
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
pythonImportsCheck = [ "pyhap" ];
@@ -61,8 +61,8 @@ buildPythonPackage rec {
meta = {
description = "HomeKit Accessory Protocol implementation";
homepage = "https://github.com/ikalchev/HAP-python";
changelog = "https://github.com/ikalchev/HAP-python/blob/${src.tag}/CHANGELOG.md";
changelog = "https://github.com/ikalchev/HAP-python/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ oro ];
};
}
})