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