From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCH 12/31] gnu: Add python-pytest. Date: Fri, 5 Sep 2014 11:18:18 -0400 Message-ID: <1409930317-13220-12-git-send-email-dthompson2@worcester.edu> References: <1409930317-13220-1-git-send-email-dthompson2@worcester.edu> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPvIO-0001kK-43 for guix-devel@gnu.org; Fri, 05 Sep 2014 11:19:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPvII-0003oP-A0 for guix-devel@gnu.org; Fri, 05 Sep 2014 11:19:28 -0400 Received: from na3sys009aog117.obsmtp.com ([74.125.149.242]:37313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPvII-0003ap-3R for guix-devel@gnu.org; Fri, 05 Sep 2014 11:19:22 -0400 Received: by mail-yk0-f174.google.com with SMTP id 10so7129906ykt.19 for ; Fri, 05 Sep 2014 08:18:59 -0700 (PDT) In-Reply-To: <1409930317-13220-1-git-send-email-dthompson2@worcester.edu> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/python.scm (python-pytest, python2-pytest): New variables. --- gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6ef19d5..959a08b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1091,6 +1091,42 @@ introspection, and logging.") (define-public python2-py (package-with-python2 python-py)) +(define-public python-pytest + (package + (name "python-pytest") + (version "2.6.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/p/pytest/pytest-" + version ".tar.gz")) + (sha256 + (base32 + "0g2w4p0n42wvz8rq4k6gnzpkakgz3g8sfanxk8jrsra9675snkcr")) + (modules '((guix build utils))) + (snippet + ;; One of the tests involves the /usr directory, so it fails. + '(substitute* "testing/test_argcomplete.py" + (("def test_remove_dir_prefix\\(self\\):") + "@pytest.mark.xfail\n def test_remove_dir_prefix(self):"))))) + (build-system python-build-system) + (inputs + `(("python-setuptools" ,python-setuptools) + ("python-py" ,python-py) + ("python-nose" ,python-nose) + ("python-mock" ,python-mock))) + (home-page "http://pytest.org") + (synopsis "Python testing library") + (description + "Pytest is a testing tool that provides auto-discovery of test modules +and functions, detailed info on failing assert statements, modular fixtures, +and many external plugins.") + (license expat))) + +(define-public python2-pytest + (package-with-python2 python-pytest)) + (define-public behave (package (name "behave") -- 2.0.1