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.4.1";
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromBitbucket {
19 owner = "mustang51";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "1624adp4lqd1n9flnf0wqrcibml2nd19ga3fmxzjg4x5z6767bs3";
23 };
24
25 propagatedBuildInputs = [
26 aiohttp
27 netifaces
28 urllib3
29 ];
30
31 checkInputs = [
32 freezegun
33 pytest-aiohttp
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "pydaikin" ];
38
39 meta = with lib; {
40 description = "Python Daikin HVAC appliances interface";
41 homepage = "https://bitbucket.org/mustang51/pydaikin";
42 license = with licenses; [ gpl3Only ];
43 maintainers = with maintainers; [ fab ];
44 };
45}