Merge pull request #128294 from dotlambda/total-connect-client-init

This commit is contained in:
Martin Weinelt 2021-06-27 14:13:51 +02:00 committed by GitHub
commit 630de311e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 1 deletions

View file

@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, zeep
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "total-connect-client";
version = "0.58";
src = fetchFromGitHub {
owner = "craigjmidwinter";
repo = "total-connect-client";
rev = version;
sha256 = "1dqmgvgvwjh235wghygan2jnfvmn9vz789in2as3asig9cifix9z";
};
propagatedBuildInputs = [
zeep
];
checkInputs = [
pytestCheckHook
];
preCheck = ''
export PYTHONPATH="total_connect_client:$PYTHONPATH"
'';
pythonImportsCheck = [ "total_connect_client" ];
meta = with lib; {
description = "Interact with Total Connect 2 alarm systems";
homepage = "https://github.com/craigjmidwinter/total-connect-client";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -873,7 +873,7 @@
"tomato" = ps: with ps; [ ];
"toon" = ps: with ps; [ aiohttp-cors hass-nabucasa toonapi ];
"torque" = ps: with ps; [ aiohttp-cors ];
"totalconnect" = ps: with ps; [ ]; # missing inputs: total_connect_client
"totalconnect" = ps: with ps; [ total-connect-client ];
"touchline" = ps: with ps; [ ]; # missing inputs: pytouchline
"tplink" = ps: with ps; [ pyhs100 ];
"tplink_lte" = ps: with ps; [ ]; # missing inputs: tp-connected

View file

@ -701,6 +701,7 @@ in with py.pkgs; buildPythonApplication rec {
"tod"
"tomato"
"toon"
"totalconnect"
"tplink"
"trace"
"tradfri"

View file

@ -8617,6 +8617,8 @@ in {
# Used by streamlit, graphite_beacon, 2021-01-29
tornado_5 = callPackage ../development/python-modules/tornado/5.nix { };
total-connect-client = callPackage ../development/python-modules/total-connect-client { };
towncrier = callPackage ../development/python-modules/towncrier {
inherit (pkgs) git;
};