python313Packages.switchbot-api: migrate to finalAttrs

This commit is contained in:
Fabian Affolter 2026-01-15 14:49:52 +01:00 committed by GitHub
commit fee53cac55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@
poetry-core,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "switchbot-api";
version = "2.10.0";
pyproject = true;
@ -14,7 +14,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "SeraphicCorp";
repo = "py-switchbot-api";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-s6ezIkW36eIaxqedOfIk4KNhCwjXPFkc49qqK2p2eGw=";
};
@ -30,8 +30,8 @@ buildPythonPackage rec {
meta = {
description = "Asynchronous library to use Switchbot API";
homepage = "https://github.com/SeraphicCorp/py-switchbot-api";
changelog = "https://github.com/SeraphicCorp/py-switchbot-api/releases/tag/${src.tag}";
changelog = "https://github.com/SeraphicCorp/py-switchbot-api/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
})