1{
2 lib,
3 async-timeout,
4 bleak-retry-connector,
5 bleak,
6 buildPythonPackage,
7 fetchFromGitHub,
8 poetry-core,
9 pytest-cov-stub,
10 pytestCheckHook,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "ld2410-ble";
16 version = "0.2.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.9";
20
21 src = fetchFromGitHub {
22 owner = "930913";
23 repo = "ld2410-ble";
24 tag = "v${version}";
25 hash = "sha256-wQnE2hNT0UOnPJbHq1eayIO8g0XRZvEH6V19DL6RqoA=";
26 };
27
28 build-system = [ poetry-core ];
29
30 dependencies = [
31 async-timeout
32 bleak
33 bleak-retry-connector
34 ];
35
36 nativeCheckInputs = [
37 pytest-cov-stub
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "ld2410_ble" ];
42
43 meta = with lib; {
44 description = "Library for the LD2410B modules from HiLinks";
45 homepage = "https://github.com/930913/ld2410-ble";
46 changelog = "https://github.com/930913/ld2410-ble/blob/v${version}/CHANGELOG.md";
47 license = licenses.mit;
48 maintainers = with maintainers; [ fab ];
49 };
50}