1{
2 lib,
3 aiofiles,
4 aiohttp,
5 backoff,
6 buildPythonPackage,
7 click,
8 fetchFromGitHub,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "pyprosegur";
15 version = "0.0.14";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "dgomes";
22 repo = "pyprosegur";
23 tag = version;
24 hash = "sha256-FMkz5zZ5+607gfmw4KRmCgfR+TJF2JGLRVEUzZAjTrc=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 aiofiles
31 aiohttp
32 backoff
33 click
34 ];
35
36 # Project has no tests
37 doCheck = false;
38
39 pythonImportsCheck = [ "pyprosegur" ];
40
41 meta = with lib; {
42 description = "Python module to communicate with Prosegur Residential Alarms";
43 homepage = "https://github.com/dgomes/pyprosegur";
44 changelog = "https://github.com/dgomes/pyprosegur/releases/tag/${version}";
45 license = with licenses; [ mit ];
46 maintainers = with maintainers; [ fab ];
47 mainProgram = "pyprosegur";
48 };
49}