1{
2 lib,
3 async-interrupt,
4 async-timeout,
5 bleak,
6 bleak-retry-connector,
7 buildPythonPackage,
8 cryptography,
9 fetchFromGitHub,
10 lru-dict,
11 poetry-core,
12 pytest-asyncio,
13 pytest-cov-stub,
14 pytestCheckHook,
15 pythonOlder,
16}:
17
18buildPythonPackage rec {
19 pname = "yalexs-ble";
20 version = "3.2.0";
21 pyproject = true;
22
23 disabled = pythonOlder "3.10";
24
25 src = fetchFromGitHub {
26 owner = "bdraco";
27 repo = "yalexs-ble";
28 tag = "v${version}";
29 hash = "sha256-bmzRvfOwAb2dr2bBfBE/4SuPB15qBpLelmxI15jhgrQ=";
30 };
31
32 build-system = [ poetry-core ];
33
34 dependencies = [
35 async-interrupt
36 async-timeout
37 bleak
38 bleak-retry-connector
39 cryptography
40 lru-dict
41 ];
42
43 nativeCheckInputs = [
44 pytest-asyncio
45 pytest-cov-stub
46 pytestCheckHook
47 ];
48
49 pythonImportsCheck = [ "yalexs_ble" ];
50
51 meta = with lib; {
52 description = "Library for Yale BLE devices";
53 homepage = "https://github.com/bdraco/yalexs-ble";
54 changelog = "https://github.com/bdraco/yalexs-ble/blob/${src.tag}/CHANGELOG.md";
55 license = licenses.gpl3Only;
56 maintainers = with maintainers; [ fab ];
57 };
58}