aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/google_cloud_bigquery
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-04-19 14:57:25 +0200
committerKatharina Fey <kookie@spacekookie.de>2020-04-19 14:57:25 +0200
commit0ca211d4ec600fa7b3cc701e4997cd1e8d38ebdc (patch)
tree4f9b09ca5d55e44710f020bcf6621daa4fd6b73a /nixpkgs/pkgs/development/python-modules/google_cloud_bigquery
parent1c2ef52230ed2c8b2529c47ce6a857bdde46c7c7 (diff)
parentb61999e4ad60c351b4da63ae3ff43aae3c0bbdfb (diff)
Merge commit 'b61999e4ad60c351b4da63ae3ff43aae3c0bbdfb'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/google_cloud_bigquery')
-rw-r--r--nixpkgs/pkgs/development/python-modules/google_cloud_bigquery/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/google_cloud_bigquery/default.nix b/nixpkgs/pkgs/development/python-modules/google_cloud_bigquery/default.nix
index e361b4436ee..0b7c5d5c16e 100644
--- a/nixpkgs/pkgs/development/python-modules/google_cloud_bigquery/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/google_cloud_bigquery/default.nix
@@ -1,6 +1,7 @@
{ stdenv
, buildPythonPackage
, fetchPypi
+, freezegun
, google_resumable_media
, google_api_core
, google_cloud_core
@@ -13,23 +14,29 @@
buildPythonPackage rec {
pname = "google-cloud-bigquery";
- version = "1.23.1";
+ version = "1.24.0";
src = fetchPypi {
inherit pname version;
- sha256 = "99c341592d711d8f131fe80d842f7e1b04b2ca1faefa1ffedf4dec1b382cebf6";
+ sha256 = "1ca22hzql8x1z6bx9agidx0q09w24jwzkgg49k5j1spcignwxz3z";
};
- checkInputs = [ pytest mock ipython ];
+ checkInputs = [ pytest mock ipython freezegun ];
propagatedBuildInputs = [ google_resumable_media google_api_core google_cloud_core pandas pyarrow ];
+ # prevent local directory from shadowing google imports
+ # call_api_applying_custom_retry_on_timeout requires credentials
+ # test_magics requires modifying sys.path
checkPhase = ''
- pytest tests/unit
+ rm -r google
+ pytest tests/unit \
+ -k 'not call_api_applying_custom_retry_on_timeout' \
+ --ignore=tests/unit/test_magics.py
'';
meta = with stdenv.lib; {
description = "Google BigQuery API client library";
- homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
+ homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};