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