Unverified Commit 01f00069 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #327179 from pyrox0/pythonpackages/apsystems-ez1-init

python3Packages.apsystems-ez1: init at 1.3.3; home-assistant: support apsystems component
parents c74ffd40 7d6b2964
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  aiohttp,
  poetry-core,
  pytest-asyncio,
}:

buildPythonPackage rec {
  pname = "apsystems-ez1";
  version = "1.3.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "SonnenladenGmbH";
    repo = "APsystems-EZ1-API";
    rev = "refs/tags/${version}";
    hash = "sha256-V6GcTSupjhjGEOsO+C9pImYJRnvdDbttW3Zh0PDYt5I=";
  };

  build-system = [ poetry-core ];

  dependencies = [ aiohttp ];

  pythonImportsCheck = [ "APsystemsEZ1" ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  meta = {
    changelog = "https://github.com/SonnenladenGmbH/APsystems-EZ1-API/releases/tag/${version}";
    description = "Streamlined interface for interacting with the local API of APsystems EZ1 Microinverters.";
    homepage = "https://github.com/SonnenladenGmbH/APsystems-EZ1-API";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ pyrox0 ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -216,7 +216,8 @@
      geopy
    ];
    "apsystems" = ps: with ps; [
    ]; # missing inputs: apsystems-ez1
      apsystems-ez1
    ];
    "aquacell" = ps: with ps; [
      fnv-hash-fast
      ifaddr
@@ -5269,6 +5270,7 @@
    "apprise"
    "aprilaire"
    "aprs"
    "apsystems"
    "aranet"
    "arcam_fmj"
    "aseko_pool_live"
+2 −0
Original line number Diff line number Diff line
@@ -701,6 +701,8 @@ self: super: with self; {
  apscheduler = callPackage ../development/python-modules/apscheduler { };
  apsystems-ez1 = callPackage ../development/python-modules/apsystems-ez1 { };
  apsw = callPackage ../development/python-modules/apsw { };
  apycula = callPackage ../development/python-modules/apycula { };