From: Leo Famulari <leo@famulari.name>
To: guix-devel@gnu.org
Subject: [PATCH 1/2] gnu: Add python-pytest-2.9.2.
Date: Sun, 30 Oct 2016 18:48:02 -0400 [thread overview]
Message-ID: <8bd646d465c0c04bcff77fa3927ef7882c2f7262.1477867669.git.leo@famulari.name> (raw)
In-Reply-To: <cover.1477867669.git.leo@famulari.name>
In-Reply-To: <cover.1477867669.git.leo@famulari.name>
* gnu/packages/python.scm (python-pytest-2.9.2): New variable.
---
gnu/packages/python.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9c7320f..ff3df3b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1665,6 +1665,31 @@ and many external plugins.")
(define-public python2-pytest
(package-with-python2 python-pytest))
+;; This package is used by Borg until we can upgrade all our Python packages to
+;; use a more recent pytest.
+(define-public python-pytest-2.9.2
+ (package
+ (inherit python-pytest)
+ (name "python-pytest")
+ (version "2.9.2")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest" version))
+ (sha256
+ (base32
+ "1n6igbc1b138wx1q5gca4pqw1j6nsyicfxds5n0b5989kaxqmh8j"))))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'disable-invalid-test
+ (lambda _
+ (substitute* "testing/test_argcomplete.py"
+ (("def test_remove_dir_prefix" line)
+ (string-append "@pytest.mark.skip"
+ "(reason=\"Assumes that /usr exists.\")\n "
+ line)))
+ #t)))))))
+
(define-public python-pytest-cov
(package
(name "python-pytest-cov")
--
2.10.2
next prev parent reply other threads:[~2016-10-30 22:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-30 22:48 [PATCH 0/2] Add new pytest for special cases Leo Famulari
2016-10-30 22:48 ` Leo Famulari [this message]
2016-11-03 13:36 ` [PATCH 1/2] gnu: Add python-pytest-2.9.2 Ludovic Courtès
2016-10-30 22:48 ` [PATCH 2/2] gnu: borg: Run the tests with python-pytest-2.9.2 Leo Famulari
2016-11-03 13:36 ` Ludovic Courtès
2016-10-31 9:19 ` [PATCH 0/2] Add new pytest for special cases Ricardo Wurmus
2016-10-31 17:20 ` Leo Famulari
2016-11-02 17:35 ` Hartmut Goebel
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8bd646d465c0c04bcff77fa3927ef7882c2f7262.1477867669.git.leo@famulari.name \
--to=leo@famulari.name \
--cc=guix-devel@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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).