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.11.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromBitbucket {
21 owner = "mustang51";
22 repo = pname;
23 rev = "v${version}";
24 hash = "sha256-IBrd4PH8EzVVVFQtJdJ8bTMLEzfh7MYMe79yuCrhmww=";
25 };
26
27 propagatedBuildInputs = [
28 aiohttp
29 netifaces
30 urllib3
31 ];
32
33 doCheck = false; # tests fail and upstream does not seem to run them either
34
35 nativeCheckInputs = [
36 freezegun
37 pytest-aiohttp
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [
42 "pydaikin"
43 ];
44
45 meta = with lib; {
46 description = "Python Daikin HVAC appliances interface";
47 homepage = "https://bitbucket.org/mustang51/pydaikin";
48 license = with licenses; [ gpl3Only ];
49 maintainers = with maintainers; [ fab ];
50 };
51}