[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/19: gnu: Add python-webtest.
From: |
Christopher Allan Webber |
Subject: |
11/19: gnu: Add python-webtest. |
Date: |
Mon, 15 Feb 2016 19:22:53 +0000 |
cwebber pushed a commit to branch wip-mediagoblin
in repository guix.
commit 2436f82d99e391b34ca48c0ae0856401caf32889
Author: Christopher Allan Webber <address@hidden>
Date: Sat Feb 13 22:13:14 2016 -0800
gnu: Add python-webtest.
* gnu/packages/python.scm (python-webtest, python2-webtest):
New variables.
---
gnu/packages/python.scm | 50 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9299626..bfcf4f5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -7804,3 +7804,53 @@ file.")
(inherit pyquery)
(inputs `(("python2-setuptools" ,python2-setuptools)
,@(package-inputs pyquery))))))
+
+(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 plagged 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)))
+ (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 "Helper to test WSGI applications")
+ (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)
+ (inputs `(("python2-setuptools" ,python2-setuptools)
+ ,@(package-inputs webtest))))))
- 01/19: gnu: Add python-mako., (continued)
- 01/19: gnu: Add python-mako., Christopher Allan Webber, 2016/02/15
- 02/19: gnu: Add python-alembic., Christopher Allan Webber, 2016/02/15
- 03/19: gnu: Add python2-apipkg., Christopher Allan Webber, 2016/02/15
- 04/19: gnu: Add python2-execnet., Christopher Allan Webber, 2016/02/15
- 05/19: gnu: Add python-pytest-xdist., Christopher Allan Webber, 2016/02/15
- 06/19: gnu: Add python-beautifulsoup4, Christopher Allan Webber, 2016/02/15
- 07/19: gnu: Add python-waitress., Christopher Allan Webber, 2016/02/15
- 08/19: gnu: Add python-wsgiproxy2., Christopher Allan Webber, 2016/02/15
- 09/19: gnu: Add python-pastedeploy, Christopher Allan Webber, 2016/02/15
- 10/19: gnu: Add python-pyquery, Christopher Allan Webber, 2016/02/15
- 11/19: gnu: Add python-webtest.,
Christopher Allan Webber <=
- 12/19: gnu: Add python-anyjson., Christopher Allan Webber, 2016/02/15
- 13/19: gnu: Add python-amqp., Christopher Allan Webber, 2016/02/15
- 14/19: gnu: Add python-kombu., Christopher Allan Webber, 2016/02/15
- 15/19: gnu: Add python-billiard., Christopher Allan Webber, 2016/02/15
- 16/19: gnu: Add python2-celery., Christopher Allan Webber, 2016/02/15
- 17/19: gnu: Add python-translitcodec., Christopher Allan Webber, 2016/02/15
- 18/19: gnu: Add python-editor., Christopher Allan Webber, 2016/02/15
- 19/19: gnu: Add mediagoblin., Christopher Allan Webber, 2016/02/15