1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "pyrisco";
10 version = "0.5.8";
11 disabled = pythonOlder "3.7";
12
13 src = fetchFromGitHub {
14 owner = "OnFreund";
15 repo = pname;
16 rev = "v${version}";
17 hash = "sha256-PQ1h9UVQ2DQMInxdAaLES7uDWAxwDra+YfAmz5jjV6g=";
18 };
19
20 propagatedBuildInputs = [
21 aiohttp
22 ];
23
24 # Project has no tests
25 doCheck = false;
26
27 pythonImportsCheck = [
28 "pyrisco"
29 ];
30
31 meta = with lib; {
32 description = "Python interface to Risco alarm systems through Risco Cloud";
33 homepage = "https://github.com/OnFreund/pyrisco";
34 license = with licenses; [ mit ];
35 maintainers = with maintainers; [ fab ];
36 };
37}