1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 requests, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "tencentcloud-sdk-python"; 13 version = "3.0.1377"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.9"; 17 18 src = fetchFromGitHub { 19 owner = "TencentCloud"; 20 repo = "tencentcloud-sdk-python"; 21 tag = version; 22 hash = "sha256-y4l83suhI+ijDzg1046J/4lryU/o1d31RAhN9lVAdDg="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ requests ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "tencentcloud" ]; 32 33 pytestFlagsArray = [ "tests/unit/" ]; 34 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 }; 42}