1{
2 lib,
3 aiolifx,
4 async-timeout,
5 buildPythonPackage,
6 fetchFromGitHub,
7 poetry-core,
8 pytest-asyncio,
9 pytest-cov-stub,
10 pytestCheckHook,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "aiolifx-themes";
16 version = "1.0.2";
17 pyproject = true;
18
19 disabled = pythonOlder "3.12";
20
21 src = fetchFromGitHub {
22 owner = "Djelibeybi";
23 repo = "aiolifx-themes";
24 tag = "v${version}";
25 hash = "sha256-uJQWKgmlNwuvIXfK6fFHngaSncgaDJJ36vkOLGWB/lY=";
26 };
27
28 build-system = [ poetry-core ];
29
30 dependencies = [ aiolifx ];
31
32 nativeCheckInputs = [
33 async-timeout
34 pytestCheckHook
35 pytest-asyncio
36 pytest-cov-stub
37 ];
38
39 pythonImportsCheck = [ "aiolifx_themes" ];
40
41 meta = with lib; {
42 description = "Color themes for LIFX lights running on aiolifx";
43 homepage = "https://github.com/Djelibeybi/aiolifx-themes";
44 changelog = "https://github.com/Djelibeybi/aiolifx-themes/releases/tag/${src.tag}";
45 license = licenses.mit;
46 maintainers = with maintainers; [ lukegb ];
47 };
48}