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 = "2.1.2";
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-iyDRhTV5GSBTVK7ccJhUOrCpE9YuiI1vJM4XroCyIwE=";
26 };
27
28 nativeBuildInputs = [
29 poetry-core
30 ];
31
32 propagatedBuildInputs = [
33 awesomeversion
34 aiohttp
35 ];
36
37 __darwinAllowLocalNetworking = true;
38
39 nativeCheckInputs = [
40 aresponses
41 pytest-asyncio
42 pytestCheckHook
43 ];
44
45 pythonImportsCheck = [
46 "homewizard_energy"
47 ];
48
49 meta = with lib; {
50 description = "Library to communicate with HomeWizard Energy devices";
51 homepage = "https://github.com/DCSBL/python-homewizard-energy";
52 changelog = "https://github.com/DCSBL/python-homewizard-energy/releases/tag/v${version}";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ fab ];
55 };
56}