1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pyserial-asyncio
5, pytest-asyncio
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "pyotgw";
12 version = "unstable-2021-03-25";
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "mvn23";
17 repo = pname;
18 rev = "1854ef4ffb907524ff457ba558e4979ba7fabd02";
19 sha256 = "0zckd85dmzpz0drcgx16ly6kzh1f1slcxb9lrcf81wh1p4q9bcaa";
20 };
21
22 propagatedBuildInputs = [
23 pyserial-asyncio
24 ];
25
26 checkInputs = [
27 pytest-asyncio
28 pytestCheckHook
29 ];
30
31 pytestFlagsArray = [ "tests" ];
32
33 pythonImportsCheck = [ "pyotgw" ];
34
35 meta = with lib; {
36 description = "Python module to interact the OpenTherm Gateway";
37 homepage = "https://github.com/mvn23/pyotgw";
38 license = with licenses; [ gpl3Plus ];
39 maintainers = with maintainers; [ fab ];
40 };
41}