From 716bbaf3014a8a5d967a7e5b81d4ead4e23d9855 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 2 Oct 2026 10:00:08 +0200 Subject: [PATCH] python3Packages.bluemaestro-ble: migrate to finalAttrs --- .../python-modules/bluemaestro-ble/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/bluemaestro-ble/default.nix b/pkgs/development/python-modules/bluemaestro-ble/default.nix index c6ed32d9913b..96da51be869d 100644 --- a/pkgs/development/python-modules/bluemaestro-ble/default.nix +++ b/pkgs/development/python-modules/bluemaestro-ble/default.nix @@ -10,7 +10,7 @@ sensor-state-data, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "bluemaestro-ble"; version = "1.2.0"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "Bluetooth-Devices"; repo = "bluemaestro-ble"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-Uz4JE7ALfHxmdi7OesdJZqp4JhQdQGNwoiDxZyk8g9c="; }; @@ -40,8 +40,8 @@ buildPythonPackage rec { meta = { description = "Library for bluemaestro BLE devices"; homepage = "https://github.com/Bluetooth-Devices/bluemaestro-ble"; - changelog = "https://github.com/Bluetooth-Devices/bluemaestro-ble/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/Bluetooth-Devices/bluemaestro-ble/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})