depot/third_party/nixpkgs/pkgs/development/python-modules/tencentcloud-sdk-python/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

47 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "tencentcloud-sdk-python";
version = "3.0.1132";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "TencentCloud";
repo = "tencentcloud-sdk-python";
rev = "refs/tags/${version}";
hash = "sha256-SMdevyChfbUMIY/KynIUE5T3bQAvD23QTW8lyA87kDE=";
};
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 ];
};
}