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