Skip to content

Commit

Permalink
Merge pull request #326492 from oynqr/python3Packages.pyecotrend-ista
Browse files Browse the repository at this point in the history
home-assistant: support ista_ecotrend component
  • Loading branch information
mweinelt authored Jul 14, 2024
2 parents ca5fd99 + 80dd59f commit 4dcf1da
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 1 deletion.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
56 changes: 56 additions & 0 deletions pkgs/development/python-modules/pyecotrend-ista/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
4 changes: 3 additions & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
Expand Down Expand Up @@ -5565,6 +5566,7 @@
"ipp"
"iqvia"
"isal"
"ista_ecotrend"
"isy994"
"izone"
"jellyfin"
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 4dcf1da

Please sign in to comment.