1{ lib
2, aiohttp
3, asyncio-throttle
4, awesomeversion
5, buildPythonPackage
6, fetchFromGitHub
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "aiohue";
13 version = "4.6.2";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "home-assistant-libs";
20 repo = pname;
21 rev = "refs/tags/${version}";
22 hash = "sha256-DzslGfKwsXXWWhbTb0apJCsnNdnUe7AbvrRT8ZnPbVU=";
23 };
24
25 propagatedBuildInputs = [
26 awesomeversion
27 aiohttp
28 asyncio-throttle
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "aiohue"
37 "aiohue.discovery"
38 ];
39
40 disabledTestPaths = [
41 # File are prefixed with test_
42 "examples/"
43 ];
44
45 meta = with lib; {
46 description = "Python package to talk to Philips Hue";
47 homepage = "https://github.com/home-assistant-libs/aiohue";
48 changelog = "https://github.com/home-assistant-libs/aiohue/releases/tag/${version}";
49 license = with licenses; [ asl20 ];
50 maintainers = with maintainers; [ fab ];
51 };
52}