1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytest-asyncio 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "screenlogicpy"; 11 version = "0.5.5"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "dieselrabbit"; 18 repo = pname; 19 rev = "refs/tags/v${version}"; 20 sha256 = "sha256-1tBr7k7RutCHvea/56J7drl9P+WZ5bQpDeQwhgktc1s="; 21 }; 22 23 checkInputs = [ 24 pytest-asyncio 25 pytestCheckHook 26 ]; 27 28 disabledTests = [ 29 # Tests require network access 30 "test_gateway_discovery" 31 "test_async_discovery" 32 "test_gateway" 33 "test_async" 34 "test_asyncio_gateway_discovery" 35 ]; 36 37 pythonImportsCheck = [ 38 "screenlogicpy" 39 ]; 40 41 meta = with lib; { 42 description = "Python interface for Pentair Screenlogic devices"; 43 homepage = "https://github.com/dieselrabbit/screenlogicpy"; 44 license = with licenses; [ gpl3Only ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}