diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 1ab6f4c1294f..2ffc8ff09f9f 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -15207,6 +15207,12 @@ name = "Alvar Penning"; keys = [ { fingerprint = "EB14 4E67 E57D 27E2 B5A4 CD8C F32A 4563 7FA2 5E31"; } ]; }; + oynqr = { + email = "pd-nixpkgs@3b.pm"; + github = "oynqr"; + githubId = 71629732; + name = "Philipp David"; + }; oyren = { email = "m.scheuren@oyra.eu"; github = "oyren"; diff --git a/pkgs/development/python-modules/pyecotrend-ista/default.nix b/pkgs/development/python-modules/pyecotrend-ista/default.nix new file mode 100644 index 000000000000..23edfcbcc00a --- /dev/null +++ b/pkgs/development/python-modules/pyecotrend-ista/default.nix @@ -0,0 +1,56 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + dataclasses-json, + requests, + pytestCheckHook, + pytest-xdist, + requests-mock, + syrupy, +}: + +buildPythonPackage rec { + pname = "pyecotrend-ista"; + version = "3.3.2"; + pyproject = true; + + disabled = pythonOlder "3.11"; + + src = fetchFromGitHub { + owner = "Ludy87"; + repo = "pyecotrend-ista"; + rev = "refs/tags/${version}"; + hash = "sha256-TZDHEaDc7UACIAHNX1fStJH74qLKf+krWbTDtemXahA="; + }; + + postPatch = '' + sed -i "/addopts =/d" pyproject.toml + ''; + + build-system = [ setuptools ]; + + dependencies = [ + dataclasses-json + requests + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-xdist + requests-mock + syrupy + ]; + + pythonImportsCheck = [ "pyecotrend_ista" ]; + + meta = { + changelog = "https://github.com/Ludy87/pyecotrend-ista/releases/tag/${version}"; + description = "Unofficial python library for the pyecotrend-ista API"; + homepage = "https://github.com/Ludy87/pyecotrend-ista"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ oynqr ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 9e2e5318cc6f..652557a295d6 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2152,7 +2152,8 @@ "iss" = ps: with ps; [ ]; # missing inputs: pyiss "ista_ecotrend" = ps: with ps; [ - ]; # missing inputs: pyecotrend-ista + pyecotrend-ista + ]; "isy994" = ps: with ps; [ pyisy ]; @@ -5565,6 +5566,7 @@ "ipp" "iqvia" "isal" + "ista_ecotrend" "isy994" "izone" "jellyfin" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 48f095047186..955f1e05eba3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11139,6 +11139,8 @@ self: super: with self; { pyeconet = callPackage ../development/python-modules/pyeconet { }; + pyecotrend-ista = callPackage ../development/python-modules/pyecotrend-ista { }; + pyecowitt = callPackage ../development/python-modules/pyecowitt { }; pyedimax = callPackage ../development/python-modules/pyedimax { };