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