depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-trace/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

58 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, google-cloud-testutils
, mock
, proto-plus
, protobuf
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-trace";
version = "1.8.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-dKywvDNcvDOULHREKcHWIBVVBBzrttICX+VgcborJVI=";
};
propagatedBuildInputs = [
google-api-core
proto-plus
protobuf
] ++ google-api-core.optional-dependencies.grpc;
checkInputs = [
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
disabledTests = [
# require credentials
"test_batch_write_spans"
"test_list_traces"
];
pythonImportsCheck = [
"google.cloud.trace"
"google.cloud.trace_v1"
"google.cloud.trace_v2"
];
meta = with lib; {
description = "Cloud Trace API client library";
homepage = "https://github.com/googleapis/python-trace";
changelog = "https://github.com/googleapis/python-trace/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}