1{ lib
2, aiohttp
3, aresponses
4, awesomeversion
5, buildPythonPackage
6, fetchFromGitHub
7, poetry-core
8, protobuf
9, pytest-asyncio
10, pytestCheckHook
11, pythonOlder
12}:
13
14buildPythonPackage rec {
15 pname = "python-homewizard-energy";
16 version = "1.2.0";
17 format = "pyproject";
18
19 disabled = pythonOlder "3.9";
20
21 src = fetchFromGitHub {
22 owner = "DCSBL";
23 repo = pname;
24 rev = "refs/tags/v${version}";
25 hash = "sha256-tFIqlPeRMB0Q9XpA5zBBzjo0Dw2bhnYdJsXvl0A04vY=";
26 };
27
28 nativeBuildInputs = [
29 poetry-core
30 ];
31
32 propagatedBuildInputs = [
33 awesomeversion
34 aiohttp
35 ];
36
37 checkInputs = [
38 aresponses
39 pytest-asyncio
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [
44 "homewizard_energy"
45 ];
46
47 meta = with lib; {
48 description = "Library to communicate with HomeWizard Energy devices";
49 homepage = "https://github.com/DCSBL/python-homewizard-energy";
50 changelog = "https://github.com/DCSBL/python-homewizard-energy/releases/tag/v${version}";
51 license = licenses.asl20;
52 maintainers = with maintainers; [ fab ];
53 };
54}