2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aioresponses,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2024-06-20 14:57:18 +00:00
|
|
|
setuptools,
|
2021-03-15 08:37:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "incomfort-client";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.6.2";
|
|
|
|
pyproject = true;
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zxdavb";
|
2024-06-20 14:57:18 +00:00
|
|
|
repo = "incomfort-client";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-2hTH0haG8ja0Hgomj7kbbHUij9w3jbhHeKeMCtsgeEE=";
|
2021-03-15 08:37:03 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
build-system = [ setuptools ];
|
2021-03-15 08:37:03 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
dependencies = [ aiohttp ];
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
nativeCheckInputs = [
|
2023-02-16 17:41:37 +00:00
|
|
|
aioresponses
|
|
|
|
pytest-asyncio
|
2024-06-20 14:57:18 +00:00
|
|
|
pytestCheckHook
|
2023-02-16 17:41:37 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
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";
|
2024-06-20 14:57:18 +00:00
|
|
|
changelog = "https://github.com/jbouwh/incomfort-client/releases/tag/v${version}";
|
2021-03-15 08:37:03 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|