From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 1/2] gnu: Add python-pytest-2.9.2. Date: Sun, 30 Oct 2016 18:48:02 -0400 Message-ID: <8bd646d465c0c04bcff77fa3927ef7882c2f7262.1477867669.git.leo@famulari.name> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c0ytn-0000Af-1p for guix-devel@gnu.org; Sun, 30 Oct 2016 18:48:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c0ytj-0000g4-2p for guix-devel@gnu.org; Sun, 30 Oct 2016 18:48:19 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:44439) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c0yti-0000fm-Ux for guix-devel@gnu.org; Sun, 30 Oct 2016 18:48:15 -0400 Received: from localhost.localdomain (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 2397FCC0C0 for ; Sun, 30 Oct 2016 18:48:13 -0400 (EDT) In-Reply-To: In-Reply-To: References: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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