1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 requests,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "tencentcloud-sdk-python";
13 version = "3.0.1152";
14 pyproject = true;
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchFromGitHub {
19 owner = "TencentCloud";
20 repo = "tencentcloud-sdk-python";
21 rev = "refs/tags/${version}";
22 hash = "sha256-pmmZnTvZwpVD/ECjKzA6LQ2c7McYznJMlKabcYwh3LY=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ requests ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "tencentcloud" ];
32
33 pytestFlagsArray = [
34 # Other tests require credentials
35 "tests/unit/test_deserialize_warning.py"
36 "tests/unit/test_import.py"
37 "tests/unit/test_serialization.py"
38 ];
39
40 meta = with lib; {
41 description = "Tencent Cloud API 3.0 SDK for Python";
42 homepage = "https://github.com/TencentCloud/tencentcloud-sdk-python";
43 changelog = "https://github.com/TencentCloud/tencentcloud-sdk-python/blob/${version}/CHANGELOG.md";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ fab ];
46 };
47}