From 523ef544ded18c694f662ba0d9aa88e2de0f8ebf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Jan 2026 21:20:17 +0100 Subject: [PATCH] python313Packages.pyswitchbot: migrate to finalAttrs --- pkgs/development/python-modules/pyswitchbot/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pyswitchbot/default.nix b/pkgs/development/python-modules/pyswitchbot/default.nix index 33e3afed019c..c913bec5c7ca 100644 --- a/pkgs/development/python-modules/pyswitchbot/default.nix +++ b/pkgs/development/python-modules/pyswitchbot/default.nix @@ -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; }; -} +})