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