1{
2 lib,
3 buildPythonPackage,
4 dicttoxml2,
5 fetchFromGitHub,
6 pythonOlder,
7 xmltodict,
8}:
9
10buildPythonPackage rec {
11 pname = "pyialarm";
12 version = "2.2.0";
13 format = "setuptools";
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "RyuzakiKK";
18 repo = "pyialarm";
19 rev = "v${version}";
20 hash = "sha256-rOdeYewjoFVbHdNPHN6ZC2g6X5yr84/JFE6tGSDIoRU=";
21 };
22
23 propagatedBuildInputs = [
24 dicttoxml2
25 xmltodict
26 ];
27
28 # Project has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "pyialarm" ];
32
33 meta = with lib; {
34 description = "Python library to interface with Antifurto365 iAlarm systems";
35 homepage = "https://github.com/RyuzakiKK/pyialarm";
36 license = with licenses; [ asl20 ];
37 maintainers = with maintainers; [ fab ];
38 };
39}