aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_api_core/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/google_api_core/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/google_api_core/default.nix36
1 files changed, 16 insertions, 20 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_api_core/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_api_core/default.nix
index a72f68c19ff9..efe74d478848 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_api_core/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_api_core/default.nix
@@ -1,32 +1,27 @@
-{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy27
-, google_auth, protobuf, googleapis_common_protos, requests, setuptools, grpcio
-, mock
-}:
+{ lib, buildPythonPackage, fetchPypi, pythonOlder, google_auth, protobuf
+, googleapis_common_protos, requests, grpcio, mock, pytest, pytest-asyncio, pytestCheckHook }:
buildPythonPackage rec {
pname = "google-api-core";
- version = "1.22.1";
- disabled = isPy27; # google namespace no longer works on python2
+ version = "1.23.0";
+ disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
- sha256 = "35cba563034d668ae90ffe1f03193a84e745b38f09592f60258358b5e5ee6238";
+ sha256 = "1bb3c485c38eacded8d685b1759968f6cf47dd9432922d34edb90359eaa391e2";
};
- propagatedBuildInputs = [
- googleapis_common_protos protobuf
- google_auth requests setuptools grpcio
- ];
+ propagatedBuildInputs =
+ [ googleapis_common_protos protobuf google_auth requests grpcio ];
- # requires nox
- doCheck = false;
- checkInputs = [ mock ];
+ checkInputs = [ google_auth mock protobuf pytest-asyncio pytestCheckHook ];
- pythonImportsCheck = [
- "google.auth"
- "google.protobuf"
- "google.api"
- ];
+ # prevent google directory from shadowing google imports
+ preCheck = ''
+ rm -r google
+ '';
+
+ pythonImportsCheck = [ "google.auth" "google.protobuf" "google.api" ];
meta = with lib; {
description = "Core Library for Google Client Libraries";
@@ -35,7 +30,8 @@ buildPythonPackage rec {
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";
+ changelog =
+ "https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};