1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyjwt,
6 pythonOlder,
7 requests,
8 requests-toolbelt,
9 poetry-core,
10 poetry-dynamic-versioning,
11}:
12
13buildPythonPackage rec {
14 pname = "webexpythonsdk";
15 version = "2.0.5";
16 pyproject = true;
17
18 disabled = pythonOlder "3.12";
19
20 src = fetchFromGitHub {
21 owner = "WebexCommunity";
22 repo = "WebexPythonSDK";
23 tag = "v${version}";
24 hash = "sha256-iRhl/JCktS+6yJhvMZ6Vv7oOF5ZVrPQiI4Bstsub0bM=";
25 };
26
27 build-system = [
28 poetry-core
29 poetry-dynamic-versioning
30 ];
31
32 dependencies = [
33 pyjwt
34 requests
35 requests-toolbelt
36 ];
37
38 # Tests require a Webex Teams test domain
39 doCheck = false;
40
41 pythonImportsCheck = [ "webexpythonsdk" ];
42
43 meta = with lib; {
44 description = "Python module for Webex Teams APIs";
45 homepage = "https://github.com/WebexCommunity/WebexPythonSDK";
46 changelog = "https://github.com/WebexCommunity/WebexPythonSDK/releases/tag/${src.tag}";
47 license = licenses.mit;
48 maintainers = with maintainers; [ fab ];
49 };
50}