From patchwork Thu Sep 16 16:21:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 32901 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D5DE827BBE3; Thu, 16 Sep 2021 17:26:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 96D7927BBE1 for ; Thu, 16 Sep 2021 17:26:17 +0100 (BST) Received: from localhost ([::1]:54864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQuDG-0001Hk-Pa for patchwork@mira.cbaines.net; Thu, 16 Sep 2021 12:26:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQuBA-0006pc-BR for guix-patches@gnu.org; Thu, 16 Sep 2021 12:24:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQuB9-0004UH-UC for guix-patches@gnu.org; Thu, 16 Sep 2021 12:24:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQuB9-0007Gu-QF for guix-patches@gnu.org; Thu, 16 Sep 2021 12:24:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50018] [PATCH v3 10/21] gnu: python-moto: Update to 2.2.7. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Sep 2021 16:24:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50018@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 50018-submit@debbugs.gnu.org id=B50018.163180940127713 (code B ref 50018); Thu, 16 Sep 2021 16:24:03 +0000 Received: (at 50018) by debbugs.gnu.org; 16 Sep 2021 16:23:21 +0000 Received: from localhost ([127.0.0.1]:56356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQuAS-0007Cm-Ff for submit@debbugs.gnu.org; Thu, 16 Sep 2021 12:23:20 -0400 Received: from mout02.posteo.de ([185.67.36.66]:51585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQuAO-0007C1-IL for 50018@debbugs.gnu.org; Thu, 16 Sep 2021 12:23:17 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id CDB76240103 for <50018@debbugs.gnu.org>; Thu, 16 Sep 2021 18:23:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1631809390; bh=3UgMyH++DifIuq6nJ2qVhyWjffRiJvcHSum7QeeqF9M=; h=From:To:Cc:Subject:Date:From; b=L2l4KOWBlZO/x/0tkWQfHkLA2n00RpHlAiYPP9ZpSVYj+03B3h/5gNYdLZDC9A2AM OV9IHCDLJFWEW7Yl6ETaOdo6F1GTyA1AdSi1MFEUvpi7YX6PJKg2rA8yRKL0tfzNjj ny9/LW2wp/p8GpZnE19vTdDAaMpRInNrBee88OrMMnm/LCGM9SFrUfaMpOeU/qHzE2 HvEV8aQlHbo1zJ/BrDJgZF5mm4KfuqgfGbrreydJaAxmn4frq7uGsc4nbnn/BQoEc4 +ti1LROrexwBeAf0DEhyG03CLGDU7XpQU5GJdzIgtrV+p5ZZj0hWy9in/Skn1ZexMs 2XFlUfWKIxJBA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4H9Mnn6bpDz9rxR; Thu, 16 Sep 2021 18:23:09 +0200 (CEST) From: Vinicius Monego Date: Thu, 16 Sep 2021 16:21:01 +0000 Message-Id: <20210916162112.54462-11-monego@posteo.net> In-Reply-To: <20210916162112.54462-1-monego@posteo.net> References: <20210916162112.54462-1-monego@posteo.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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"))) + (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" + (string-append + ;; These tests require Docker. + "not test_terminate_job" + " and not test_invoke_function_from_sqs_exception" + " and not test_rotate_secret_lambda_invocations" + ;; ConnectionAborted errors. + " 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"))))))) (native-inputs `(("python-flask" ,python-flask) ("python-flask-cors" ,python-flask-cors)