From patchwork Wed Aug 11 23:45:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 32059 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 E4FFA27BC82; Thu, 12 Aug 2021 00:48:04 +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 AD44E27BC78 for ; Thu, 12 Aug 2021 00:48:04 +0100 (BST) Received: from localhost ([::1]:60822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDxx5-0000UB-Qm for patchwork@mira.cbaines.net; Wed, 11 Aug 2021 19:48:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDxw8-0006ut-RH for guix-patches@gnu.org; Wed, 11 Aug 2021 19:47:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53659) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDxw8-0006cE-Ks for guix-patches@gnu.org; Wed, 11 Aug 2021 19:47:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDxw8-0001Ju-Iq for guix-patches@gnu.org; Wed, 11 Aug 2021 19:47:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50018] [PATCH 11/19] gnu: Add python-pytest-rerunfailures. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Aug 2021 23:47:04 +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.16287255894879 (code B ref 50018); Wed, 11 Aug 2021 23:47:04 +0000 Received: (at 50018) by debbugs.gnu.org; 11 Aug 2021 23:46:29 +0000 Received: from localhost ([127.0.0.1]:36942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDxvZ-0001Gc-E7 for submit@debbugs.gnu.org; Wed, 11 Aug 2021 19:46:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]:44745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDxvX-0001GC-GZ for 50018@debbugs.gnu.org; Wed, 11 Aug 2021 19:46:28 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id A4CDC240104 for <50018@debbugs.gnu.org>; Thu, 12 Aug 2021 01:46:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628725581; bh=y5wSnWQjcC94WSgQ71EGAaX5fNd7VviloI/fIRkaufs=; h=From:To:Cc:Subject:Date:From; b=j6u2OS4PGWVwccHi59VYEpbH7UsSyRIG1AOLt0H5peGlkt9OEfMWfjQw4YutuuNOP X9cEMN8MkoarsxRGqSTgmsOtFmyVVIT/dFj6hhL+b7ovepog0BkJqJwxpJWi7EbH0b WxcEp0UvOPOY+auIxuB5MNrf3zUp9GXIbZ4b/v8tov44gNN/2J/8FmUHCgNLxE6Lux UpGaTlxclYqjABsMgyd7xCNEp65pwzlOWamOlkctfzkfmW4mmkG9NeLP2O3p1d7DEt FciDHL7m+B3YwvIzKeZk12n7ksmPe7SYBA420q/fzMVFMBrJsaqraPquyX/II6tj/b x//fPx5chJO3g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GlRKm5vhnz9rxH; Thu, 12 Aug 2021 01:46:20 +0200 (CEST) From: Vinicius Monego Date: Wed, 11 Aug 2021 23:45:03 +0000 Message-Id: <20210811234511.32450-11-monego@posteo.net> In-Reply-To: <20210811234511.32450-1-monego@posteo.net> References: <20210811234511.32450-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 0eef7ba8e5..148dfd5fad 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")