1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 protobuf,
7 pytest-asyncio,
8 pytestCheckHook,
9 pythonOlder,
10 zeroconf,
11}:
12
13buildPythonPackage rec {
14 pname = "aiobafi6";
15 version = "0.9.0";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.10";
19
20 src = fetchFromGitHub {
21 owner = "jfroy";
22 repo = "aiobafi6";
23 rev = "refs/tags/${version}";
24 hash = "sha256-QxjrspvNrcMcGChjj1B4QF/SnWCsGmPxnI2bWAL6BiI=";
25 };
26
27 nativeBuildInputs = [ poetry-core ];
28
29 propagatedBuildInputs = [
30 protobuf
31 zeroconf
32 ];
33
34 nativeCheckInputs = [
35 pytest-asyncio
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "aiobafi6" ];
40
41 meta = with lib; {
42 description = "Library for communication with the Big Ass Fans i6 firmware";
43 mainProgram = "aiobafi6";
44 homepage = "https://github.com/jfroy/aiobafi6";
45 changelog = "https://github.com/jfroy/aiobafi6/releases/tag/0.8.2";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ fab ];
48 };
49}