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