2022-05-15 02:43:14 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
2022-12-30 19:13:55 +00:00
|
|
|
, setuptools
|
2022-05-15 02:43:14 +00:00
|
|
|
, construct
|
|
|
|
, websockets
|
2023-02-22 23:57:06 +00:00
|
|
|
, pytest-asyncio
|
2022-05-15 02:43:14 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vallox-websocket-api";
|
2023-04-07 06:35:46 +00:00
|
|
|
version = "3.2.1";
|
2022-12-30 19:13:55 +00:00
|
|
|
format = "pyproject";
|
2022-05-15 02:43:14 +00:00
|
|
|
|
2023-02-22 23:57:06 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-05-15 02:43:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yozik04";
|
|
|
|
repo = "vallox_websocket_api";
|
2022-07-25 15:48:53 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-04-07 06:35:46 +00:00
|
|
|
hash = "sha256-KtjyTSD7osIdThq/Ota4oCyeseBHxqaYaL47wiVicsI=";
|
2022-05-15 02:43:14 +00:00
|
|
|
};
|
|
|
|
|
2022-12-30 19:13:55 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-05-15 02:43:14 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
construct
|
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2023-02-22 23:57:06 +00:00
|
|
|
pytest-asyncio
|
2022-05-15 02:43:14 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-02-22 23:57:06 +00:00
|
|
|
pythonImportsCheck = [ "vallox_websocket_api" ];
|
|
|
|
|
2022-05-15 02:43:14 +00:00
|
|
|
meta = {
|
|
|
|
description = "Async API for Vallox ventilation units";
|
|
|
|
homepage = "https://github.com/yozik04/vallox_websocket_api";
|
|
|
|
license = lib.licenses.lgpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|