aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2016-10-30 18:32:11 -0400
committerLeo Famulari <leo@famulari.name>2016-10-31 17:02:34 -0400
commit0bc6ef2a87eb6501fb5925a1569a7c17a072f843 (patch)
tree5a238fd13b9f4bf199b272d63dd8dc642bd9d178
parentd76181a7a324e478900b19e3392ffaf901dc9eed (diff)
downloadpatches-0bc6ef2a87eb6501fb5925a1569a7c17a072f843.tar
patches-0bc6ef2a87eb6501fb5925a1569a7c17a072f843.tar.gz
gnu: Add python-pytest-2.9.2.
* gnu/packages/python.scm (python-pytest-2.9.2): New variable.
-rw-r--r--gnu/packages/python.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5df774fd10..f971bb0cfc 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")