unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 11/18] gnu: Add python-webtest.
@ 2016-02-15 23:31 Christopher Allan Webber
  2016-02-16  2:00 ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Allan Webber @ 2016-02-15 23:31 UTC (permalink / raw)
  To: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0011-gnu-Add-python-webtest.patch --]
[-- Type: text/x-patch, Size: 2815 bytes --]

From 562f8e028563ac3eebe6c90b1c9e4bb3bc379177 Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
Date: Sat, 13 Feb 2016 22:13:14 -0800
Subject: [PATCH 11/18] gnu: Add python-webtest.

* gnu/packages/python.scm (python-webtest, python2-webtest):
  New variables.
---
 gnu/packages/python.scm | 50 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 1238849..f5015df 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -7806,3 +7806,53 @@ pyquery uses lxml for fast xml and html manipulation.")
       (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 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))))))
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 11/18] gnu: Add python-webtest.
  2016-02-15 23:31 [PATCH 11/18] gnu: Add python-webtest Christopher Allan Webber
@ 2016-02-16  2:00 ` Leo Famulari
  2016-02-20  0:26   ` Christopher Allan Webber
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-02-16  2:00 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: guix-devel

On Mon, Feb 15, 2016 at 03:31:40PM -0800, Christopher Allan Webber wrote:
> From 562f8e028563ac3eebe6c90b1c9e4bb3bc379177 Mon Sep 17 00:00:00 2001
> From: Christopher Allan Webber <cwebber@dustycloud.org>
> Date: Sat, 13 Feb 2016 22:13:14 -0800
> Subject: [PATCH 11/18] gnu: Add python-webtest.
> 
> * gnu/packages/python.scm (python-webtest, python2-webtest):
>   New variables.
> ---
>  gnu/packages/python.scm | 50 +++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 50 insertions(+)
> 
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index 1238849..f5015df 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -7806,3 +7806,53 @@ pyquery uses lxml for fast xml and html manipulation.")
>        (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

s/plagged/plagued

> +       ;; 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)))

Thanks for the detail!

> +    (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")

The description should at least be a complete sentence, and ideally
offer more detail than the synopsis.

> +    (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)
> +      (inputs `(("python2-setuptools" ,python2-setuptools)
> +                ,@(package-inputs webtest))))))
> -- 
> 2.6.3
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 11/18] gnu: Add python-webtest.
  2016-02-16  2:00 ` Leo Famulari
@ 2016-02-20  0:26   ` Christopher Allan Webber
  2016-02-20  2:34     ` Christopher Allan Webber
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Allan Webber @ 2016-02-20  0:26 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel


Leo Famulari writes:

> On Mon, Feb 15, 2016 at 03:31:40PM -0800, Christopher Allan Webber wrote:
>> From 562f8e028563ac3eebe6c90b1c9e4bb3bc379177 Mon Sep 17 00:00:00 2001
>> From: Christopher Allan Webber <cwebber@dustycloud.org>
>> Date: Sat, 13 Feb 2016 22:13:14 -0800
>> Subject: [PATCH 11/18] gnu: Add python-webtest.
>> 
>> * gnu/packages/python.scm (python-webtest, python2-webtest):
>>   New variables.
>> ---
>>  gnu/packages/python.scm | 50 +++++++++++++++++++++++++++++++++++++++++++++++++
>>  1 file changed, 50 insertions(+)
>> 
>> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
>> index 1238849..f5015df 100644
>> --- a/gnu/packages/python.scm
>> +++ b/gnu/packages/python.scm
>> @@ -7806,3 +7806,53 @@ pyquery uses lxml for fast xml and html manipulation.")
>>        (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
>
> s/plagged/plagued

Fixed

>> +    (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")
>
> The description should at least be a complete sentence, and ideally
> offer more detail than the synopsis.

Fixed

>> +    (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)
>> +      (inputs `(("python2-setuptools" ,python2-setuptools)
>> +                ,@(package-inputs webtest))))))
>> -- 
>> 2.6.3
>> 
>> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 11/18] gnu: Add python-webtest.
  2016-02-20  0:26   ` Christopher Allan Webber
@ 2016-02-20  2:34     ` Christopher Allan Webber
  0 siblings, 0 replies; 4+ messages in thread
From: Christopher Allan Webber @ 2016-02-20  2:34 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 10 bytes --]

Updated.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0010-gnu-Add-python-webtest.patch --]
[-- Type: text/x-diff, Size: 2918 bytes --]

From 441c8e009a0a321e3b9fe4e5d6e5b209060a1eea Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-20  2:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-15 23:31 [PATCH 11/18] gnu: Add python-webtest Christopher Allan Webber
2016-02-16  2:00 ` Leo Famulari
2016-02-20  0:26   ` Christopher Allan Webber
2016-02-20  2:34     ` Christopher Allan Webber

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).