about summary refs log tree commit diff
path: root/pkgs/development/python-modules/google-cloud-trace
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-01-06 10:46:48 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-01-06 23:59:50 +0100
commitac391fdc0bad04e7c83c53eb2ef527c8bc9d16cb (patch)
tree4c3d2acf80ff6876cf447dc6c144c6fe8079986a /pkgs/development/python-modules/google-cloud-trace
parent692345a57070f2a03b59ac66b62872717b3b2d99 (diff)
pythonPackages:google*: Noramlize names by replacing _ with -
Diffstat (limited to 'pkgs/development/python-modules/google-cloud-trace')
-rw-r--r--pkgs/development/python-modules/google-cloud-trace/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/google-cloud-trace/default.nix b/pkgs/development/python-modules/google-cloud-trace/default.nix
new file mode 100644
index 0000000000000..200f3dc1816a1
--- /dev/null
+++ b/pkgs/development/python-modules/google-cloud-trace/default.nix
@@ -0,0 +1,44 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, google-api-core
+, google-cloud-core
+, google-cloud-testutils
+, mock
+, proto-plus
+, pytestCheckHook
+, pytest-asyncio
+}:
+
+buildPythonPackage rec {
+  pname = "google-cloud-trace";
+  version = "1.1.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1lvcm4w1l7hiqg64kdscch3f3bq19q9ii49xj4lljn2a4xffxl8v";
+  };
+
+  propagatedBuildInputs = [ google-api-core google-cloud-core proto-plus ];
+
+  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 stdenv.lib; {
+    description = "Cloud Trace API client library";
+    homepage = "https://github.com/googleapis/python-trace";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ SuperSandro2000 ];
+  };
+}