From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: [PATCH 11/18] gnu: Add python-webtest. Date: Fri, 19 Feb 2016 18:34:17 -0800 Message-ID: <878u2gnm8d.fsf@dustycloud.org> References: <87bn7hsg83.fsf@dustycloud.org> <20160216020037.GJ3984@jasmine> <87r3g8nrlu.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWxNN-0000Wk-EV for guix-devel@gnu.org; Fri, 19 Feb 2016 21:34:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWxNM-00088G-Bc for guix-devel@gnu.org; Fri, 19 Feb 2016 21:34:29 -0500 Received: from dustycloud.org ([2600:3c02::f03c:91ff:feae:cb51]:50348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWxNM-00087f-4q for guix-devel@gnu.org; Fri, 19 Feb 2016 21:34:28 -0500 In-reply-to: <87r3g8nrlu.fsf@dustycloud.org> 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: Leo Famulari Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Updated. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0010-gnu-Add-python-webtest.patch >From 441c8e009a0a321e3b9fe4e5d6e5b209060a1eea Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 13 Feb 2016 22:13:14 -0800 Subject: [PATCH 10/18] gnu: Add python-webtest. * gnu/packages/python.scm (python-webtest, python2-webtest): New variables. --- gnu/packages/python.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 7dd2d69..65bf70d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7805,3 +7805,55 @@ fast xml and html manipulation.") (package (inherit pyquery) (native-inputs `(("python2-setuptools" ,python2-setuptools)))))) + +(define-public python-webtest + (package + (name "python-webtest") + (version "2.0.20") + (source + (origin + (method url-fetch) + (uri (pypi-uri "WebTest" version)) + (sha256 + (base32 + "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv")))) + (build-system python-build-system) + (arguments + `(;; Unfortunately we have to disable tests! + ;; This release of WebTest is pinned to python-nose < 1.3, + ;; but older versions of python-nose are plagued with the following + ;; bug(s), which rears its ugly head during test execution: + ;; https://github.com/nose-devs/nose/issues/759 + ;; https://github.com/nose-devs/nose/pull/811 + #:tests? #f)) + ;; Commented out code is no good, but in this case, once tests + ;; are ready to be enabled again, we should put the following + ;; in place: + ;; (native-inputs + ;; `(("python-nose" ,python-nose) ; technially < 1.3, + ;; ; but see above comment + ;; ("python-coverage" ,python-coverage) + ;; ("python-mock" ,python-mock) + ;; ("python-pastedeploy" ,python-pastedeploy) + ;; ("python-wsgiproxy2" ,python-wsgiproxy2) + ;; ("python-pyquery" ,python-pyquery))) + (propagated-inputs + `(("python-waitress" ,python-waitress) + ("python-webob" ,python-webob) + ("python-six" ,python-six) + ("python-beautifulsoup4" ,python-beautifulsoup4))) + (home-page "http://webtest.pythonpaste.org/") + (synopsis "Helper to test WSGI applications") + (description "Webtest allows you to test your Python web applications +without starting an HTTP server. It supports anything that supports the +minimum of WSGI.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-webtest)))))) + +(define-public python2-webtest + (let ((webtest (package-with-python2 + (strip-python2-variant python-webtest)))) + (package + (inherit webtest) + (native-inputs `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs webtest)))))) -- 2.6.3 --=-=-=--