1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromBitbucket
5, freezegun
6, netifaces
7, pytest-aiohttp
8, pytestCheckHook
9, pythonOlder
10, urllib3
11}:
12
13buildPythonPackage rec {
14 pname = "pydaikin";
15 version = "2.6.0";
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromBitbucket {
19 owner = "mustang51";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "sha256-Fk6zMWgvhKp+7BMDGw89Akb4fgK6+xi+AyvEY3pdTQQ=";
23 };
24
25 propagatedBuildInputs = [
26 aiohttp
27 netifaces
28 urllib3
29 ];
30
31 # while they have tests, they do not run them in their CI and they fail as of 2.6.0
32 # AttributeError: 'DaikinBRP069' object has no attribute 'last_hour_cool_energy_consumption'
33 doCheck = false;
34
35 checkInputs = [
36 freezegun
37 pytest-aiohttp
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "pydaikin" ];
42
43 meta = with lib; {
44 description = "Python Daikin HVAC appliances interface";
45 homepage = "https://bitbucket.org/mustang51/pydaikin";
46 license = with licenses; [ gpl3Only ];
47 maintainers = with maintainers; [ fab ];
48 };
49}