diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-24 02:38:25 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-28 22:26:59 +0000 |
| commit | c9bf53a9ad3e72d6d93f9775255455130f347371 (patch) | |
| tree | f982cd51afed5ececbd0344edec4460b817d19b7 /gnu/packages | |
| parent | 8de8f01277874d9dcc060ca474db181c7ed6ed69 (diff) | |
gnu: python-google-cloud-storage: Update to 2.19.0.
* gnu/packages/python-web.scm (python-google-cloud-storage): Update to 2.19.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Migrate to <#:test-flags>.
<#:test-flags>: Ignore failing tests.
[native-inputs]: Add python-googleapis-common-protos,
python-setuptools.
[description]: Improve style.
Change-Id: I6bf0280671e880c1a1fb3ae461e74b572ce26136
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/python-web.scm | 56 |
1 files changed, 34 insertions, 22 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index b28f93e7eed..2c83d13cca1 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -12041,29 +12041,40 @@ used by all of the @code{google-cloud-*} packages.") (define-public python-google-cloud-storage (package (name "python-google-cloud-storage") - (version "2.3.0") + (version "2.19.0") (source (origin - (method url-fetch) - (uri (pypi-uri "google-cloud-storage" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/googleapis/python-storage") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "0nwg9ic29s70kpvi71gmjv1y4w5a3vc9gj6d16f8w8hpbvgb1jzl")))) - (build-system python-build-system) + (base32 "19w10v2j4ciwlf8j2ylm77f8z1b0kqzg8lkh9rvh2swv1zrhydpj")))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (for-each delete-file-recursively - (list - ;; The system tests fail to find test_utils.retry. - "tests/system/" - ;; Needs docker. - "tests/conformance/")) - (invoke "pytest"))))))) + (list + #:test-flags + #~(list + ;; XXX: Missing test_utils.retry. + "--ignore=tests/system/" + ;; Needs docker. + "--ignore=tests/conformance/" + ;; XXX: Deprecations. + "-k" (string-join + (list "not test_set_api_request_attr" + "test_create_bucket_w_custom_endpoint" + "test_ctor_w_api_endpoint_override" + "test_ctor_w_custom_endpoint_use_auth" + "test_list_buckets_w_custom_endpoint") + " and not ") + "tests"))) (native-inputs - (list python-mock python-pytest python-test-utils)) + (list python-googleapis-common-protos + python-mock + python-pytest + python-test-utils + python-setuptools)) (propagated-inputs (list python-google-api-core python-google-auth @@ -12073,10 +12084,11 @@ used by all of the @code{google-cloud-*} packages.") python-requests)) (home-page "https://github.com/googleapis/python-storage") (synopsis "Google Cloud Storage API client library") - (description "Google Cloud Storage allows you to store data on Google -infrastructure, and it can be used to distribute large data objects to users -via direct download. This package provides a Google Cloud Storage API client -library for Python.") + (description + "Google Cloud Storage allows you to store data on Google infrastructure, +and it can be used to distribute large data objects to users via direct +download. This package provides a Google Cloud Storage API client library for +Python.") (license license:asl2.0))) (define-public python-smart-open |
