Merge pull request #332686 from dotlambda/python3Packages.rocketchat-api

home-assistant: support rocketchat component
This commit is contained in:
Martin Weinelt 2024-08-06 12:53:50 +02:00 committed by GitHub
commit 9d18a2f66b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 48 additions and 1 deletions

View File

@ -0,0 +1,44 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
packaging,
requests,
}:
buildPythonPackage rec {
pname = "rocketchat-api";
version = "1.32.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jadolg";
repo = "rocketchat_API";
rev = "refs/tags/${version}";
hash = "sha256-mzcesoBU8sOznAgvi2u8NsUheyLXPZuyIkGghbc556c=";
};
build-system = [ setuptools ];
dependencies = [
packaging
requests
];
pythonImportsCheck = [
"rocketchat_API"
"rocketchat_API.APIExceptions"
"rocketchat_API.APISections"
];
# requires running a Rocket.Chat server
doCheck = false;
meta = {
description = "Python API wrapper for Rocket.Chat";
homepage = "https://github.com/jadolg/rocketchat_API";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -3758,7 +3758,8 @@
vacuum-map-parser-roborock
];
"rocketchat" = ps: with ps; [
]; # missing inputs: rocketchat-API
rocketchat-api
];
"roku" = ps: with ps; [
rokuecp
];

View File

@ -13764,6 +13764,8 @@ self: super: with self; {
rocket-errbot = callPackage ../development/python-modules/rocket-errbot { };
rocketchat-api = callPackage ../development/python-modules/rocketchat-api { };
roku = callPackage ../development/python-modules/roku { };
rokuecp = callPackage ../development/python-modules/rokuecp { };