aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_storage/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_storage/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_storage/default.nix41
1 files changed, 22 insertions, 19 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_storage/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_storage/default.nix
index 91e7beeb127b..a1b572db11e5 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_storage/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_storage/default.nix
@@ -1,44 +1,47 @@
-{ lib
-, buildPythonPackage
-, fetchPypi
-, google_resumable_media
-, google_api_core
-, google_cloud_core
-, pytest
-, mock
-, setuptools
-}:
+{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
+, google_api_core, google_auth, google-cloud-iam, google_cloud_core
+, google_cloud_kms, google_cloud_testutils, google_resumable_media, mock
+, requests }:
buildPythonPackage rec {
pname = "google-cloud-storage";
- version = "1.31.2";
+ version = "1.33.0";
src = fetchPypi {
inherit pname version;
- sha256 = "74bbb5b2d0b249de4a52f561435d0c3570ddc19b249653ae588ec0abcc3c81e6";
+ sha256 = "900ba027bdee6b97f21cd22d1db3d1a6233ede5de2db4754db860438bdad72d2";
};
+ disabled = pythonOlder "3.5";
+
propagatedBuildInputs = [
google_api_core
+ google_auth
google_cloud_core
google_resumable_media
- setuptools
+ requests
];
checkInputs = [
+ google-cloud-iam
+ google_cloud_kms
+ google_cloud_testutils
mock
- pytest
+ pytestCheckHook
];
- # remove directory from interferring with importing modules
- # ignore tests which require credentials
- checkPhase = ''
+ # disable tests which require credentials
+ disabledTests = [ "create" "get" "post" "test_build_api_url" ];
+
+ # prevent google directory from shadowing google imports
+ # remove tests which require credentials
+ preCheck = ''
rm -r google
- pytest tests/unit -k 'not (create or get or post)'
+ rm tests/system/test_system.py tests/unit/test_client.py
'';
meta = with lib; {
description = "Google Cloud Storage API client library";
- homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
+ homepage = "https://github.com/googleapis/python-storage";
license = licenses.asl20;
maintainers = with maintainers; [ costrouc ];
};