[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/04: gnu: python-moto: Update to 4.2.4.
From: |
guix-commits |
Subject: |
04/04: gnu: python-moto: Update to 4.2.4. |
Date: |
Wed, 20 Nov 2024 14:41:07 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit da8afaa65fe30ae59e1bedbbb231490ad01c013c
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Nov 20 20:36:00 2024 +0100
gnu: python-moto: Update to 4.2.4.
* gnu/packages/python-xyz.scm (python-moto): Update to 4.2.4.
[build-system]: Use pyproject-build-system.
[arguments]: Use #:test-flags instead of custom 'check phase; add phase
'compatibility.
[propagated-inputs]: Add python-openapi-spec-validator and
python-py-partiql-parser.
Change-Id: Ifa0598387f37488da2e1efa40617dc5f36ea4241
---
gnu/packages/python-xyz.scm | 75 +++++++++++++++++++++++++++++----------------
1 file changed, 49 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 195f67f69d..ceb122e08d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18992,43 +18992,64 @@ text.")
(define-public python-moto
(package
(name "python-moto")
- (version "3.1.4")
+ (version "4.2.4")
(source (origin
(method url-fetch)
(uri (pypi-uri "moto" version))
(sha256
- (base32
"0dfnad1f9d5ybabs69dzc7x357z1r4jbhrhgw57gyic1qnmcw864"))))
- (build-system python-build-system)
+ (base32
"12dkx35jm8qzyf5205wzkmd82yjxrbfdymdk2qlb3s47k6rcb8zf"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
+ (list
+ #:test-flags
+ '(list "-m" "not network and not requires_docker"
+ "-k"
+ (string-append
+ ;; XXX: This test is timing sensitive and may
+ ;; fail non-deterministically.
+ "not test_cancel_pending_job"
+
+ ;; The error message is more detailed than expected.
+ " and not test_list_queue_tags_errors"
+
+ ;; Unknown failure: invalid length for parameter IpAdresses.
+ " and not test_route53resolver_bad_create_endpoint_subnets"
+ " and not test_route53resolver_invalid_create_endpoint_args"
+
+ ;; FIXME: Unknown failure. Likely requires Docker.
+ " and not test_cancel_pending_job"
+
+ ;; These tests require Docker.
+ " and not test_terminate_job"
+ " and not test_invoke_function_from_sqs_exception"
+ " and not
test_create_custom_lambda_resource__verify_cfnresponse_failed"
+ " and not test_lambda_function"
+ " and not test_invoke_local_lambda_layers"
+
+ ;; These tests also require the network.
+ " and not test_s3_server_post_cors_multiple_origins"
+ " and not test_put_record_batch_http_destination"
+ " and not test_put_record_http_destination"
+ " and not test_with_custom_request_header"
+ " and not test_dependencies"
+ " and not test_cancel_running_job"
+ " and not test_container_overrides"))
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'compatibility
+ (lambda _
+ ;; pyparsing 3.0.6 does not support the "min" argument for
+ ;; DelimitedList.
+ (substitute* "moto/glue/utils.py"
+ (("DelimitedList\\(literal, min=1\\)")
+ "DelimitedList(literal)"))))
(add-after 'unpack 'patch-hardcoded-executable-names
(lambda* (#:key inputs #:allow-other-keys)
(let ((bash-exec (search-input-file inputs "/bin/sh")))
(substitute* "moto/batch/models.py"
(("/bin/sh") bash-exec))
(substitute* (find-files "tests" "\\.py$")
- (("#!/bin/bash") (string-append "#!" bash-exec))))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv" "-m" "not network" "-k"
- (string-append
- ;; XXX: This test is timing sensitive and may
- ;; fail non-deterministically.
- "not test_cancel_pending_job"
- ;; These tests require Docker.
- " and not test_terminate_job"
- " and not test_invoke_function_from_sqs_exception"
- " and not
test_create_custom_lambda_resource__verify_cfnresponse_failed"
- " and not test_lambda_function"
-
- ;; These tests also require the network.
- " and not test_put_record_batch_http_destination"
- " and not test_put_record_http_destination"
- " and not test_dependencies"
- " and not test_cancel_running_job"
- " and not test_container_overrides"))))))))
+ (("#!/bin/bash") (string-append "#!" bash-exec)))))))))
(native-inputs
(list python-flask
python-flask-cors
@@ -19051,6 +19072,8 @@ text.")
python-jose
python-jsondiff
python-markupsafe
+ python-openapi-spec-validator
+ python-py-partiql-parser
python-pytz
python-pyyaml
python-requests