about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/google-cloud-core/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/google-cloud-core/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/google-cloud-core/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/google-cloud-core/default.nix b/nixpkgs/pkgs/development/python-modules/google-cloud-core/default.nix
new file mode 100644
index 000000000000..72709c62ceca
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/google-cloud-core/default.nix
@@ -0,0 +1,38 @@
+{ lib, stdenv
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+, pytestCheckHook
+, python
+, google-api-core
+, grpcio
+, mock
+}:
+
+buildPythonPackage rec {
+  pname = "google-cloud-core";
+  version = "1.5.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "01liq4nrd2g3ingg8v0ly4c86db8agnr9h1fiz219c7fz0as0xqj";
+  };
+
+  propagatedBuildInputs = [ google-api-core ];
+
+  checkInputs = [ mock pytestCheckHook ];
+
+  # prevent google directory from shadowing google imports
+  preCheck = ''
+    rm -r google
+  '';
+
+  pythonImportsCheck = [ "google.cloud" ];
+
+  meta = with lib; {
+    description = "API Client library for Google Cloud: Core Helpers";
+    homepage = "https://github.com/googleapis/python-cloud-core";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ SuperSandro2000 ];
+  };
+}