Merge pull request #326492 from oynqr/python3Packages.pyecotrend-ista
home-assistant: support ista_ecotrend component
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user