all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 42072@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#42072] [PATCH 4/6] gnu: Add python-pytest-openfiles.
Date: Fri, 26 Jun 2020 19:15:40 -0300	[thread overview]
Message-ID: <20200626221542.22604-4-monego@posteo.net> (raw)
In-Reply-To: <20200626221542.22604-1-monego@posteo.net>

* 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





  parent reply	other threads:[~2020-06-26 22:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-26 22:15 [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Vinicius Monego
2020-06-26 22:15 ` [bug#42071] [PATCH 2/6] gnu: Add python-pytest-doctestplus Vinicius Monego
2020-06-26 22:15 ` [bug#42070] [PATCH 3/6] gnu: Add python-pytest-filter-subpackage Vinicius Monego
2020-06-26 22:15 ` Vinicius Monego [this message]
2020-06-26 22:15 ` [bug#42073] [PATCH 5/6] gnu: Add python-pytest-remotedata Vinicius Monego
2020-06-26 22:15 ` [bug#42074] [PATCH 6/6] gnu: Add python-pytest-mpl Vinicius Monego
2020-07-07 12:30 ` [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Nicolas Goaziou
2020-07-23 18:23 ` [bug#42069] [PATCH v2 " Vinicius Monego
2020-07-23 18:23   ` [bug#42069] [PATCH v2 2/6] gnu: Add python-pytest-doctestplus Vinicius Monego
2020-07-23 18:23   ` [bug#42069] [PATCH v2 3/6] gnu: Add python-pytest-filter-subpackage Vinicius Monego
2020-07-23 18:23   ` [bug#42069] [PATCH v2 4/6] gnu: Add python-pytest-openfiles Vinicius Monego
2020-07-23 18:23   ` [bug#42069] [PATCH v2 5/6] gnu: Add python-pytest-remotedata Vinicius Monego
2020-07-25 16:29     ` Marius Bakke
2020-07-23 18:23   ` [bug#42069] [PATCH v2 6/6] gnu: Add python-pytest-mpl Vinicius Monego
2020-07-25 16:24   ` [bug#42069] [PATCH v2 1/6] gnu: Add python-pytest-arraydiff Marius Bakke
2020-07-25  2:20 ` [bug#42069] [PATCH " Brett Gilio
2020-07-25 16:29   ` bug#42069: " Marius Bakke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200626221542.22604-4-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=42072@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.