2022-11-21 17:40:18 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aresponses
|
|
|
|
, async-modbus
|
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, construct
|
2022-12-28 21:21:41 +00:00
|
|
|
, exceptiongroup
|
2022-11-21 17:40:18 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
, tenacity
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nibe";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.5.0";
|
|
|
|
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}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-PCfodp8gyjOUgb4FthMlbanbEtJuc6axM8DkQJ/ykLg=";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
async-modbus
|
|
|
|
async-timeout
|
|
|
|
construct
|
2022-12-28 21:21:41 +00:00
|
|
|
exceptiongroup
|
2022-11-21 17:40:18 +00:00
|
|
|
tenacity
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-21 17:40:18 +00:00
|
|
|
aresponses
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"nibe"
|
|
|
|
];
|
|
|
|
|
|
|
|
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}";
|
2022-11-21 17:40:18 +00:00
|
|
|
license = with licenses; [ gpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|