From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mIDONm539l5HVQAA0tVLHw (envelope-from ) for ; Fri, 26 Jun 2020 22:32:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uJybMm539l6BBwAAbx9fmQ (envelope-from ) for ; Fri, 26 Jun 2020 22:32:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 250AE9404C3 for ; Fri, 26 Jun 2020 22:32:14 +0000 (UTC) Received: from localhost ([::1]:34324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jowtI-0005kK-CG for larch@yhetil.org; Fri, 26 Jun 2020 18:32:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jowef-00089N-2D for guix-patches@gnu.org; Fri, 26 Jun 2020 18:17:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jowee-0007a5-OV for guix-patches@gnu.org; Fri, 26 Jun 2020 18:17:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jowee-0008KX-KC for guix-patches@gnu.org; Fri, 26 Jun 2020 18:17:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42072] [PATCH 4/6] gnu: Add python-pytest-openfiles. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 26 Jun 2020 22:17:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42072 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42072@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159320980431925 (code B ref -1); Fri, 26 Jun 2020 22:17:04 +0000 Received: (at submit) by debbugs.gnu.org; 26 Jun 2020 22:16:44 +0000 Received: from localhost ([127.0.0.1]:43264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joweJ-0008Il-Ev for submit@debbugs.gnu.org; Fri, 26 Jun 2020 18:16:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:60442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joweE-0008Ho-Va for submit@debbugs.gnu.org; Fri, 26 Jun 2020 18:16:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joweE-0007Nh-Lo for guix-patches@gnu.org; Fri, 26 Jun 2020 18:16:38 -0400 Received: from mout01.posteo.de ([185.67.36.65]:58075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joweC-0006MO-Rw for guix-patches@gnu.org; Fri, 26 Jun 2020 18:16:38 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 8B2A6160064 for ; Sat, 27 Jun 2020 00:16:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1593209795; bh=LPD7g4rxWALdEpbx53GEfN7QE54TkJ2srJpFG9yFBH0=; h=From:To:Cc:Subject:Date:From; b=juX68Ms6WpePjIQFuOEsVG7PbgUC9aum0CxPjS20hZdi1IDcHP5HIGgDXgb3MK0NO nG9HAZ1tl3rnZ9a5FDvNM8OGS6JAxV0GgFk8N999079uSoSgugOcVgmtP8OBXdV0pN XbvZNfxPCoct6h+NZ0BABhX5hGpM62PLFXlpBJsnTLTU6F1TFDshicDOt2FkwrXcZg MY7g+YDnEpmOTgibIMPoFYlpDzAXvvKQxIQsd3ZrNO80koVML7PO9exZF3AtlvLop5 I4+3ZEzTowynB5KdQPD3G+MAPxpEkvfNRl0kwYaLd+BZIy30zVj02nIwkq0wDV3Q8b XZYrB4US0EcGQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 49trnt2yShz9rxQ; Sat, 27 Jun 2020 00:16:34 +0200 (CEST) From: Vinicius Monego Date: Fri, 26 Jun 2020 19:15:40 -0300 Message-Id: <20200626221542.22604-4-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 Content-Transfer-Encoding: 8bit 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-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.net header.s=2017 header.b=juX68Ms6; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 5.09 X-TUID: 4wc76UgWiGB/ * gnu/packages/check.scm (python-pytest-openfiles): New variable. --- gnu/packages/check.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index d3ea6e31d6..136bdcc6d2 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -730,6 +730,38 @@ interfaces and processes.") (define-public python2-nose2 (package-with-python2 python-nose2)) +(define-public python-pytest-openfiles + (package + (name "python-pytest-openfiles") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-openfiles" version)) + (sha256 + (base32 "0n0a7fdc9m86360y96l23fvdmd6rw04bl6h5xqgl9qxfv08jk70p")))) + (build-system python-build-system) + (arguments + '(#: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")))))) + (native-inputs + `(("python-setuptools-scm" ,python-setuptools-scm))) + (propagated-inputs + `(("python-psutil" ,python-psutil) + ("python-pytest" ,python-pytest))) + (home-page "https://github.com/astropy/pytest-openfiles") + (synopsis "Pytest plugin for detecting inadvertent open file handles") + (description + "This package provides a plugin for the pytest framework that allows +developers to detect whether any file handles or other file-like objects +were inadvertently left open at the end of a unit test.") + (license license:bsd-3))) + (define-public python-unittest2 (package (name "python-unittest2") -- 2.20.1