a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
46 lines
868 B
Nix
46 lines
868 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, construct
|
|
, websockets
|
|
, asynctest
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vallox-websocket-api";
|
|
version = "3.0.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yozik04";
|
|
repo = "vallox_websocket_api";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-iy5ipW7ldvLWhfxgPlWcsFeKrAXqtyypveAX74u8zmo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
construct
|
|
websockets
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
asynctest
|
|
pytestCheckHook
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|