Merge pull request #333287 from dotlambda/python3Packages.pyegps

home-assistant: support energenie_power_sockets component
This commit is contained in:
Robert Schütz
2024-08-09 04:17:29 -07:00
committed by GitHub
3 changed files with 46 additions and 1 deletions
@@ -0,0 +1,41 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,
pytestCheckHook,
pyusb,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pyegps";
version = "0.2.5";
pyproject = true;
src = fetchFromGitHub {
owner = "gnumpi";
repo = "pyegps";
rev = "refs/tags/v${version}";
hash = "sha256-iixk2sFa4KAayKFmQKtPjvoIYgxCMXnfkliKhyO2ba4=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [ pyusb ];
pythonImportsCheck = [ "pyegps" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
changelog = "https://github.com/gnumpi/pyEGPS/releases/tag/v${version}";
description = "Controlling Energenie Power Strips with python";
homepage = "https://github.com/gnumpi/pyegps";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
@@ -1096,7 +1096,8 @@
sqlalchemy
];
"energenie_power_sockets" = ps: with ps; [
]; # missing inputs: pyegps
pyegps
];
"energie_vanons" = ps: with ps; [
];
"energy" = ps: with ps; [
@@ -5421,6 +5422,7 @@
"emulated_hue"
"emulated_kasa"
"emulated_roku"
"energenie_power_sockets"
"energy"
"energyzero"
"enigma2"
+2
View File
@@ -11312,6 +11312,8 @@ self: super: with self; {
pyefergy = callPackage ../development/python-modules/pyefergy { };
pyegps = callPackage ../development/python-modules/pyegps { };
pyeight = callPackage ../development/python-modules/pyeight { };
pyelectra = callPackage ../development/python-modules/pyelectra { };