From patchwork Thu Sep 16 16:21:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 32915 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 099B427BBE3; Thu, 16 Sep 2021 17:44:20 +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 BB0CC27BBE1 for ; Thu, 16 Sep 2021 17:44:19 +0100 (BST) Received: from localhost ([::1]:37924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQuUk-0003of-SP for patchwork@mira.cbaines.net; Thu, 16 Sep 2021 12:44:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQuBC-0006s8-8M for guix-patches@gnu.org; Thu, 16 Sep 2021 12:24:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQuBB-0004V9-9H for guix-patches@gnu.org; Thu, 16 Sep 2021 12:24:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQuBB-0007HN-4a for guix-patches@gnu.org; Thu, 16 Sep 2021 12:24:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50018] [PATCH v3 13/21] gnu: Add python-pytest-rerunfailures. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Sep 2021 16:24:05 +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.163180940927763 (code B ref 50018); Thu, 16 Sep 2021 16:24:05 +0000 Received: (at 50018) by debbugs.gnu.org; 16 Sep 2021 16:23:29 +0000 Received: from localhost ([127.0.0.1]:56365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQuAb-0007Dj-C6 for submit@debbugs.gnu.org; Thu, 16 Sep 2021 12:23:29 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQuAa-0007DC-B6 for 50018@debbugs.gnu.org; Thu, 16 Sep 2021 12:23:28 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id C606B240027 for <50018@debbugs.gnu.org>; Thu, 16 Sep 2021 18:23:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1631809402; bh=v/EEzTcqy8pUWtDpNnLxaYH5lM4MX4nUR4/U3C2bsgw=; h=From:To:Cc:Subject:Date:From; b=miIrVOiFmM+qNMbUYsMUOFBZAy61LdBMOYSISd8+A4tZOZ3yHHpivaaGPlgzChkPc 3PBOZmSAcxWZj6jXMS6HMWY+UfyUu+vef8F2que3p9riqJMXcVSLdD4PERrTeXBkRT sfrJgmPzOdCUiN2msanefeK+5pAPdm2F3ZiNsgeVRKDhthLkEEmeoAMc2FBJti9o03 d3dMCBKolCrjGJi6JIT1aikOlOb3TYMV5sjBiFXAs+am49kS/4oWXv1S6d8wSK4IMG tZNOscclIH1+LduIIx2gNhto2yhHBaKvzsbd5BA5pqX2NalP/d+oXsPnSdymmV8T0r lilX4rGe0HBDw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4H9Mp202ztz9rxS; Thu, 16 Sep 2021 18:23:21 +0200 (CEST) From: Vinicius Monego Date: Thu, 16 Sep 2021 16:21:04 +0000 Message-Id: <20210916162112.54462-14-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-check.scm (python-pytest-rerunfailures): New variable. --- gnu/packages/python-check.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 18d14a5966..1e00691a75 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1037,6 +1037,34 @@ service processes for your tests with pytest.") new fixtures, new methods and new comparison objects.") (license license:expat))) +(define-public python-pytest-rerunfailures + (package + (name "python-pytest-rerunfailures") + (version "10.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-rerunfailures" version)) + (sha256 + (base32 "0ws2hbgh00nd6xchyi9ymyxfpg5jpxsy5mxdz4nxvriyw5nw05vn")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest" + "test_pytest_rerunfailures.py"))))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (home-page "https://github.com/pytest-dev/pytest-rerunfailures") + (synopsis "Pytest plugin to re-run tests to eliminate flaky failures") + (description "This package provides a Pytest plugin to re-run tests to +eliminate flaky failures.") + (license license:mpl2.0))) + (define-public python-pytest-aiohttp (package (name "python-pytest-aiohttp")