[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50018] [PATCH 08/19] gnu: python-moto: Update to 2.2.2.
From: |
Vinicius Monego |
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
- [bug#50018] [PATCH 00/19] Update Celery to version 5., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 01/19] gnu: Add python-click-repl., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 02/19] gnu: Add python-click-didyoumean., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 04/19] gnu: python-aws-sam-translator: Update to 1.38.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 03/19] gnu: Add python-pytest-subtests., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 05/19] gnu: python-aws-sam-translator: Change source for tests., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 07/19] gnu: python-cfn-lint: Respect #:tests?., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 06/19] gnu: python-cfn-lint: Update to 0.53.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 08/19] gnu: python-moto: Update to 2.2.2.,
Vinicius Monego <=
- [bug#50018] [PATCH 13/19] gnu: python-kombu: Update to 5.1.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 16/19] gnu: python-celery: Enable tests., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 15/19] gnu: python-celery: Update to 5.1.2., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 09/19] gnu: python-moto: Respect #:tests?., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 12/19] gnu: python-amqp: Update to 5.0.6., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 10/19] gnu: python-vine: Update to 5.0.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 14/19] gnu: Add python-pytest-celery., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 11/19] gnu: Add python-pytest-rerunfailures., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 17/19] gnu: Remove python2-celery., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 18/19] gnu: Remove python2-kombu., Vinicius Monego, 2021/08/11