Package: guix-patches;
Reported by: Vinicius Monego <monego <at> posteo.net>
Date: Wed, 11 Aug 2021 23:44:02 UTC
Severity: normal
Tags: patch
Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Bug is archived. No further changes may be made.
View this message in rfc822 format
From: Vinicius Monego <monego <at> posteo.net> To: 50018 <at> debbugs.gnu.org Cc: Vinicius Monego <monego <at> posteo.net> Subject: [bug#50018] [PATCH 08/19] gnu: python-moto: Update to 2.2.2. Date: Wed, 11 Aug 2021 23:45:00 +0000
* gnu/packages/python-xyz.scm (python-moto): Update to 2.2.2. [arguments]: Make some cosmetic changes. Skip more tests. Don't return #t on phases. --- gnu/packages/python-xyz.scm | 68 +++++++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 21 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index af415e2666..57b4e7fa58 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -12474,34 +12474,60 @@ text.") (define-public python-moto (package (name "python-moto") - ;; XXX: Use a pre-release for compatibility with latest botocore & friends. - (version "1.3.16.dev134") + (version "2.2.2") (source (origin (method url-fetch) (uri (pypi-uri "moto" version)) (sha256 (base32 - "1pix0c7zszjwzfy88n1rpih9vkdm25nqcvz93z850xvgwb4v81bd")))) + "09dpjxp7xb5y1haj5aq6f5lcfzjd0121xqv75zyk6j6bkcbskddh")))) (build-system python-build-system) (arguments - `(#:phases (modify-phases %standard-phases - (add-after 'unpack 'patch-hardcoded-executable-names - (lambda _ - (substitute* "moto/batch/models.py" - (("/bin/sh") - (which "sh"))) - (substitute* (find-files "tests" "\\.py$") - (("#!/bin/bash") - (string-append "#!" (which "bash")))) - #t)) - (replace 'check - (lambda _ - (setenv "PYTHONPATH" (string-append "./build/lib:" - (getenv "PYTHONPATH"))) - (invoke "pytest" "-vv" "-m" "not network" - ;; These tests require Docker. - "-k" "not test_terminate_job \ -and not test_invoke_function_from_sqs_exception")))))) + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-hardcoded-executable-names + (lambda _ + (substitute* "moto/batch/models.py" + (("/bin/sh") + (which "sh"))) + (substitute* (find-files "tests" "\\.py$") + (("#!/bin/bash") + (string-append "#!" (which "bash")))))) + (replace 'check + (lambda _ + (setenv "PYTHONPATH" (string-append "./build/lib:" + (getenv "PYTHONPATH"))) + (invoke "pytest" "-vv" "-m" "not network" "-k" + ;; These tests require Docker. + (string-append "not test_terminate_job" + " and not test_invoke_function_from_sqs_exception" + " and not test_rotate_secret_lambda_invocations" + ;; No indication of why this one fails. + " and not test_container_overrides" + " and not test_dependencies" + ;; Exception from python-botocore 1.19.22. + ;; XXX: May pass after update. + " and not test_object_headers" + " and not test_delete_connection_not_present" + " and not test_delete_connection_success" + " and not test_describe_connection_not_present" + " and not test_describe_connection_success" + " and not test_delete_api_destination" + " and not test_create_and_list_api_destinations" + " and not test_delete_connection" + " and not test_create_and_describe_connection" + " and not test_create_and_list_connections" + " and not test_create_file_system_az_name_given_backup_default" + " and not test_create_file_system_aws_sample_2" + " and not test_describe_file_systems_aws_create_sample_2" + " and not test_create_file_system_aws_sample_1" + " and not test_create_image_with_tag_specification" + " and not test_get_group_configuration" + " and not test_create_and_update_api_destination" + ;; Exception from python-sure 1.4.11. + ;; XXX: May pass after update. + " and not test_encryption" + " and not test_create_transit_gateway"))))))) (native-inputs `(("python-flask" ,python-flask) ("python-flask-cors" ,python-flask-cors) -- 2.30.2
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.