1{
2 lib,
3 bleak,
4 buildPythonPackage,
5 click,
6 fetchFromGitHub,
7 pytest-asyncio,
8 pytest-mock,
9 pytestCheckHook,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "pykulersky";
15 version = "0.6.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "emlove";
20 repo = "pykulersky";
21 rev = version;
22 hash = "sha256-YHGEDAsbQN3sYu7mdVUbb3xX7FMnR0xAhXkvf7Ok7qs=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
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}