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