bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tencentcloud-sdk-python";
|
|
version = "3.0.1171";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TencentCloud";
|
|
repo = "tencentcloud-sdk-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8ZjC4gfTVLuH8b90xzURHhowFS/vdXBjWP64ZoiM7/E=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ requests ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "tencentcloud" ];
|
|
|
|
pytestFlagsArray = [
|
|
# Other tests require credentials
|
|
"tests/unit/test_deserialize_warning.py"
|
|
"tests/unit/test_import.py"
|
|
"tests/unit/test_serialization.py"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|