1{
2 lib,
3 bleak,
4 bluetooth-adapters,
5 dbus-fast,
6 buildPythonPackage,
7 fetchFromGitHub,
8 poetry-core,
9 pytestCheckHook,
10 pytest-asyncio,
11 pytest-cov-stub,
12}:
13
14buildPythonPackage rec {
15 pname = "bleak-retry-connector";
16 version = "4.4.3";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "Bluetooth-Devices";
21 repo = "bleak-retry-connector";
22 tag = "v${version}";
23 hash = "sha256-/IJBAeb/PdJt0IbLm3RnaHn4o8o1DXN8jGiQtzp7wLg=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [
29 bleak
30 bluetooth-adapters
31 dbus-fast
32 ];
33
34 nativeCheckInputs = [
35 pytest-asyncio
36 pytest-cov-stub
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [ "bleak_retry_connector" ];
41
42 meta = with lib; {
43 description = "Connector for Bleak Clients that handles transient connection failures";
44 homepage = "https://github.com/bluetooth-devices/bleak-retry-connector";
45 changelog = "https://github.com/bluetooth-devices/bleak-retry-connector/blob/${src.tag}/CHANGELOG.md";
46 license = licenses.mit;
47 maintainers = with maintainers; [ fab ];
48 };
49}