1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 poetry-core,
7 pytest-aiohttp,
8 pytest-asyncio_0,
9 pytest-cov-stub,
10 pytest-timeout,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "hyperion-py";
16 version = "0.7.6";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "dermotduffy";
21 repo = "hyperion-py";
22 tag = "v${version}";
23 hash = "sha256-14taFSrtmgTBiie0eY2fSRkZndJSZ4GJNRx3MonrTzs=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [ aiohttp ];
29
30 nativeCheckInputs = [
31 pytest-asyncio_0
32 (pytest-aiohttp.override { pytest-asyncio = pytest-asyncio_0; })
33 pytest-cov-stub
34 pytest-timeout
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "hyperion" ];
39
40 meta = with lib; {
41 description = "Python package for Hyperion Ambient Lighting";
42 homepage = "https://github.com/dermotduffy/hyperion-py";
43 changelog = "https://github.com/dermotduffy/hyperion-py/releases/tag/${src.tag}";
44 license = licenses.mit;
45 maintainers = with maintainers; [ fab ];
46 };
47}