nixpkgs/pkgs/development/python-modules/tencentcloud-sdk-python/default.nix

42 lines
971 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "tencentcloud-sdk-python";
version = "3.0.1367";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "TencentCloud";
repo = "tencentcloud-sdk-python";
tag = version;
hash = "sha256-DY//LYVzL1gCqp++yk6R1O9HBa8Df8x3q980bDTvGWA=";
};
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "tencentcloud" ];
pytestFlagsArray = [ "tests/unit/" ];
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 ];
};
}