1{ lib
2, asyncio-dgram
3, buildPythonPackage
4, click
5, fetchFromGitHub
6, pytest-asyncio
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "pywizlight";
12 version = "0.4.7";
13
14 src = fetchFromGitHub {
15 owner = "sbidy";
16 repo = pname;
17 rev = version;
18 sha256 = "0zagdb90bxmf06fzpljhqgsgzg36zc1yhdibacfrx8bmnx3l657h";
19 };
20
21 propagatedBuildInputs = [
22 asyncio-dgram
23 click
24 ];
25
26 checkInputs = [
27 pytest-asyncio
28 pytestCheckHook
29 ];
30
31 # Tests requires network features (e. g., discovery testing)
32 disabledTests = [
33 "test_Bulb_Discovery"
34 "test_timeout"
35 "test_timeout_PilotBuilder"
36 ];
37
38 pythonImportsCheck = [ "pywizlight" ];
39
40 meta = with lib; {
41 description = "Python connector for WiZ light bulbs";
42 homepage = "https://github.com/sbidy/pywizlight";
43 changelog = "https://github.com/sbidy/pywizlight/releases/tag/v${version}";
44 license = with licenses; [ mit ];
45 maintainers = with maintainers; [ fab ];
46 };
47}