From 7db786e769652dd44d2adee5d94e2fb290883b89 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 18 Jan 2026 01:40:03 +0100 Subject: [PATCH] python313Packages.growattserver: migrate to finalAttrs --- pkgs/development/python-modules/growattserver/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/growattserver/default.nix b/pkgs/development/python-modules/growattserver/default.nix index 927e1428e473..719ce3bd7989 100644 --- a/pkgs/development/python-modules/growattserver/default.nix +++ b/pkgs/development/python-modules/growattserver/default.nix @@ -6,7 +6,7 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "growattserver"; version = "1.8.0"; pyproject = true; @@ -14,7 +14,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "indykoning"; repo = "PyPi_GrowattServer"; - tag = version; + tag = finalAttrs.version; hash = "sha256-2Jgz/wN0k6ni+4PbQwfDg3uMvYxv5N3BVgdARHqQ0Yc="; }; @@ -30,8 +30,8 @@ buildPythonPackage rec { meta = { description = "Python package to retrieve information from Growatt units"; homepage = "https://github.com/indykoning/PyPi_GrowattServer"; - changelog = "https://github.com/indykoning/PyPi_GrowattServer/releases/tag/${src.tag}"; + changelog = "https://github.com/indykoning/PyPi_GrowattServer/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})