Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, setuptools 7, zeep 8}: 9 10buildPythonPackage rec { 11 pname = "total-connect-client"; 12 version = "2023.2"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "craigjmidwinter"; 19 repo = "total-connect-client"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-sZA+3UjYSHZnN87KUNukRCQ/kG7aobcPVWnhqNOLwJw="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools 26 ]; 27 28 propagatedBuildInputs = [ 29 zeep 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 ]; 35 36 pythonImportsCheck = [ 37 "total_connect_client" 38 ]; 39 40 meta = with lib; { 41 description = "Interact with Total Connect 2 alarm systems"; 42 homepage = "https://github.com/craigjmidwinter/total-connect-client"; 43 changelog = "https://github.com/craigjmidwinter/total-connect-client/releases/tag/${version}"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ dotlambda ]; 46 }; 47}