From 1b6f324b9481af3c9c80e983323011bd30ab3ee0 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 18 Jan 2025 02:07:25 +0100 Subject: [PATCH 1/2] python313Packages.pyeiscp: init at 0.0.7 --- .../python-modules/pyeiscp/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/pyeiscp/default.nix diff --git a/pkgs/development/python-modules/pyeiscp/default.nix b/pkgs/development/python-modules/pyeiscp/default.nix new file mode 100644 index 000000000000..ea6138f3ed28 --- /dev/null +++ b/pkgs/development/python-modules/pyeiscp/default.nix @@ -0,0 +1,41 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + netifaces, +}: + +buildPythonPackage { + pname = "pyeiscp"; + version = "0.0.7"; + pyproject = true; + + src = fetchFromGitHub { + owner = "winterscar"; + repo = "python-eiscp"; + rev = "5f9ab5428ffa27a813dbfb00d392a0f76055137a"; # this is 0.0.7; tags are weird and from the original project this was forked from + hash = "sha256-jmOPX0PnrKOs9kQZxlEpvp6Ck0kYXfWE6TgtKsOAHfs="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + netifaces + ]; + + doCheck = false; # no useful tests + + pythonImportsCheck = [ + "pyeiscp" + ]; + + meta = { + description = "Python asyncio module to interface with Anthem AVM and MRX receivers"; + homepage = "https://github.com/winterscar/python-eiscp"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c955ab522198..5df091054d01 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11684,6 +11684,8 @@ self: super: with self; { pyeight = callPackage ../development/python-modules/pyeight { }; + pyeiscp = callPackage ../development/python-modules/pyeiscp { }; + pyelectra = callPackage ../development/python-modules/pyelectra { }; pyelftools = callPackage ../development/python-modules/pyelftools { }; From 57f28371b16609bc21cea24ea08d845752dfea94 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 18 Jan 2025 02:09:41 +0100 Subject: [PATCH 2/2] home-assistant: regenerate component-packages --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index e8e0f2c1946f..aef24273a9a2 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -3958,7 +3958,8 @@ ]; "onkyo" = ps: with ps; [ - ]; # missing inputs: pyeiscp + pyeiscp + ]; "onvif" = ps: with ps; [ ha-ffmpeg @@ -7043,6 +7044,7 @@ "oncue" "ondilo_ico" "onewire" + "onkyo" "onvif" "open_meteo" "openai_conversation"