linuxPackages_latest.broadcom_sta: add patch to compile on Kernel 6.12 (#359484)
[NixPkgs.git] / pkgs / development / python-modules / tencentcloud-sdk-python / default.nix
blob2f236f7762c92f6d66a86d0ffb803e6df31e5b8d
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.1275";
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-Etm3SESxpQWvI3nsrch4UeAchHnJufOFdAXm+2H3Xa4=";
23   };
25   build-system = [ setuptools ];
27   dependencies = [ requests ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "tencentcloud" ];
33   pytestFlagsArray = [ "tests/unit/" ];
35   meta = with lib; {
36     description = "Tencent Cloud API 3.0 SDK for Python";
37     homepage = "https://github.com/TencentCloud/tencentcloud-sdk-python";
38     changelog = "https://github.com/TencentCloud/tencentcloud-sdk-python/blob/${version}/CHANGELOG.md";
39     license = licenses.asl20;
40     maintainers = with maintainers; [ fab ];
41   };