1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 requests,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "tencentcloud-sdk-python";
12 version = "3.0.1470";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "TencentCloud";
17 repo = "tencentcloud-sdk-python";
18 tag = version;
19 hash = "sha256-j6DD4JZ2hzKZM1hr0jiwK9bqWgKhAsWi7vFG/CYTRGg=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ requests ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "tencentcloud" ];
29
30 enabledTestPaths = [ "tests/unit/" ];
31
32 disabledTests = [
33 # KeyError
34 "test_sts_credential_with_default_endpoint"
35 "test_sts_credential_with_set_endpoint"
36 ];
37
38 meta = with lib; {
39 description = "Tencent Cloud API 3.0 SDK for Python";
40 homepage = "https://github.com/TencentCloud/tencentcloud-sdk-python";
41 changelog = "https://github.com/TencentCloud/tencentcloud-sdk-python/blob/${version}/CHANGELOG.md";
42 license = licenses.asl20;
43 maintainers = with maintainers; [ fab ];
44 };
45}