1{
2 lib,
3 aioconsole,
4 aiohttp,
5 async-timeout,
6 buildPythonPackage,
7 fetchFromGitHub,
8 pytest-asyncio,
9 pytest-mock,
10 pytestCheckHook,
11 pythonOlder,
12 setuptools,
13 websockets,
14}:
15
16buildPythonPackage rec {
17 pname = "whirlpool-sixth-sense";
18 version = "0.18.8";
19 pyproject = true;
20
21 disabled = pythonOlder "3.6";
22
23 src = fetchFromGitHub {
24 owner = "abmantis";
25 repo = "whirlpool-sixth-sense";
26 rev = "refs/tags/${version}";
27 hash = "sha256-Nmjw6b1k5M4H23tJxUPPJ3JIkuK5ylqEeFp18cGz9pA=";
28 };
29
30 build-system = [ setuptools ];
31
32 dependencies = [
33 aioconsole
34 aiohttp
35 async-timeout
36 websockets
37 ];
38
39 nativeCheckInputs = [
40 pytest-asyncio
41 pytest-mock
42 pytestCheckHook
43 ];
44
45 # https://github.com/abmantis/whirlpool-sixth-sense/issues/15
46 doCheck = false;
47
48 pythonImportsCheck = [ "whirlpool" ];
49
50 meta = with lib; {
51 description = "Python library for Whirlpool 6th Sense appliances";
52 homepage = "https://github.com/abmantis/whirlpool-sixth-sense/";
53 license = with licenses; [ mit ];
54 maintainers = with maintainers; [ fab ];
55 };
56}