From 4ea516df5eba4dbef866a43e7d39758f7fcbc1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 5 Jan 2021 10:56:41 +0100 Subject: [PATCH] pythonPackages.google_cloud_os_config: Init at 1.0.0 --- .../google_cloud_os_config/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/google_cloud_os_config/default.nix diff --git a/pkgs/development/python-modules/google_cloud_os_config/default.nix b/pkgs/development/python-modules/google_cloud_os_config/default.nix new file mode 100644 index 000000000000..20e651a54ca3 --- /dev/null +++ b/pkgs/development/python-modules/google_cloud_os_config/default.nix @@ -0,0 +1,29 @@ +{ lib, buildPythonPackage, fetchPypi, google_api_core, libcst, mock, proto-plus, pytestCheckHook, pytest-asyncio }: + +buildPythonPackage rec { + pname = "google-cloud-os-config"; + version = "1.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "07zvagy9hwaccwvg1xad5nkalgkria0maa5yxiwqf1yk9f7gbyq1"; + }; + + propagatedBuildInputs = [ google_api_core libcst proto-plus ]; + + checkInputs = [ mock pytestCheckHook pytest-asyncio ]; + + pythonImportsCheck = [ "google.cloud.osconfig" ]; + + disabledTests = [ + "test_patch_deployment" + "test_patch_job" + ]; + + meta = with lib; { + description = "Google Cloud OS Config API client library"; + homepage = "https://github.com/googleapis/python-os-config"; + license = licenses.asl20; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 39744a5feb24..8e9ee4d23a0e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2567,6 +2567,8 @@ in { google_cloud_org_policy = callPackage ../development/python-modules/google_cloud_org_policy { }; + google_cloud_os_config = callPackage ../development/python-modules/google_cloud_os_config { }; + google_cloud_pubsub = callPackage ../development/python-modules/google_cloud_pubsub { }; google_cloud_redis = callPackage ../development/python-modules/google_cloud_redis { };