about summary refs log tree commit diff
path: root/pkgs/development/python-modules/google-api-core
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-api-core
parent692345a57070f2a03b59ac66b62872717b3b2d99 (diff)
pythonPackages:google*: Noramlize names by replacing _ with -
Diffstat (limited to 'pkgs/development/python-modules/google-api-core')
-rw-r--r--pkgs/development/python-modules/google-api-core/default.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/google-api-core/default.nix b/pkgs/development/python-modules/google-api-core/default.nix
new file mode 100644
index 0000000000000..6715590dc3292
--- /dev/null
+++ b/pkgs/development/python-modules/google-api-core/default.nix
@@ -0,0 +1,55 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, google-auth
+, googleapis_common_protos
+, grpcio
+, protobuf
+, pytz
+, requests
+, mock
+, pytest
+, pytest-asyncio
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "google-api-core";
+  version = "1.24.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0sflnpgsvk2h1cr1m3mgxx6pzz55xw7sk4y4qdimhs5jdm2fw78g";
+  };
+
+  propagatedBuildInputs = [
+    googleapis_common_protos
+    google-auth
+    grpcio
+    protobuf
+    pytz
+    requests
+  ];
+
+  checkInputs = [ mock pytest-asyncio pytestCheckHook ];
+
+  # prevent google directory from shadowing google imports
+  preCheck = ''
+    rm -r google
+  '';
+
+  pythonImportsCheck = [ "google.api_core" ];
+
+  meta = with lib; {
+    description = "Core Library for Google Client Libraries";
+    longDescription = ''
+      This library is not meant to stand-alone. Instead it defines common
+      helpers used by all Google API clients.
+    '';
+    homepage = "https://github.com/googleapis/python-api-core";
+    changelog =
+      "https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ SuperSandro2000 ];
+  };
+}