depot/third_party/nixpkgs/pkgs/development/python-modules/vallox-websocket-api/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

42 lines
807 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, construct
, websockets
, asynctest
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "vallox-websocket-api";
version = "2.12.0";
disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchFromGitHub {
owner = "yozik04";
repo = "vallox_websocket_api";
rev = "refs/tags/${version}";
hash = "sha256-Ibp+oAd6q8Vu9V+TaLzlPbWIDheFUjCyW83Hg4Ztw20=";
};
propagatedBuildInputs = [
construct
websockets
];
checkInputs = [
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 ];
};
}