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