gnu: Add python-pytest-2.9.2.

* gnu/packages/python.scm (python-pytest-2.9.2): New variable.
This commit is contained in:
Leo Famulari 2016-10-30 18:32:11 -04:00 committed by Marius Bakke
parent 667e777b4e
commit fca4ff3559
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -1668,6 +1668,31 @@ (define-public python-pytest
(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")