1{ lib
2, aiofiles
3, aiohttp
4, backoff
5, buildPythonPackage
6, click
7, fetchFromGitHub
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "pyprosegur";
13 version = "0.0.8";
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "dgomes";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 sha256 = "sha256-Spxzyn0gZ1TIHrtt7W0j6VwKnm2Km5vLGZZ//HINyBA=";
21 };
22
23 propagatedBuildInputs = [
24 aiofiles
25 aiohttp
26 backoff
27 click
28 ];
29
30 # Project has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [ "pyprosegur" ];
34
35 meta = with lib; {
36 description = "Python module to communicate with Prosegur Residential Alarms";
37 homepage = "https://github.com/dgomes/pyprosegur";
38 license = with licenses; [ mit ];
39 maintainers = with maintainers; [ fab ];
40 };
41}