1{ lib
2, backoff
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6, pyserial
7, pyserial-asyncio
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "velbus-aio";
13 version = "2022.10.4";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "Cereal2nd";
20 repo = pname;
21 rev = version;
22 sha256 = "sha256-6Sg2t8UmIyVCfjTW3GDldOk09gVg2ngV9sXhyQI4Kz4=";
23 fetchSubmodules = true;
24 };
25
26 propagatedBuildInputs = [
27 backoff
28 pyserial
29 pyserial-asyncio
30 ];
31
32 checkInputs = [
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [
37 "velbusaio"
38 ];
39
40 meta = with lib; {
41 description = "Python library to support the Velbus home automation system";
42 homepage = "https://github.com/Cereal2nd/velbus-aio";
43 license = with licenses; [ asl20 ];
44 maintainers = with maintainers; [ fab ];
45 };
46}