gnu: python-azure-core: Update to 1.28.0.

* gnu/packages/python-web.scm (python-azure-core): Update to 1.28.0.
[build-system]: Move to pyproject-build-system.
[arguments]<#:test-flags>: Use it.
           <#:phases>: Move from check phase replacement to a lighter
           'add-test-pythonpath pre-check phase.
[propagated-inputs]: Remove python-trio.
[native-inputs]: Remove python-msrest.

Change-Id: Ie4656ddaa1919144cc75a81feecb9ec774c9436f
Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Nicolas Graves 2024-09-12 19:21:22 +02:00 committed by Christopher Baines
parent 83881f7e32
commit d085fcf493
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -8069,59 +8069,45 @@ Python.")
(define-public python-azure-core (define-public python-azure-core
(package (package
(name "python-azure-core") (name "python-azure-core")
(version "1.24.0") (version "1.28.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "azure-core" version ".zip")) (uri (pypi-uri "azure-core" version ".zip"))
(sha256 (sha256
(base32 "1r8bpn3zz02mj00qbaks5qq49wqd3mznkm90bchd1mxa3w21nnrl")))) (base32 "1g9nv5pcjkskv37vsjgsm7am81y629flwkghnvd5dphzzikgrvp9"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:test-flags
(replace 'check `(list ;; This fails because devtools_testutils doesn't exist.
(lambda* (#:key inputs outputs tests? #:allow-other-keys) "--ignore=tests/test_connection_string_parsing.py"
(when tests? ;; These all need network access.
;; This fails because devtools_testutils doesn't exist. "--ignore=samples"
(delete-file "tests/test_connection_string_parsing.py") "--ignore=tests/async_tests/test_streaming_async.py"
;; Needs network. "--ignore=tests/test_streaming.py"
(for-each delete-file "-m" "not asyncio and not live_test_only"
'("tests/async_tests/test_streaming_async.py" "-k" ,(string-append
"tests/test_streaming.py")) "not test_decompress_plain_no_header"
(add-installed-pythonpath inputs outputs) " and not test_compress_plain_no_header"
(setenv "PYTHONPATH" " and not test_decompress_compressed_no_header"
(string-append (getcwd) "/tests/testserver_tests/coretestserver:" " and not test_requests_socket_timeout"))
(getenv "GUIX_PYTHONPATH"))) #:phases
(invoke "pytest" #~(modify-phases %standard-phases
;; Most of these need network access. (add-before 'check 'add-test-pythonpath
"-m" "not asyncio and not live_test_only" (lambda* (#:key tests? #:allow-other-keys)
"-k" (when tests?
;; These need network access. (setenv "PYTHONPATH"
(string-append (string-append
"not test_example_raw_response_hook" (getcwd) "/tests/testserver_tests/coretestserver:"
" and not test_example_headers_policy" (getenv "GUIX_PYTHONPATH")))))))))
" 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 (propagated-inputs
(list python-aiohttp (list python-aiohttp
python-requests python-requests
python-six python-six
python-trio
python-typing-extensions)) python-typing-extensions))
(native-inputs (native-inputs
(list python-flask (list python-flask
python-msrest
python-pytest python-pytest
python-pytest-aiohttp python-pytest-aiohttp
python-pytest-asyncio python-pytest-asyncio