nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 45 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 requests, 7 setuptools, 8}: 9 10buildPythonPackage (finalAttrs: { 11 pname = "tencentcloud-sdk-python"; 12 version = "3.1.53"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "TencentCloud"; 17 repo = "tencentcloud-sdk-python"; 18 tag = finalAttrs.version; 19 hash = "sha256-46so2haT1Skw9fTtYj9XeJfc5usp5ZnJXAWJX2WJcr0="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ requests ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "tencentcloud" ]; 29 30 enabledTestPaths = [ "tests/unit/" ]; 31 32 disabledTests = [ 33 # KeyError 34 "test_sts_credential_with_default_endpoint" 35 "test_sts_credential_with_set_endpoint" 36 ]; 37 38 meta = { 39 description = "Tencent Cloud API 3.0 SDK for Python"; 40 homepage = "https://github.com/TencentCloud/tencentcloud-sdk-python"; 41 changelog = "https://github.com/TencentCloud/tencentcloud-sdk-python/blob/${finalAttrs.src.tag}/CHANGELOG.md"; 42 license = lib.licenses.asl20; 43 maintainers = with lib.maintainers; [ fab ]; 44 }; 45})