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