1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "screenlogicpy";
10 version = "0.4.3";
11 disabled = pythonOlder "3.6";
12
13 src = fetchFromGitHub {
14 owner = "dieselrabbit";
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "0v0nbwz0w2m7kzvcl0fh2v2rk5ldsq22siyxq6d401pkpzwih25c";
18 };
19
20 checkInputs = [
21 pytestCheckHook
22 ];
23
24 disabledTests = [
25 # Tests require network access
26 "test_gateway_discovery"
27 "test_asyncio_gateway_discovery"
28 ];
29
30 pythonImportsCheck = [ "screenlogicpy" ];
31
32 meta = with lib; {
33 description = "Python interface for Pentair Screenlogic devices";
34 homepage = "https://github.com/dieselrabbit/screenlogicpy";
35 license = with licenses; [ gpl3Only ];
36 maintainers = with maintainers; [ fab ];
37 };
38}