2021-03-15 08:37:03 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2023-02-16 17:41:37 +00:00
|
|
|
, aioresponses
|
2021-03-15 08:37:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-02-16 17:41:37 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2021-03-15 08:37:03 +00:00
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "incomfort-client";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "0.5.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zxdavb";
|
|
|
|
repo = pname;
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-kdPue3IfF85O+0dgvX+dN6S4WoQmjxdCfwfv83SnO8E=";
|
2021-03-15 08:37:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aioresponses
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"incomfortclient"
|
|
|
|
];
|
2021-03-15 08:37:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to poll Intergas boilers via a Lan2RF gateway";
|
|
|
|
homepage = "https://github.com/zxdavb/incomfort-client";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|