1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pytest-asyncio,
8 pytestCheckHook,
9 pythonOlder,
10 poetry-core,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "incomfort-client";
16 version = "0.6.9";
17 pyproject = true;
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "zxdavb";
23 repo = "incomfort-client";
24 tag = "v${version}";
25 hash = "sha256-hZoEQhlCJ1qXbet5elNOLudPEN15MDtDcwbGhm/auTc=";
26 };
27
28 build-system = [ poetry-core ];
29
30 dependencies = [ aiohttp ];
31
32 nativeCheckInputs = [
33 aioresponses
34 pytest-asyncio
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "incomfortclient" ];
39
40 meta = with lib; {
41 description = "Python module to poll Intergas boilers via a Lan2RF gateway";
42 homepage = "https://github.com/zxdavb/incomfort-client";
43 changelog = "https://github.com/jbouwh/incomfort-client/releases/tag/${src.tag}";
44 license = with licenses; [ mit ];
45 maintainers = with maintainers; [ fab ];
46 };
47}