1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 packaging,
7 requests,
8}:
9
10buildPythonPackage rec {
11 pname = "rocketchat-api";
12 version = "1.34.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "jadolg";
17 repo = "rocketchat_API";
18 tag = version;
19 hash = "sha256-ny/VybQDZFB4ZxHEnDP2IeYsHjgO9pAk4r0vpX+hWVE=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 packaging
26 requests
27 ];
28
29 pythonImportsCheck = [
30 "rocketchat_API"
31 "rocketchat_API.APIExceptions"
32 "rocketchat_API.APISections"
33 ];
34
35 # requires running a Rocket.Chat server
36 doCheck = false;
37
38 meta = {
39 description = "Python API wrapper for Rocket.Chat";
40 homepage = "https://github.com/jadolg/rocketchat_API";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ dotlambda ];
43 };
44}