From f96dfc775486cc3cb155fbd208ceeddf4657b0e5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 4 Mar 2026 09:24:55 +0100 Subject: [PATCH] python3Packages.velbus-aio: migrate to finalAttrs --- pkgs/development/python-modules/velbus-aio/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/velbus-aio/default.nix b/pkgs/development/python-modules/velbus-aio/default.nix index 302fb992f812..5a02f5f4924e 100644 --- a/pkgs/development/python-modules/velbus-aio/default.nix +++ b/pkgs/development/python-modules/velbus-aio/default.nix @@ -14,7 +14,7 @@ writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "velbus-aio"; version = "2026.2.0"; pyproject = true; @@ -22,7 +22,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "Cereal2nd"; repo = "velbus-aio"; - tag = version; + tag = finalAttrs.version; hash = "sha256-lQl5f7O6ZMfYGleyOESSbW87RPS7eBi3YZqCAcQfLow="; fetchSubmodules = true; }; @@ -49,8 +49,8 @@ buildPythonPackage rec { meta = { description = "Python library to support the Velbus home automation system"; homepage = "https://github.com/Cereal2nd/velbus-aio"; - changelog = "https://github.com/Cereal2nd/velbus-aio/releases/tag/${src.tag}"; + changelog = "https://github.com/Cereal2nd/velbus-aio/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; -} +})