python3Packages.bthome-ble: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-05-05 08:22:12 +02:00
committed by GitHub
parent 96d7b09453
commit cb36abcd0d
@@ -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 ];
};
}
})