Merge pull request #174351 from dotlambda/greeneye-monitor-init

home-assistant: support greeneye_monitor component
This commit is contained in:
Martin Weinelt 2022-05-25 09:45:22 +02:00 committed by GitHub
commit 92ef35201b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 91 additions and 1 deletions

View file

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiohttp
, siobrultech-protocols
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "greeneye-monitor";
version = "3.0.3";
disabled = pythonOlder "3.5";
format = "setuptools";
src = fetchFromGitHub {
owner = "jkeljo";
repo = "greeneye-monitor";
rev = "v${version}";
hash = "sha256-weZTOVFBlB6TxFs8pLWfyB7WD/bn3ljBjX2tVi1Zc/I=";
};
propagatedBuildInputs = [
aiohttp
siobrultech-protocols
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "greeneye.monitor" ];
meta = {
description = "Receive data packets from GreenEye Monitor";
homepage = "https://github.com/jkeljo/greeneye-monitor";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View file

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pyyaml
}:
buildPythonPackage rec {
pname = "siobrultech-protocols";
version = "0.5.0";
disabled = pythonOlder "3.8";
format = "setuptools";
src = fetchFromGitHub {
owner = "sdwilsh";
repo = "siobrultech-protocols";
rev = "v${version}";
hash = "sha256-bpWOfdwNHJXfKcANSu69YgXsxsfUhaH63/fXF6H+MNg=";
};
checkInputs = [
pytest-asyncio
pytestCheckHook
pyyaml
];
pythonImportsCheck = [
"siobrultech_protocols.gem.api"
"siobrultech_protocols.gem.protocol"
];
meta = {
description = "A Sans-I/O Python client library for Brultech Devices";
homepage = "https://github.com/sdwilsh/siobrultech-protocols";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View file

@ -1026,7 +1026,8 @@
greeclimate
];
"greeneye_monitor" = ps: with ps; [
]; # missing inputs: greeneye_monitor
greeneye-monitor
];
"greenwave" = ps: with ps; [
]; # missing inputs: greenwavereality
"group" = ps: with ps; [
@ -3371,6 +3372,7 @@
"gpslogger"
"graphite"
"gree"
"greeneye_monitor"
"group"
"growatt_server"
"guardian"

View file

@ -3700,6 +3700,8 @@ in {
green = callPackage ../development/python-modules/green { };
greeneye-monitor = callPackage ../development/python-modules/greeneye-monitor { };
greenlet = callPackage ../development/python-modules/greenlet { };
grequests = callPackage ../development/python-modules/grequests { };
@ -9559,6 +9561,8 @@ in {
signify = callPackage ../development/python-modules/signify { };
siobrultech-protocols = callPackage ../development/python-modules/siobrultech-protocols { };
siosocks = callPackage ../development/python-modules/siosocks { };
sip = callPackage ../development/python-modules/sip { };