From patchwork Fri Jun 26 22:15:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 22886 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 28FA627BBE3; Fri, 26 Jun 2020 23:24:01 +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_H4,RCVD_IN_MSPIKE_WL,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 ESMTP id A4D7227BBE1 for ; Fri, 26 Jun 2020 23:24:00 +0100 (BST) Received: from localhost ([::1]:34246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jowlM-0002Tm-53 for patchwork@mira.cbaines.net; Fri, 26 Jun 2020 18:24:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jowed-00086d-LZ for guix-patches@gnu.org; Fri, 26 Jun 2020 18:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59957) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jowed-0007XL-CG for guix-patches@gnu.org; Fri, 26 Jun 2020 18:17:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jowed-0008K2-8M for guix-patches@gnu.org; Fri, 26 Jun 2020 18:17:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42070] [PATCH 3/6] gnu: Add python-pytest-filter-subpackage. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 26 Jun 2020 22:17:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42070 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42070@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159320980331903 (code B ref -1); Fri, 26 Jun 2020 22:17:03 +0000 Received: (at submit) by debbugs.gnu.org; 26 Jun 2020 22:16:43 +0000 Received: from localhost ([127.0.0.1]:43259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joweI-0008IT-Lt for submit@debbugs.gnu.org; Fri, 26 Jun 2020 18:16:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:60360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joweD-0008Hl-Pg for submit@debbugs.gnu.org; Fri, 26 Jun 2020 18:16:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joweD-0007Ld-GK for guix-patches@gnu.org; Fri, 26 Jun 2020 18:16:37 -0400 Received: from mout01.posteo.de ([185.67.36.65]:50787) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joweB-0006Js-1q for guix-patches@gnu.org; Fri, 26 Jun 2020 18:16:37 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9DDD516006E for ; Sat, 27 Jun 2020 00:16:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1593209793; bh=+yWQwXOJMrnm56VpJkrfaTGYGWddhsfIhuIj97mEkI0=; h=From:To:Cc:Subject:Date:From; b=X6QKDbT+pvcZLcBrnJMQI4NkPDoy0IGOJPG5sWoBe585CwTdM6FY9JMOUewAoxBUF IbjnqB2Qbu5L/iNWuyXHnfXPKoQT6EkRKIEXagWIE3dRTIROgv5SjF6Ez8hRwDW0b5 ZR4RXUvyKdpegdkQ4yrUdYTH6odWUXTPa4rDhAOCZYE3rfZP7buhku6AV/v+4KGNs9 O4L2HgFNWDRmr50SvRsqO6FJXNmbyH4dnsd4e+0A3sVZmvt4t/lYQBQ3JaEamdLuuU MJs73B1KRoTu3fXXN2Je9PNT9ie/4Eeq0PnUKDDiqG+UpWruFlw/vK0jNWG3+/Rmdj 4z1Fqf26kbwOA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 49trnr3PVjz9rxS; Sat, 27 Jun 2020 00:16:32 +0200 (CEST) From: Vinicius Monego Date: Fri, 26 Jun 2020 19:15:39 -0300 Message-Id: <20200626221542.22604-3-monego@posteo.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200626221542.22604-1-monego@posteo.net> References: <20200626221542.22604-1-monego@posteo.net> MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/26 16:35:05 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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/check.scm (python-pytest-filter-subpackage): New variable. --- gnu/packages/check.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 6b682d18a2..d3ea6e31d6 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1538,6 +1538,43 @@ testing tools. @code{pytest-asyncio} provides useful fixtures and markers to make testing async code easier.") (license license:asl2.0))) +(define-public python-pytest-filter-subpackage + (package + (name "python-pytest-filter-subpackage") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-filter-subpackage" version)) + (sha256 + (base32 "1s4s2kd31yc65rfvl4xhy8xx806xhy59kc7668h6b6wq88xgrn5p")))) + (build-system python-build-system) + (arguments + '(;; One test is failing. There's an issue reported upstream. See + ;; https://github.com/astropy/pytest-filter-subpackage/issues/3. + ;; Disable it for now. + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; Make the installed plugin discoverable by Pytest. + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-vv" "-k" "not test_with_rst")))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-doctestplus" + ,python-pytest-doctestplus))) + (propagated-inputs + `(("python-pytest" ,python-pytest))) + (home-page "https://github.com/astropy/pytest-filter-subpackage") + (synopsis "Pytest plugin for filtering based on sub-packages") + (description + "This package contains a simple plugin for the pytest framework that +provides a shortcut to testing all code and documentation for a given +sub-package.") + (license license:bsd-3))) + (define-public python-cov-core (package (name "python-cov-core")