1{
2 lib,
3 bleak,
4 buildPythonPackage,
5 click,
6 fetchFromGitHub,
7 pytest-asyncio,
8 pytest-mock,
9 pytestCheckHook,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "pykulersky";
15 version = "0.5.8";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = "emlove";
22 repo = "pykulersky";
23 rev = version;
24 hash = "sha256-BaGcsHlQpuEnUn8OgSUsJi2q89vFl7vpkinviKnUZJk=";
25 };
26
27 propagatedBuildInputs = [
28 bleak
29 click
30 ];
31
32 nativeCheckInputs = [
33 pytest-asyncio
34 pytest-mock
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "pykulersky" ];
39
40 meta = with lib; {
41 description = "Python module to control Brightech Kuler Sky Bluetooth LED devices";
42 mainProgram = "pykulersky";
43 homepage = "https://github.com/emlove/pykulersky";
44 license = with licenses; [ asl20 ];
45 maintainers = with maintainers; [ fab ];
46 };
47}