From 6104a9ef2499479a2b3b7798c54c649600045a1d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 21 Aug 2023 23:16:24 +0200 Subject: [PATCH 1/2] python311Packages.pyduotecno: init at 2023.8.3 Module to interact with Duotecno IP interfaces https://github.com/Cereal2nd/pyDuotecno --- .../python-modules/pyduotecno/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/pyduotecno/default.nix diff --git a/pkgs/development/python-modules/pyduotecno/default.nix b/pkgs/development/python-modules/pyduotecno/default.nix new file mode 100644 index 000000000000..a8d7dbb16c5d --- /dev/null +++ b/pkgs/development/python-modules/pyduotecno/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, setuptools +, wheel +}: + +buildPythonPackage rec { + pname = "pyduotecno"; + version = "2023.8.3"; + format = "pyproject"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "Cereal2nd"; + repo = "pyDuotecno"; + rev = "refs/tags/${version}"; + hash = "sha256-zqaW6iQe982BgxaxeeRFTJ/a2nySGoSW4sxKmNxbKQc="; + }; + + nativeBuildInputs = [ + setuptools + wheel + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "duotecno" + ]; + + meta = with lib; { + description = "Module to interact with Duotecno IP interfaces"; + homepage = "https://github.com/Cereal2nd/pyDuotecno"; + changelog = "https://github.com/Cereal2nd/pyDuotecno/releases/tag/${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9e5bd99704fa..a7536142d134 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8903,6 +8903,8 @@ self: super: with self; { pyduke-energy = callPackage ../development/python-modules/pyduke-energy { }; + pyduotecno = callPackage ../development/python-modules/pyduotecno { }; + pydy = callPackage ../development/python-modules/pydy { }; pydyf = callPackage ../development/python-modules/pydyf { }; From c66dba335b44cdae8590f51ebae8acaae3220753 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 21 Aug 2023 23:17:43 +0200 Subject: [PATCH 2/2] home-assistant: update 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 13637663d6ce..2c36af12c383 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -915,7 +915,8 @@ pdunehd ]; "duotecno" = ps: with ps; [ - ]; # missing inputs: pyduotecno + pyduotecno + ]; "dwd_weather_warnings" = ps: with ps; [ dwdwfsapi ]; @@ -4967,6 +4968,7 @@ "dte_energy_bridge" "duckdns" "dunehd" + "duotecno" "dwd_weather_warnings" "eafm" "easyenergy"