1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 colorlog,
6 fetchFromGitHub,
7 pint,
8 poetry-core,
9 pytest-cov-stub,
10 pytestCheckHook,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "aiocomelit";
16 version = "1.1.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.12";
20
21 src = fetchFromGitHub {
22 owner = "chemelli74";
23 repo = "aiocomelit";
24 tag = "v${version}";
25 hash = "sha256-UTw20bDT2TBsnSy98Rl503C05W5e+8grVoD4bg4laPc=";
26 };
27
28 build-system = [ poetry-core ];
29
30 dependencies = [
31 aiohttp
32 colorlog
33 pint
34 ];
35
36 nativeCheckInputs = [
37 pytest-cov-stub
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "aiocomelit" ];
42
43 meta = with lib; {
44 description = "Library to control Comelit Simplehome";
45 homepage = "https://github.com/chemelli74/aiocomelit";
46 changelog = "https://github.com/chemelli74/aiocomelit/blob/${src.tag}/CHANGELOG.md";
47 license = licenses.asl20;
48 maintainers = with maintainers; [ fab ];
49 };
50}