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 = "2023.5.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "Cereal2nd";
20 repo = pname;
21 rev = version;
22 hash = "sha256-8wRgH7t1s2X7mg3oN38KMvJQfWcn/ePw6rNIl2K9nNA=";
23 fetchSubmodules = true;
24 };
25
26 propagatedBuildInputs = [
27 backoff
28 pyserial
29 pyserial-asyncio
30 ];
31
32 nativeCheckInputs = [
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 changelog = "https://github.com/Cereal2nd/velbus-aio/releases/tag/${version}";
44 license = with licenses; [ asl20 ];
45 maintainers = with maintainers; [ fab ];
46 };
47}