From a7e249ea8bd131977a63bc7e8e740d8dc4c9ea18 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 10 Jan 2026 21:41:16 +0100 Subject: [PATCH] python313Packages.python-bsblan: migrate to finalAttrs --- .../python-modules/python-bsblan/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/python-bsblan/default.nix b/pkgs/development/python-modules/python-bsblan/default.nix index 41ff4fa3d247..9dcab25f4276 100644 --- a/pkgs/development/python-modules/python-bsblan/default.nix +++ b/pkgs/development/python-modules/python-bsblan/default.nix @@ -18,7 +18,7 @@ yarl, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "python-bsblan"; version = "3.1.6"; pyproject = true; @@ -26,13 +26,13 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "liudger"; repo = "python-bsblan"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-FMbba7z/Di5oD6xrjpF2cyJzdzdFjSw7wfTwS8Sjo8c="; }; postPatch = '' substituteInPlace pyproject.toml \ - --replace-fail 'version = "0.0.0"' 'version = "${version}"' + --replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"' ''; build-system = [ hatchling ]; @@ -64,8 +64,8 @@ buildPythonPackage rec { meta = { description = "Module to control and monitor an BSBLan device programmatically"; homepage = "https://github.com/liudger/python-bsblan"; - changelog = "https://github.com/liudger/python-bsblan/releases/tag/${src.tag}"; + changelog = "https://github.com/liudger/python-bsblan/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})