1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 aiohttp,
7 poetry-core,
8 pytest-asyncio,
9}:
10
11buildPythonPackage rec {
12 pname = "apsystems-ez1";
13 version = "2.6.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "SonnenladenGmbH";
18 repo = "APsystems-EZ1-API";
19 tag = version;
20 hash = "sha256-/dseMzi92qlual+L6v6Cl5Xd4U9c7SPdclmTSQTVor0=";
21 };
22
23 build-system = [ poetry-core ];
24
25 dependencies = [ aiohttp ];
26
27 pythonImportsCheck = [ "APsystemsEZ1" ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 pytest-asyncio
32 ];
33
34 meta = {
35 changelog = "https://github.com/SonnenladenGmbH/APsystems-EZ1-API/releases/tag/${src.tag}";
36 description = "Streamlined interface for interacting with the local API of APsystems EZ1 Microinverters.";
37 homepage = "https://github.com/SonnenladenGmbH/APsystems-EZ1-API";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ pyrox0 ];
40 };
41}