Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / tencentcloud-sdk-python / default.nix
blob3818b62550e2f721098ea7c72c296abf130790fd
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   requests,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "tencentcloud-sdk-python";
13   version = "3.0.1137";
14   pyproject = true;
16   disabled = pythonOlder "3.9";
18   src = fetchFromGitHub {
19     owner = "TencentCloud";
20     repo = "tencentcloud-sdk-python";
21     rev = "refs/tags/${version}";
22     hash = "sha256-TKS3FziUuH1PJbdY+J/MVDT3YzzNFLXS0jDYRKiyoU8=";
23   };
25   build-system = [ setuptools ];
27   dependencies = [ requests ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "tencentcloud" ];
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   ];
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   };