pythonPackages:google_cloud_storage: 1.33.0 -> 1.35.0

This commit is contained in:
Sandro Jäckel 2021-01-05 14:45:37 +01:00
parent f262a96429
commit f922908807
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,48 +1,64 @@
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder { lib
, google_api_core, google_auth, google-cloud-iam, google_cloud_core , buildPythonPackage
, google_cloud_kms, google_cloud_testutils, google_resumable_media, mock , fetchPypi
, requests }: , pytestCheckHook
, google_auth
, google_cloud_iam
, google_cloud_core
, google_cloud_kms
, google_cloud_testutils
, google_resumable_media
, mock
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-cloud-storage"; pname = "google-cloud-storage";
version = "1.33.0"; version = "1.35.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "900ba027bdee6b97f21cd22d1db3d1a6233ede5de2db4754db860438bdad72d2"; sha256 = "17kal75wmyjpva7g04cb9yg7qbyrgwfn575z4gqijd4gz2r0sp2m";
}; };
disabled = pythonOlder "3.5";
propagatedBuildInputs = [ propagatedBuildInputs = [
google_api_core
google_auth google_auth
google_cloud_core google_cloud_core
google_resumable_media google_resumable_media
requests
]; ];
checkInputs = [ checkInputs = [
google-cloud-iam google_cloud_iam
google_cloud_kms google_cloud_kms
google_cloud_testutils google_cloud_testutils
mock mock
pytestCheckHook pytestCheckHook
]; ];
# disable tests which require credentials # disable tests which require credentials and network access
disabledTests = [ "create" "get" "post" "test_build_api_url" ]; disabledTests = [
"create"
"download"
"get"
"post"
"test_build_api_url"
];
pytestFlagsArray = [
"--ignore=tests/unit/test_bucket.py"
"--ignore=tests/system/test_system.py"
];
# prevent google directory from shadowing google imports # prevent google directory from shadowing google imports
# remove tests which require credentials
preCheck = '' preCheck = ''
rm -r google rm -r google
rm tests/system/test_system.py tests/unit/test_client.py
''; '';
pythonImportsCheck = [ "google.cloud.storage" ];
meta = with lib; { meta = with lib; {
description = "Google Cloud Storage API client library"; description = "Google Cloud Storage API client library";
homepage = "https://github.com/googleapis/python-storage"; homepage = "https://github.com/googleapis/python-storage";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ costrouc ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }