[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50018] [PATCH v3 10/21] gnu: python-moto: Update to 2.2.7.
From: |
Maxime Devos |
Subject: |
[bug#50018] [PATCH v3 10/21] gnu: python-moto: Update to 2.2.7. |
Date: |
Sun, 26 Sep 2021 19:08:17 +0200 |
User-agent: |
Evolution 3.34.2 |
Vinicius Monego schreef op do 16-09-2021 om 16:21 [+0000]:
> * gnu/packages/python-xyz.scm (python-moto): Update to 2.2.7.
> [arguments]: Make some cosmetic changes. Skip more tests. Don't return #t on
> phases.
> ---
> gnu/packages/python-xyz.scm | 49 +++++++++++++++++++++----------------
> 1 file changed, 28 insertions(+), 21 deletions(-)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index 2b737bc029..b2be163eec 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -12653,34 +12653,41 @@ 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.7")
> (source (origin
> (method url-fetch)
> (uri (pypi-uri "moto" version))
> (sha256
> (base32
> - "1pix0c7zszjwzfy88n1rpih9vkdm25nqcvz93z850xvgwb4v81bd"))))
> + "065m24x9d7vlmd7xfa9f5m7829axhq7r6mj5r44hi2bipv833lgm"))))
> (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")))
This needs to be something like (search-input-file "bin/sh") instead
for cross-compiling python-moto (though python-build-system doesn't
support cross-compilation currently), with "bash-minimal" added to the
inputs.
Or (string-append (assoc-ref inputs "bash-minimal") "/bin/sh"), because
search-input-file is only in core-updates and core-updates-frozen, and not
yet in master.
Greetings,
Maxime
signature.asc
Description: This is a digitally signed message part
- [bug#50018] [PATCH v3 00/21] Update Celery to version 5., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 03/21] gnu: Add python-pytest-subtests., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 05/21] gnu: python-botocore: Update to 1.21.42., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 01/21] gnu: Add python-click-repl., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 02/21] gnu: Add python-click-didyoumean., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 04/21] gnu: python-cfn-lint: Respect #:tests?., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 10/21] gnu: python-moto: Update to 2.2.7., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 10/21] gnu: python-moto: Update to 2.2.7.,
Maxime Devos <=
- [bug#50018] [PATCH v3 09/21] gnu: python-aws-sam-translator: Change source for tests., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 16/21] gnu: Add python-pytest-celery., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 14/21] gnu: python-amqp: Update to 5.0.6., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 19/21] gnu: Remove python2-celery., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 08/21] gnu: awscli: Update to 1.20.42., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 06/21] gnu: python-s3transfer: Update to 0.5.0., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 12/21] gnu: python-vine: Update to 5.0.0., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 21/21] gnu: Remove python2-amqp., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 17/21] gnu: python-celery: Update to 5.1.2., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 07/21] gnu: python-boto3: Update to 1.18.42., Vinicius Monego, 2021/09/16