2024-04-06 12:29:46 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
2024-02-24 00:06:45 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tencentcloud-sdk-python";
|
2025-04-29 09:58:08 +02:00
|
|
|
version = "3.0.1367";
|
2024-02-24 00:06:45 +01:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TencentCloud";
|
|
|
|
repo = "tencentcloud-sdk-python";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = version;
|
2025-04-29 09:58:08 +02:00
|
|
|
hash = "sha256-DY//LYVzL1gCqp++yk6R1O9HBa8Df8x3q980bDTvGWA=";
|
2024-02-24 00:06:45 +01:00
|
|
|
};
|
|
|
|
|
2024-04-06 12:29:46 +02:00
|
|
|
build-system = [ setuptools ];
|
2024-02-24 00:06:45 +01:00
|
|
|
|
2024-04-06 12:29:46 +02:00
|
|
|
dependencies = [ requests ];
|
2024-02-24 00:06:45 +01:00
|
|
|
|
2024-04-06 12:29:46 +02:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-02-24 00:06:45 +01:00
|
|
|
|
2024-04-06 12:29:46 +02:00
|
|
|
pythonImportsCheck = [ "tencentcloud" ];
|
2024-02-24 00:06:45 +01:00
|
|
|
|
2024-08-28 12:03:31 +02:00
|
|
|
pytestFlagsArray = [ "tests/unit/" ];
|
2024-02-24 00:06:45 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tencent Cloud API 3.0 SDK for Python";
|
|
|
|
homepage = "https://github.com/TencentCloud/tencentcloud-sdk-python";
|
|
|
|
changelog = "https://github.com/TencentCloud/tencentcloud-sdk-python/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|