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