1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, zeep
7}:
8
9buildPythonPackage rec {
10 pname = "total-connect-client";
11 version = "2022.10";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "craigjmidwinter";
18 repo = "total-connect-client";
19 rev = version;
20 hash = "sha256-HNX+8TIfXOEy4KCmOjsNvOvLBdF8iQT0NJLBDD+XWsA=";
21 };
22
23 propagatedBuildInputs = [
24 zeep
25 ];
26
27 checkInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "total_connect_client"
33 ];
34
35 meta = with lib; {
36 description = "Interact with Total Connect 2 alarm systems";
37 homepage = "https://github.com/craigjmidwinter/total-connect-client";
38 license = licenses.mit;
39 maintainers = with maintainers; [ dotlambda ];
40 };
41}