diff --git a/pkgs/development/python-modules/google_cloud_firestore/default.nix b/pkgs/development/python-modules/google_cloud_firestore/default.nix new file mode 100644 index 00000000000..6cc42805d4e --- /dev/null +++ b/pkgs/development/python-modules/google_cloud_firestore/default.nix @@ -0,0 +1,35 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, google_api_core +, google_cloud_core +, pytest +}: + +buildPythonPackage rec { + pname = "google-cloud-firestore"; + version = "0.30.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "7f990572ace890867bbbc63c9d700c1d2635ba4c799e05f30b6fdca490021243"; + }; + + checkInputs = [ pytest ]; + propagatedBuildInputs = [ google_api_core google_cloud_core ]; + + # tests were not included with release + # See issue https://github.com/googleapis/google-cloud-python/issues/6380 + doCheck = false; + + checkPhase = '' + pytest tests/unit + ''; + + meta = with stdenv.lib; { + description = "Google Cloud Firestore 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 d311c5df0b4..00262295005 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2466,6 +2466,8 @@ in { google_cloud_error_reporting = callPackage ../development/python-modules/google_cloud_error_reporting { }; + google_cloud_firestore = callPackage ../development/python-modules/google_cloud_firestore { }; + google_cloud_kms = callPackage ../development/python-modules/google_cloud_kms { }; google_cloud_logging = callPackage ../development/python-modules/google_cloud_logging { };