1{
2 lib,
3 bluetooth-data-tools,
4 bluetooth-sensor-state-data,
5 buildPythonPackage,
6 fetchFromGitHub,
7 home-assistant-bluetooth,
8 poetry-core,
9 pytest-asyncio,
10 pytest-cov-stub,
11 pytestCheckHook,
12 pythonOlder,
13 sensor-state-data,
14}:
15
16buildPythonPackage rec {
17 pname = "inkbird-ble";
18 version = "1.1.0";
19 pyproject = true;
20
21 disabled = pythonOlder "3.11";
22
23 src = fetchFromGitHub {
24 owner = "Bluetooth-Devices";
25 repo = "inkbird-ble";
26 tag = "v${version}";
27 hash = "sha256-Dwp65FKtqJbgux+T3Ql09sDy6m8CCeK26aDKM3I3eJo=";
28 };
29
30 build-system = [ poetry-core ];
31
32 dependencies = [
33 bluetooth-data-tools
34 bluetooth-sensor-state-data
35 home-assistant-bluetooth
36 sensor-state-data
37 ];
38
39 nativeCheckInputs = [
40 pytest-asyncio
41 pytest-cov-stub
42 pytestCheckHook
43 ];
44
45 pythonImportsCheck = [ "inkbird_ble" ];
46
47 meta = with lib; {
48 description = "Library for Inkbird BLE devices";
49 homepage = "https://github.com/Bluetooth-Devices/inkbird-ble";
50 changelog = "https://github.com/Bluetooth-Devices/inkbird-ble/blob/${src.tag}/CHANGELOG.md";
51 license = licenses.mit;
52 maintainers = with maintainers; [ fab ];
53 };
54}