2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aresponses,
|
|
|
|
async-modbus,
|
|
|
|
async-timeout,
|
|
|
|
asyncclick,
|
|
|
|
buildPythonPackage,
|
|
|
|
construct,
|
|
|
|
exceptiongroup,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pandas,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-slugify,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
tenacity,
|
2022-11-21 17:40:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nibe";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2.10.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yozik04";
|
2023-11-16 04:20:00 +00:00
|
|
|
repo = "nibe";
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-g43lXQzsQ1Serq6oIMcnAYwUppdEVcBkYGEoy3NIwqo=";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
2022-11-21 17:40:18 +00:00
|
|
|
async-modbus
|
|
|
|
async-timeout
|
|
|
|
construct
|
2022-12-28 21:21:41 +00:00
|
|
|
exceptiongroup
|
2022-11-21 17:40:18 +00:00
|
|
|
tenacity
|
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
convert = [
|
|
|
|
pandas
|
|
|
|
python-slugify
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
cli = [ asyncclick ];
|
2024-01-13 08:15:51 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-21 17:40:18 +00:00
|
|
|
aresponses
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "nibe" ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for the communication with Nibe heatpumps";
|
|
|
|
homepage = "https://github.com/yozik04/nibe";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/yozik04/nibe/releases/tag/${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-11-21 17:40:18 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|