From 894b89c17bef61eec61e96f9c5acdd749aec119b Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 18 May 2022 10:24:21 -0400 Subject: gnu: python-scrapy: Fix indentation * gnu/packages/python-web.scm (python-scrapy): Fix indentation. --- gnu/packages/python-web.scm | 84 ++++++++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 7636931091f..aa510b57b79 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6901,52 +6901,52 @@ regular expressions.") (name "python-scrapy") (version "2.6.1") (source - (origin - (method url-fetch) - (uri (pypi-uri "Scrapy" version)) - (sha256 - (base32 "09rqalbwcz9ix8h0992mzjs50sssxsmmh8w9abkrqchgknjmbzan")))) + (origin + (method url-fetch) + (uri (pypi-uri "Scrapy" version)) + (sha256 + (base32 "09rqalbwcz9ix8h0992mzjs50sssxsmmh8w9abkrqchgknjmbzan")))) (build-system python-build-system) (arguments `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" - ;; requires network access - "--ignore" "tests/test_command_check.py" - "-k" - (string-append - ;; Failing for unknown reasons - "not test_server_set_cookie_domain_suffix_public_private" - " and not test_user_set_cookie_domain_suffix_public_private" - " and not test_pformat") - "tests"))))))) - (propagated-inputs - (list python-botocore ; Optional: For S3FeedStorage class. - python-cryptography - python-cssselect - python-itemadapter - python-itemloaders - python-lxml - python-parsel - python-protego - python-pydispatcher - python-pyopenssl - python-queuelib - python-service-identity - python-setuptools - python-tldextract - python-twisted - python-w3lib - python-zope-interface)) + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" + ;; requires network access + "--ignore" "tests/test_command_check.py" + "-k" + (string-append + ;; Failing for unknown reasons + "not test_server_set_cookie_domain_suffix_public_private" + " and not test_user_set_cookie_domain_suffix_public_private" + " and not test_pformat") + "tests"))))))) + (propagated-inputs + (list python-botocore ; Optional: For S3FeedStorage class. + python-cryptography + python-cssselect + python-itemadapter + python-itemloaders + python-lxml + python-parsel + python-protego + python-pydispatcher + python-pyopenssl + python-queuelib + python-service-identity + python-setuptools + python-tldextract + python-twisted + python-w3lib + python-zope-interface)) (native-inputs - (list python-pytest - python-pyftpdlib - python-sybil - python-testfixtures - python-uvloop)) + (list python-pytest + python-pyftpdlib + python-sybil + python-testfixtures + python-uvloop)) (home-page "https://scrapy.org") (synopsis "High-level Web crawling and Web scraping framework") (description "Scrapy is a fast high-level web crawling and web -- cgit v1.3 From 1c4241d91515b75d4dab160be6b2ad840ceb6335 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 18 May 2022 10:25:14 -0400 Subject: gnu: python-scrapy: Parallelize test suite. * gnu/packages/python-web.scm (python-scrapy)[phases]{check}: Run in parallel. Disable problematic (when run in parallel) tests. Use complete sentences for comments. [native-inputs]: Add python-pytest-xdist. [description]: Use double space between sentences. --- gnu/packages/python-web.scm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index aa510b57b79..2a688b53dfc 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6914,11 +6914,17 @@ regular expressions.") (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest" - ;; requires network access + "-n" (number->string (parallel-job-count)) + ;; These tests fail when run in parallel (see: + ;; https://github.com/scrapy/scrapy/issues/5502). + "--ignore" "tests/test_engine.py" + "--ignore" "tests/test_engine_stop_download_bytes.py" + "--ignore" "tests/test_engine_stop_download_headers.py" + ;; This test require network access. "--ignore" "tests/test_command_check.py" "-k" (string-append - ;; Failing for unknown reasons + ;; The followin tests fail for unknown reasons. "not test_server_set_cookie_domain_suffix_public_private" " and not test_user_set_cookie_domain_suffix_public_private" " and not test_pformat") @@ -6943,6 +6949,7 @@ regular expressions.") python-zope-interface)) (native-inputs (list python-pytest + python-pytest-xdist python-pyftpdlib python-sybil python-testfixtures @@ -6951,6 +6958,6 @@ regular expressions.") (synopsis "High-level Web crawling and Web scraping framework") (description "Scrapy is a fast high-level web crawling and web scraping framework, used to crawl websites and extract structured data -from their pages. It can be used for a wide range of purposes, from data +from their pages. It can be used for a wide range of purposes, from data mining to monitoring and automated testing.") (license license:bsd-3))) -- cgit v1.3 From 1f50f11aefe0fb1937cb15d4e327e0ffd94071d7 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 09:48:45 +0200 Subject: gnu: python-google: Add missing input. * gnu/packages/python-web.scm (python-google)[propagated-inputs]: Add python-beautifulsoup4. --- gnu/packages/python-web.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 2a688b53dfc..ed047a7faa0 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4494,6 +4494,8 @@ users, gradebooks, and more.") (build-system python-build-system) (arguments `(#:tests? #f)) ; There are no tests. + (propagated-inputs + (list python-beautifulsoup4)) (home-page "https://breakingcode.wordpress.com/") (synopsis "Python bindings to the Google search engine") (description "This package provides Python bindings for using the @@ -6538,6 +6540,53 @@ through the network, it only deals with the implementation details of the SOCKS protocols. It can be paired with any I/O library.") (license license:expat))) +(define-public python-msrest + (package + (name "python-msrest") + (version "0.6.21") + (source + (origin + (method url-fetch) + (uri (pypi-uri "msrest" version)) + (sha256 + (base32 "1n389m3hcsyjskzimq4j71nyw9pjkrp0n5wg1q2c4bfwpv3inrkj")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" + "-k" + ;; These attempt to connect to bing.com. + (string-append + "not test_basic_aiohttp" + " and not test_basic_async_requests" + " and not test_conf_async_requests" + " and not test_conf_async_trio_requests" + " and not test_basic_aiohttp" + " and not test_basic_async_requests" + " and not test_conf_async_requests" + " and not test_conf_async_trio_requests")))))))) + (propagated-inputs + (list python-aiohttp + python-certifi + python-isodate + python-requests + python-requests-oauthlib)) + (native-inputs + (list python-httpretty + python-pytest + python-pytest-aiohttp + python-pytest-asyncio + python-pytest-trio)) + (home-page "https://github.com/Azure/msrest-for-python") + (synopsis "AutoRest swagger generator Python client runtime.") + (description "This package provides the runtime library @code{msrest} for +AutoRest-generated Python clients.") + (license license:expat))) + (define-public python-azure-nspkg (package (name "python-azure-nspkg") -- cgit v1.3 From 78280e2e4a749a980886b71a5ac911193c370267 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 11:15:39 +0200 Subject: gnu: Add python-azure-common. * gnu/packages/python-web.scm (python-azure-common): New variable. --- gnu/packages/python-web.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index ed047a7faa0..5c03ec15449 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6627,6 +6627,25 @@ AutoRest-generated Python clients.") communicate with Microsoft Azure Storage services.") (license license:expat))) +(define-public python-azure-common + (package + (name "python-azure-common") + (version "1.1.28") + (source + (origin + (method url-fetch) + (uri (pypi-uri "azure-common" version ".zip")) + (sha256 + (base32 "18q4cy1xl2zly3rk7a1sc14w932x59r8c9j4d8dnlsz32hrcvh2a")))) + (build-system python-build-system) + (propagated-inputs (list python-azure-nspkg)) + (native-inputs (list unzip)) + (home-page "https://github.com/Azure/azure-sdk-for-python") + (synopsis "Microsoft Azure Client library for Python") + (description "This package provides the Microsoft Azure Client library for +Python.") + (license license:expat))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.3 From c2bb0beef7d67f56aaa35f6d0969084b999bdd30 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 11:39:51 +0200 Subject: gnu: Add python-azure-core. * gnu/packages/python-web.scm (python-azure-core): New variable. --- gnu/packages/python-web.scm | 67 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 5c03ec15449..eb94cb3de63 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6646,6 +6646,73 @@ communicate with Microsoft Azure Storage services.") Python.") (license license:expat))) +(define-public python-azure-core + (package + (name "python-azure-core") + (version "1.24.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "azure-core" version ".zip")) + (sha256 + (base32 "1r8bpn3zz02mj00qbaks5qq49wqd3mznkm90bchd1mxa3w21nnrl")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + ;; This fails because devtools_testutils doesn't exist. + (delete-file "tests/test_connection_string_parsing.py") + ;; Needs network. + (for-each delete-file + '("tests/async_tests/test_streaming_async.py" + "tests/test_streaming.py")) + (add-installed-pythonpath inputs outputs) + (setenv "PYTHONPATH" + (string-append (getcwd) "/tests/testserver_tests/coretestserver:" + (getenv "GUIX_PYTHONPATH"))) + (invoke "pytest" + ;; Most of these need network access. + "-m" "not asyncio and not live_test_only" + "-k" + ;; These need network access. + (string-append + "not test_example_raw_response_hook" + " and not test_example_headers_policy" + " and not test_example_request_id_policy" + " and not test_example_user_agent_policy" + " and not test_example_requests" + " and not test_example_pipeline" + " and not test_example_pipeline_client" + " and not test_example_redirect_policy" + " and not test_example_no_redirects" + " and not test_example_retry_policy" + " and not test_example_no_retries" + " and not test_decompress_plain_no_header" + " and not test_compress_plain_no_header" + " and not test_decompress_compressed_no_header")))))))) + (propagated-inputs + (list python-aiohttp + python-requests + python-six + python-trio + python-typing-extensions)) + (native-inputs + (list python-flask + python-msrest + python-pytest + python-pytest-aiohttp + python-pytest-asyncio + python-pytest-trio + unzip)) + (home-page "https://github.com/Azure/azure-sdk-for-python") + (synopsis "Microsoft Azure Core library for Python") + (description "This package provides the Microsoft Azure Core library for +Python.") + (license license:expat))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.3 From da88e39ce0d9a7aaae36a7a5fe8706ab15cde18e Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 11:44:52 +0200 Subject: gnu: Add python-azure-storage-blob. * gnu/packages/python-web.scm (python-azure-storage-blob): New variable. --- gnu/packages/python-web.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index eb94cb3de63..689a99b5188 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6713,6 +6713,26 @@ Python.") Python.") (license license:expat))) +(define-public python-azure-storage-blob + (package + (name "python-azure-storage-blob") + (version "12.12.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "azure-storage-blob" version ".zip")) + (sha256 + (base32 "1xv23ph822qywjxs81say9xi5dzmvxcii6sww6d1hvd83iyz1npn")))) + (build-system python-build-system) + (propagated-inputs + (list python-azure-core python-cryptography python-msrest)) + (native-inputs (list unzip)) + (home-page "https://github.com/Azure/azure-sdk-for-python/") + (synopsis "Microsoft Azure Blob Storage client library for Python") + (description "This package provides the Microsoft Azure Blob Storage +Client Library for Python.") + (license license:expat))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.3 From 97d9741f0be56d4a2860dc8620b56f859aefefee Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:04:25 +0200 Subject: gnu: Add python-google-crc32c. * gnu/packages/python-web.scm (python-google-crc32c): New variable. --- gnu/packages/python-web.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 689a99b5188..04cf3b5e3c6 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6733,6 +6733,25 @@ Python.") Client Library for Python.") (license license:expat))) +(define-public python-google-crc32c + (package + (name "python-google-crc32c") + (version "1.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-crc32c" version)) + (sha256 + (base32 "1ps4qaccij6cixs91772y9f9r1n702yfzy4qqmds6x5h7qkycv97")))) + (build-system python-build-system) + (native-inputs (list python-pytest)) + (home-page "https://github.com/googleapis/python-crc32c") + (synopsis "Python wrapper of Google CRC32C") + (description + "This package provides a Python wrapper of the C library implementation +of the CRC32C hashing algorithm.") + (license license:asl2.0))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.3 From c63164188fc893c9500c4c953c808d24c12b6894 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:18:56 +0200 Subject: gnu: Add python-googleapis-common-protos. * gnu/packages/python-web.scm (python-googleapis-common-protos): New variable. --- gnu/packages/python-web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 04cf3b5e3c6..51e03ed56f4 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -88,6 +88,7 @@ #:use-module (gnu packages node) #:use-module (gnu packages openstack) #:use-module (gnu packages pcre) + #:use-module (gnu packages protobuf) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-build) @@ -6752,6 +6753,34 @@ Client Library for Python.") of the CRC32C hashing algorithm.") (license license:asl2.0))) +(define-public python-googleapis-common-protos + (package + (name "python-googleapis-common-protos") + (version "1.56.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "googleapis-common-protos" version)) + (sha256 + (base32 "16x1pjc34mrj9w130j40r23ndpykhsqivvk5xfl63ss6qsfyapkb")))) + (build-system python-build-system) + (arguments + `(#:tests? #false ;fails for unknown reasons + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs (list python-protobuf)) + (native-inputs + (list python-pytest)) + (home-page "https://github.com/googleapis/python-api-common-protos") + (synopsis "Common protobufs used in Google APIs") + (description "This package contains Python classes generated from the +common protos in the @code{googleapis/api-common-protos} repository.") + (license license:asl2.0))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.3 From 359e2db4b2543425ca526162264d60a08cd2e368 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:21:54 +0200 Subject: gnu: Add python-google-auth. * gnu/packages/python-web.scm (python-google-auth): New variable. --- gnu/packages/python-web.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 51e03ed56f4..46e7e286156 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6753,6 +6753,46 @@ Client Library for Python.") of the CRC32C hashing algorithm.") (license license:asl2.0))) +(define-public python-google-auth + (package + (name "python-google-auth") + (version "2.6.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-auth" version)) + (sha256 + (base32 "04ikassansqkkw4pa98in7q9r4z001m6bi2r3ssxwwrb0f79790v")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs + (list python-cachetools + python-cryptography + python-pyasn1-modules + python-rsa + python-six)) + (native-inputs + (list python-flask + python-freezegun + python-oauth2client + python-pyopenssl + python-pytest + python-pytest-localserver + python-pyu2f + python-requests + python-responses)) + (home-page "https://github.com/googleapis/google-auth-library-python") + (synopsis "Google Authentication Library") + (description "This library simplifies using Google's various +server-to-server authentication mechanisms to access Google APIs.") + (license license:asl2.0))) + (define-public python-googleapis-common-protos (package (name "python-googleapis-common-protos") -- cgit v1.3 From 0873ab4d54f169c32d04cc2a2df92426e748f546 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:24:02 +0200 Subject: gnu: Add python-google-resumable-media. * gnu/packages/python-web.scm (python-google-resumable-media): New variable. --- gnu/packages/python-web.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 46e7e286156..7f50ede8bfb 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6793,6 +6793,38 @@ of the CRC32C hashing algorithm.") server-to-server authentication mechanisms to access Google APIs.") (license license:asl2.0))) +(define-public python-google-resumable-media + (package + (name "python-google-resumable-media") + (version "2.3.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-resumable-media" version)) + (sha256 + (base32 "04qm6rd4mpbbym8ci5xrb6fymc3mmm8x2z9f43q5iwbr3s5lx4h6")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; The system tests fail to find test_utils.retry. + (delete-file-recursively "tests/system/") + (invoke "pytest"))))))) + (propagated-inputs (list python-google-crc32c)) + (native-inputs + (list python-google-auth + python-pytest + python-requests + python-test-utils)) + (home-page "https://github.com/googleapis/google-resumable-media-python") + (synopsis "Utilities for Google Media Downloads and Resumable Uploads") + (description "This package provides utilities for Google Media Downloads +and Resumable Uploads.") + (license license:asl2.0))) + (define-public python-googleapis-common-protos (package (name "python-googleapis-common-protos") -- cgit v1.3 From e41ca0a49a2c9b73a6bf54202b91aaf3be701863 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:32:10 +0200 Subject: gnu: Add python-google-api-core. * gnu/packages/python-web.scm (python-google-api-core): New variable. --- gnu/packages/python-web.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 7f50ede8bfb..df6c3f3e404 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6853,6 +6853,45 @@ and Resumable Uploads.") common protos in the @code{googleapis/api-common-protos} repository.") (license license:asl2.0))) +(define-public python-google-api-core + (package + (name "python-google-api-core") + (version "2.7.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-api-core" version)) + (sha256 + (base32 "0ydwvg9gzp75cd11s62db5w3jhj643yrw095rv95psfb0h3pz58p")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; These don't work because it doesn't find AsyncMock even when + ;; we add it to the inputs. + (for-each delete-file + '("tests/asyncio/test_page_iterator_async.py" + "tests/asyncio/test_retry_async.py")) + (invoke "pytest"))))))) + (propagated-inputs + (list python-google-auth + python-googleapis-common-protos + python-protobuf + python-proto-plus + python-requests)) + (native-inputs + (list python-mock + python-pytest + python-pytest-asyncio)) + (home-page "https://github.com/googleapis/python-api-core") + (synopsis "Google API client core library") + (description "This library defines common helpers used by all Google API +clients.") + (license license:asl2.0))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.3 From 6934f094a627a0e663db15f6eab2a0c97d104ad1 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:40:39 +0200 Subject: gnu: Add python-google-cloud-core. * gnu/packages/python-web.scm (python-google-cloud-core): New variable. --- gnu/packages/python-web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index df6c3f3e404..e49653441be 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -97,6 +97,7 @@ #:use-module (gnu packages python-science) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) + #:use-module (gnu packages rpc) #:use-module (gnu packages serialization) #:use-module (gnu packages sphinx) #:use-module (gnu packages texinfo) @@ -6892,6 +6893,33 @@ common protos in the @code{googleapis/api-common-protos} repository.") clients.") (license license:asl2.0))) +(define-public python-google-cloud-core + (package + (name "python-google-cloud-core") + (version "2.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-cloud-core" version)) + (sha256 + (base32 "0sa66kidgr32dfq9ngha9l362xnqvnqqmssn5my1gd3lc6g65apx")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs (list python-google-api-core python-google-auth)) + (native-inputs + (list python-grpcio python-pytest)) + (home-page "https://github.com/googleapis/python-cloud-core") + (synopsis "Google Cloud API client core library") + (description "This library defines common helpers (e.g. base @code{Client} +classes) used by all of the @code{google-cloud-*} packages.") + (license license:asl2.0))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.3 From 1aaeff86501cd38cb903f3c6c2b288f652c3bd5d Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:43:07 +0200 Subject: gnu: Add python-google-cloud-storage. * gnu/packages/python-web.scm (python-google-cloud-storage): New variable. --- gnu/packages/python-web.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index e49653441be..f3cd3e521b1 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6920,6 +6920,47 @@ clients.") classes) used by all of the @code{google-cloud-*} packages.") (license license:asl2.0))) +(define-public python-google-cloud-storage + (package + (name "python-google-cloud-storage") + (version "2.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-cloud-storage" version)) + (sha256 + (base32 "0nwg9ic29s70kpvi71gmjv1y4w5a3vc9gj6d16f8w8hpbvgb1jzl")))) + (build-system python-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"))))))) + (native-inputs + (list python-pytest python-test-utils)) + (propagated-inputs + (list python-google-api-core + python-google-auth + python-google-cloud-core + python-google-resumable-media + python-protobuf + 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.") + (license license:asl2.0))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.3 From 192c7229284b9499257b6b4ac46a17b93ffd0c52 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:50:26 +0200 Subject: gnu: Add python-smart-open. * gnu/packages/python-web.scm (python-smart-open): New variable. --- gnu/packages/python-web.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f3cd3e521b1..b4a2bc365b7 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6961,6 +6961,49 @@ via direct download. This package provides a Google Cloud Storage API client library for Python.") (license license:asl2.0))) +(define-public python-smart-open + (package + (name "python-smart-open") + (version "6.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "smart_open" version)) + (sha256 + (base32 "1c12ilanx9hgpcc5chjkaqnx1hx14iazyindy7syvjhbdywhc0fn")))) + (build-system python-build-system) + (arguments + `(#:tests? #false ;none included + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs + (list python-azure-common + python-azure-core + python-azure-storage-blob + python-boto3 + python-google-cloud-storage + python-requests)) + (native-inputs + (list python-flask + python-flask-cors + python-graphql-core + python-moto + python-paramiko + python-pathlib2 + python-pytest + python-pytest-rerunfailures + python-responses)) + (home-page "https://github.com/piskvorky/smart_open") + (synopsis "Utilities for streaming large files") + (description + "This package provides utilities for streaming large files (S3, HDFS, +GCS, Azure Blob Storage, gzip, bz2, etc.)") + (license license:expat))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.3