1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "pythonegardia";
11 version = "1.0.52";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "jeroenterheerdt";
18 repo = "python-egardia";
19 tag = "v${version}";
20 sha256 = "sha256-lQ/7tH74MllwFe2kF5OcYSb4rQd+yJU1W6ztG4Z6Y0U=";
21 };
22
23 propagatedBuildInputs = [ requests ];
24
25 # Project has no tests, only two test file for manual interaction
26 doCheck = false;
27
28 pythonImportsCheck = [ "pythonegardia" ];
29
30 meta = with lib; {
31 description = "Python interface with Egardia/Woonveilig alarms";
32 homepage = "https://github.com/jeroenterheerdt/python-egardia";
33 changelog = "https://github.com/jeroenterheerdt/python-egardia/releases/tag/v${version}";
34 license = with licenses; [ mit ];
35 maintainers = with maintainers; [ fab ];
36 };
37}