From cb36abcd0db24ec3f515560904b423ed7d9f77c2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 5 May 2026 08:22:12 +0200 Subject: [PATCH] python3Packages.bthome-ble: migrate to finalAttrs --- pkgs/development/python-modules/bthome-ble/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/bthome-ble/default.nix b/pkgs/development/python-modules/bthome-ble/default.nix index 59e9c7b1398c..313d450c085e 100644 --- a/pkgs/development/python-modules/bthome-ble/default.nix +++ b/pkgs/development/python-modules/bthome-ble/default.nix @@ -12,7 +12,7 @@ sensor-state-data, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "bthome-ble"; version = "3.22.1"; pyproject = true; @@ -20,7 +20,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "Bluetooth-Devices"; repo = "bthome-ble"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-aUhfcWjElFIIb9xMGuKt4cowSJ6VPXO3xfft7C0stRs="; }; @@ -44,8 +44,8 @@ buildPythonPackage rec { meta = { description = "Library for BThome BLE devices"; homepage = "https://github.com/Bluetooth-Devices/bthome-ble"; - changelog = "https://github.com/bluetooth-devices/bthome-ble/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/bluetooth-devices/bthome-ble/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})