2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
2024-01-02 11:29:13 +00:00
|
|
|
, aiohttp
|
2022-05-18 14:49:53 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2024-01-13 08:15:51 +00:00
|
|
|
, pythonRelaxDepsHook
|
2022-05-18 14:49:53 +00:00
|
|
|
, fetchFromGitHub
|
2023-01-11 07:51:40 +00:00
|
|
|
, setuptools
|
2022-05-18 14:49:53 +00:00
|
|
|
, construct
|
|
|
|
, websockets
|
2023-03-04 12:14:45 +00:00
|
|
|
, pytest-asyncio
|
2022-05-18 14:49:53 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vallox-websocket-api";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.2.0";
|
|
|
|
pyproject = true;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yozik04";
|
|
|
|
repo = "vallox_websocket_api";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-qq58ZSrKVQ00rtXMe4L9xfz0QB+UpjGOhPo1srPYIY4=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2024-01-13 08:15:51 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"websockets"
|
2023-01-11 07:51:40 +00:00
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
aiohttp
|
2022-05-18 14:49:53 +00:00
|
|
|
construct
|
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-03-04 12:14:45 +00:00
|
|
|
pytest-asyncio
|
2022-05-18 14:49:53 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
pythonImportsCheck = [ "vallox_websocket_api" ];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
meta = {
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/yozik04/vallox_websocket_api/releases/tag/${version}";
|
2022-05-18 14:49:53 +00:00
|
|
|
description = "Async API for Vallox ventilation units";
|
|
|
|
homepage = "https://github.com/yozik04/vallox_websocket_api";
|
|
|
|
license = lib.licenses.lgpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|