python313Packages.pyswitchbot: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-09 21:20:17 +01:00
committed by GitHub
parent effff33a59
commit 523ef544de
@@ -12,7 +12,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pyswitchbot";
version = "0.76.0";
pyproject = true;
@@ -20,7 +20,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "pySwitchbot";
tag = version;
tag = finalAttrs.version;
hash = "sha256-t5ij86Nq5BQONizKRFPeNyleFo7n4RD9pEglLPhS+Gk=";
};
@@ -44,9 +44,9 @@ buildPythonPackage rec {
meta = {
description = "Python library to control Switchbot IoT devices";
homepage = "https://github.com/Danielhiversen/pySwitchbot";
changelog = "https://github.com/Danielhiversen/pySwitchbot/releases/tag/${src.tag}";
changelog = "https://github.com/Danielhiversen/pySwitchbot/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
platforms = lib.platforms.linux;
};
}
})