1{
2 lib,
3 async-interrupt,
4 bleak,
5 bleak-retry-connector,
6 buildPythonPackage,
7 cbor2,
8 fetchFromGitHub,
9 poetry-core,
10 pytest-cov-stub,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "airthings-ble";
16 version = "1.1.1";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "vincegio";
21 repo = "airthings-ble";
22 tag = version;
23 hash = "sha256-fZvmgRQuSrgraj6e3BtsoKyFX38BedqVh6cHsliT9ns=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [
29 async-interrupt
30 bleak
31 bleak-retry-connector
32 cbor2
33 ];
34
35 nativeCheckInputs = [
36 pytest-cov-stub
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [ "airthings_ble" ];
41
42 meta = with lib; {
43 description = "Library for Airthings BLE devices";
44 homepage = "https://github.com/vincegio/airthings-ble";
45 changelog = "https://github.com/vincegio/airthings-ble/releases/tag/${src.tag}";
46 license = licenses.mit;
47 maintainers = with maintainers; [ fab ];
48 };
49}