1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, zeep 7}: 8 9buildPythonPackage rec { 10 pname = "total-connect-client"; 11 version = "2021.11.4"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "craigjmidwinter"; 18 repo = "total-connect-client"; 19 rev = version; 20 sha256 = "sha256-iggxKefrVZP4ljf8jGRrCAq0/xQLsr54L42KkdjBqgI="; 21 }; 22 23 propagatedBuildInputs = [ 24 zeep 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 preCheck = '' 32 export PYTHONPATH="total_connect_client:$PYTHONPATH" 33 ''; 34 35 disabledTests = [ 36 # Tests require network access 37 "tests_request" 38 ]; 39 40 pythonImportsCheck = [ 41 "total_connect_client" 42 ]; 43 44 meta = with lib; { 45 description = "Interact with Total Connect 2 alarm systems"; 46 homepage = "https://github.com/craigjmidwinter/total-connect-client"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ dotlambda ]; 49 }; 50}