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