2022-08-10 20:51:59 +02:00
|
|
|
{
|
|
|
|
lib,
|
2022-08-16 12:47:10 +02:00
|
|
|
bluetooth-data-tools,
|
2022-08-10 20:51:59 +02:00
|
|
|
bluetooth-sensor-state-data,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
home-assistant-bluetooth,
|
|
|
|
poetry-core,
|
2024-12-15 12:51:05 +01:00
|
|
|
pytest-cov-stub,
|
2022-08-10 20:51:59 +02:00
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
sensor-state-data,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "inkbird-ble";
|
2025-04-05 09:57:19 +02:00
|
|
|
version = "0.10.1";
|
2024-12-15 12:30:07 +01:00
|
|
|
pyproject = true;
|
2022-08-10 20:51:59 +02:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Bluetooth-Devices";
|
2024-12-15 12:30:07 +01:00
|
|
|
repo = "inkbird-ble";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = "v${version}";
|
2025-04-05 09:57:19 +02:00
|
|
|
hash = "sha256-i6Vr8dl0svMew7uJrWp11EkVFU01uAHkGvUUr1ecfRw=";
|
2022-08-10 20:51:59 +02:00
|
|
|
};
|
|
|
|
|
2024-12-15 12:30:07 +01:00
|
|
|
build-system = [ poetry-core ];
|
2022-08-10 20:51:59 +02:00
|
|
|
|
2024-12-15 12:30:07 +01:00
|
|
|
dependencies = [
|
2022-08-16 12:47:10 +02:00
|
|
|
bluetooth-data-tools
|
2022-08-10 20:51:59 +02:00
|
|
|
bluetooth-sensor-state-data
|
|
|
|
home-assistant-bluetooth
|
|
|
|
sensor-state-data
|
|
|
|
];
|
|
|
|
|
2024-12-15 12:51:05 +01:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-cov-stub
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-08-10 20:51:59 +02:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "inkbird_ble" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for Inkbird BLE devices";
|
|
|
|
homepage = "https://github.com/Bluetooth-Devices/inkbird-ble";
|
2025-02-26 08:57:59 +00:00
|
|
|
changelog = "https://github.com/Bluetooth-Devices/inkbird-ble/blob/${src.tag}/CHANGELOG.md";
|
2024-12-15 12:30:07 +01:00
|
|
|
license = licenses.mit;
|
2022-08-10 20:51:59 +02:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|