home-assistant: support vegehub component (#425966)
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
{
|
||||
aiohttp,
|
||||
aioresponses,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
poetry-core,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vegehub";
|
||||
version = "0.1.24";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Thulrus";
|
||||
repo = "VegeHubPyPiLib";
|
||||
tag = "V${version}";
|
||||
hash = "sha256-W/5kvertNC7w2IS/N5k06cDyNFgel2s4/znR+Lz5RJU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
rm -r dist
|
||||
'';
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "vegehub" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
aioresponses
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Basic package for simplifying interactions with the Vegetronix VegeHub";
|
||||
homepage = "https://github.com/Thulrus/VegeHubPyPiLib";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
@@ -6296,7 +6296,8 @@
|
||||
];
|
||||
"vegehub" =
|
||||
ps: with ps; [
|
||||
]; # missing inputs: vegehub
|
||||
vegehub
|
||||
];
|
||||
"velbus" =
|
||||
ps: with ps; [
|
||||
aiousbwatcher
|
||||
@@ -7688,6 +7689,7 @@
|
||||
"vacuum"
|
||||
"vallox"
|
||||
"valve"
|
||||
"vegehub"
|
||||
"velbus"
|
||||
"velux"
|
||||
"venstar"
|
||||
|
||||
@@ -19209,6 +19209,8 @@ self: super: with self; {
|
||||
|
||||
vega-datasets = callPackage ../development/python-modules/vega-datasets { };
|
||||
|
||||
vegehub = callPackage ../development/python-modules/vegehub { };
|
||||
|
||||
vehicle = callPackage ../development/python-modules/vehicle { };
|
||||
|
||||
velbus-aio = callPackage ../development/python-modules/velbus-aio { };
|
||||
|
||||
Reference in New Issue
Block a user