From 1e85f64bc223f8060ae3726159a0fb9f9336ae05 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 2 Nov 2018 15:48:41 -0400 Subject: [PATCH] pythonPackages.google_cloud_monitoring: init at 0.30.1 --- .../google_cloud_monitoring/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/google_cloud_monitoring/default.nix diff --git a/pkgs/development/python-modules/google_cloud_monitoring/default.nix b/pkgs/development/python-modules/google_cloud_monitoring/default.nix new file mode 100644 index 000000000000..5d78bd22b010 --- /dev/null +++ b/pkgs/development/python-modules/google_cloud_monitoring/default.nix @@ -0,0 +1,32 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, google_api_core +, pandas +, pytest +, mock +}: + +buildPythonPackage rec { + pname = "google-cloud-monitoring"; + version = "0.30.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "6b26d659360306d51b9fb88c5b1eb77bf49967a37b6348ae9568c083e466274d"; + }; + + checkInputs = [ pytest mock ]; + propagatedBuildInputs = [ google_api_core pandas ]; + + checkPhase = '' + pytest tests/unit + ''; + + meta = with stdenv.lib; { + description = "Stackdriver Monitoring API client library"; + homepage = https://github.com/GoogleCloudPlatform/google-cloud-python; + license = licenses.asl20; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index be64c2a0a3f1..67cbda26214c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2476,6 +2476,8 @@ in { google_cloud_logging = callPackage ../development/python-modules/google_cloud_logging { }; + google_cloud_monitoring = callPackage ../development/python-modules/google_cloud_monitoring { }; + google_cloud_storage = callPackage ../development/python-modules/google_cloud_storage { }; google_cloud_speech = callPackage ../development/python-modules/google_cloud_speech { };