From fee53cac557e4cdf365deb6fcef00c36cdfbc9ce Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 15 Jan 2026 14:49:52 +0100 Subject: [PATCH] python313Packages.switchbot-api: migrate to finalAttrs --- pkgs/development/python-modules/switchbot-api/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/switchbot-api/default.nix b/pkgs/development/python-modules/switchbot-api/default.nix index efc6bd3e00f6..c04a5df6c39f 100644 --- a/pkgs/development/python-modules/switchbot-api/default.nix +++ b/pkgs/development/python-modules/switchbot-api/default.nix @@ -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 ]; }; -} +})