From bf560826052c86d5f7072ffdb6d0d454dbe8ef37 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sat, 4 Nov 2017 23:52:17 -0500 Subject: gnu: netsurf-buildsystem: Update to 1.6. * gnu/packages/web.scm (netsurf-buildsystem): Update to 1.6. --- gnu/packages/web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index eea8bb63a8..a28012dd2d 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4151,7 +4151,7 @@ tools they trust (e.g. wget).") (define netsurf-buildsystem (package (name "netsurf-buildsystem") - (version "1.5") + (version "1.6") (source (origin (method url-fetch) @@ -4159,7 +4159,7 @@ tools they trust (e.g. wget).") "buildsystem-" version ".tar.gz")) (sha256 (base32 - "0wdgvasrjik1dgvvpqbppbpyfzkqd1v45x3g9rq7p67n773azinv")))) + "0p5k708lcq8dip9xxck6hml32bjrbyipprm22bbsvdnsc0pqm71x")))) (build-system gnu-build-system) (inputs `(("perl" ,perl))) (arguments -- cgit 1.4.1 From 84dec7a0c08c66ba8434442c933e518c9c3b1508 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sun, 5 Nov 2017 00:14:29 -0500 Subject: gnu: hubbub: Update to 0.3.4. * gnu/packages/web.scm (hubbub): Update to 0.3.4. --- gnu/packages/web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index a28012dd2d..e5dbec5e78 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4215,7 +4215,7 @@ C. It is developed as part of the NetSurf project.") (define-public hubbub (package (name "hubbub") - (version "0.3.3") + (version "0.3.4") (source (origin (method url-fetch) @@ -4223,7 +4223,7 @@ C. It is developed as part of the NetSurf project.") "lib" name "-" version "-src.tar.gz")) (sha256 (base32 - "101781iw32p47386fxqr01nrkywi12w17ajh02k2vlga4z8zyv86")) + "1shi4hv8drn9zy8f2f6yhnz2dqnpg5jkybvqhzggfjx1q35fbxz3")) (patches (search-patches "hubbub-sort-entities.patch")))) (build-system gnu-build-system) (native-inputs -- cgit 1.4.1 From e33f6efd60790a0cd9752db07fe3b2b5e8d8049b Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sun, 5 Nov 2017 00:19:55 -0500 Subject: gnu: libwapcaplet: Update to 0.4.0. * gnu/packages/web.scm (libwapcaplet): Update to 0.4.0. --- gnu/packages/web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index e5dbec5e78..df406005bc 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4314,7 +4314,7 @@ commenting.") (define-public libwapcaplet (package (name "libwapcaplet") - (version "0.3.0") + (version "0.4.0") (source (origin (method url-fetch) @@ -4322,7 +4322,7 @@ commenting.") name "-" version "-src.tar.gz")) (sha256 (base32 - "0cs1dd2afjgc3wf5gqg434hv6jdabrp9qvlpl4dp53nhkyfywna3")))) + "15yr0pl6qa6biy36qkmd949ydbjzpqiaccpx3sprh4jknabsk1vv")))) (build-system gnu-build-system) (native-inputs `(("netsurf-buildsystem" ,netsurf-buildsystem) -- cgit 1.4.1 From 036f47a37e9fcb914d5a66976722124b6c4869b1 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sun, 5 Nov 2017 00:49:33 -0500 Subject: gnu: libdom: Update to 0.3.2. * gnu/packages/web.scm (libdom): Update to 0.3.2. --- gnu/packages/web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index df406005bc..b05d3b6daa 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4368,7 +4368,7 @@ written in C. It is developed as part of the NetSurf project.") (define-public libdom (package (name "libdom") - (version "0.3.1") + (version "0.3.2") (source (origin (method url-fetch) @@ -4376,7 +4376,7 @@ written in C. It is developed as part of the NetSurf project.") name "-" version "-src.tar.gz")) (sha256 (base32 - "0qy7c8b229aiamyqqjgp6m1jlzc3fpl8s9dk33kxzkj70na8l7hv")))) + "1zb7x2qwm6p11lph6j2vcyp4a0a8i1klkqilnk5vb4qmlzzpcv7i")))) (build-system gnu-build-system) (native-inputs `(("netsurf-buildsystem" ,netsurf-buildsystem) -- cgit 1.4.1 From b20d97f8488f511ff63e53c902c9e5b4896a0553 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sun, 5 Nov 2017 01:05:05 -0500 Subject: gnu: libsvgtiny: Update to 0.1.6. * gnu/packages/web.scm (libsvgtiny): Update to 0.1.6. --- gnu/packages/web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index b05d3b6daa..267a722798 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4404,7 +4404,7 @@ developed as part of the NetSurf project.") (define-public libsvgtiny (package (name "libsvgtiny") - (version "0.1.5") + (version "0.1.6") (source (origin (method url-fetch) @@ -4412,7 +4412,7 @@ developed as part of the NetSurf project.") name "-" version "-src.tar.gz")) (sha256 (base32 - "0w5hab9x1saz4lq2s9w47x1r64fbzcsl5bvdjph9c9dq68qv3f8a")))) + "12ppy2r7m21ykrjgbf067cgi6dn48fkj7i4b7m64xl4dc13y0ah6")))) (build-system gnu-build-system) (native-inputs `(("netsurf-buildsystem" ,netsurf-buildsystem) -- cgit 1.4.1 From f379c52f27094a8ea156ce65406d53b02f6e8081 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sun, 5 Nov 2017 01:16:47 -0500 Subject: gnu: libnsgif: Update to 0.2.0. * gnu/packages/web.scm (libnsgif): Update to 0.2.0. --- gnu/packages/web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 267a722798..c4aebd7d1d 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4458,7 +4458,7 @@ written in C. It is developed as part of the NetSurf project.") (define-public libnsgif (package (name "libnsgif") - (version "0.1.4") + (version "0.2.0") (source (origin (method url-fetch) @@ -4466,7 +4466,7 @@ written in C. It is developed as part of the NetSurf project.") name "-" version "-src.tar.gz")) (sha256 (base32 - "1ldsyscsgqwc8g5481h9nqmwirpp1pp57hmss450hr0mqra26g0k")))) + "1phwf0m24m6nd7096fw14hanl4f8gr9bcppi834lbik04agxk38a")))) (build-system gnu-build-system) (native-inputs `(("netsurf-buildsystem" ,netsurf-buildsystem))) -- cgit 1.4.1 From 772588bd223230d7786f64ef74c86a45c4d81b04 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sun, 5 Nov 2017 10:50:06 -0600 Subject: gnu: libnspsl: Update to 0.1.2. * gnu/packages/web.scm (libnspsl): Update to 0.1.2. --- gnu/packages/web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index c4aebd7d1d..e915fdd0cc 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4504,7 +4504,7 @@ developed as part of the NetSurf project.") (define-public libnspsl (package (name "libnspsl") - (version "0.1.0") + (version "0.1.2") (source (origin (method url-fetch) @@ -4512,7 +4512,7 @@ developed as part of the NetSurf project.") name "-" version "-src.tar.gz")) (sha256 (base32 - "0x3frscrp9bzxlm9ama5laxjr3zi8cg20r8lhsamw4x4zyyk145y")))) + "0wim5hwzwrfrvvap096whf79m2mnfivbqhqlh03ci9d89xb1w0y9")))) (build-system gnu-build-system) (native-inputs `(("netsurf-buildsystem" ,netsurf-buildsystem))) -- cgit 1.4.1 From d8799bd0df20ca8326f08afc916df78e51d926ca Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sun, 5 Nov 2017 11:56:59 -0600 Subject: gnu: netsurf: Update to 3.7. For compatibility, dependents must be updated at the same time. * gnu/packages/web.scm (libcss): Update to 0.7.0 (nsgenbind): Update to 0.5. (netsurf): Update to 3.7. [arguments]: Fix binary name in .desktop. Adjust "docs" directory name. * gnu/packages/patches/netsurf-system-utf8proc.patch: Adjust to new source. --- gnu/packages/patches/netsurf-system-utf8proc.patch | 51 ++++++++-------------- gnu/packages/web.scm | 16 +++---- 2 files changed, 26 insertions(+), 41 deletions(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/patches/netsurf-system-utf8proc.patch b/gnu/packages/patches/netsurf-system-utf8proc.patch index 254bf52c93..654d45d017 100644 --- a/gnu/packages/patches/netsurf-system-utf8proc.patch +++ b/gnu/packages/patches/netsurf-system-utf8proc.patch @@ -28,37 +28,22 @@ Work around upstream's lack of a pkg-config file and update API. #include "utils/errors.h" #include "utils/idna.h" -@@ -250,7 +250,7 @@ - return NSERROR_NOMEM; - } - -- nfc_size = utf8proc_normalise(nfc_label, nfc_size, -+ nfc_size = utf8proc_normalize_utf32(nfc_label, nfc_size, - UTF8PROC_STABLE | UTF8PROC_COMPOSE); - if (nfc_size < 0) { - return NSERROR_NOMEM; -@@ -565,7 +565,7 @@ - } - - /* Perform NFC normalisation */ -- ucs4_len = utf8proc_normalise(ucs4, u_ucs4_len, -+ ucs4_len = utf8proc_normalize_utf32(ucs4, u_ucs4_len, - UTF8PROC_STABLE | UTF8PROC_COMPOSE); - if (ucs4_len < 0) { - free(ucs4); ---- netsurf-3.6/test/Makefile -+++ netsurf-3.6/test/Makefile -@@ -112,11 +112,11 @@ - -D_XOPEN_SOURCE=600 \ - -Itest -Iinclude -Icontent/handlers -Ifrontends -I. -I.. \ - -Dnsgtk \ -- $(shell pkg-config --cflags libcurl libparserutils libwapcaplet libdom libnsutils libutf8proc libidn) \ -+ $(shell pkg-config --cflags libcurl libparserutils libwapcaplet libdom libnsutils libidn) \ - $(LIB_CFLAGS) \ - $(COV_CFLAGS) - --TESTLDFLAGS := $(shell pkg-config --libs libcurl libparserutils libwapcaplet libdom libnsutils libutf8proc libidn) -lz \ -+TESTLDFLAGS := $(shell pkg-config --libs libcurl libparserutils libwapcaplet libdom libnsutils libidn) -lz -lutf8proc \ - $(LIB_LDFLAGS)\ - $(COV_LDFLAGS) +--- netsurf-3.7/test/Makefile 2017-10-15 08:39:24.000000000 -0500 ++++ netsurf-3.7/test/Makefile 2017-11-05 11:14:46.219013218 -0600 +@@ -139,14 +139,14 @@ + -D_XOPEN_SOURCE=600 \ + -Itest -Iinclude -Icontent/handlers -Ifrontends -I. -I.. \ + -Dnsgtk \ +- $(shell pkg-config --cflags libcurl libparserutils libwapcaplet libdom libnsutils libutf8proc) \ ++ $(shell pkg-config --cflags libcurl libparserutils libwapcaplet libdom libnsutils) \ + $(LIB_CFLAGS) + TESTCFLAGS := $(BASE_TESTCFLAGS) \ + $(COV_CFLAGS) \ + $(COV_CPPFLAGS) + + TESTLDFLAGS := -L$(TESTROOT) \ +- $(shell pkg-config --libs libcurl libparserutils libwapcaplet libdom libnsutils libutf8proc) -lz \ ++ $(shell pkg-config --libs libcurl libparserutils libwapcaplet libdom libnsutils) -lz -lutf8proc \ + $(LIB_LDFLAGS)\ + $(COV_LDFLAGS) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index e915fdd0cc..f49a4e55f7 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4340,7 +4340,7 @@ developed as part of the Netsurf project.") (define-public libcss (package (name "libcss") - (version "0.6.0") + (version "0.7.0") (source (origin (method url-fetch) @@ -4348,7 +4348,7 @@ developed as part of the Netsurf project.") name "-" version "-src.tar.gz")) (sha256 (base32 - "0qp4p1q1dwgdra4pkrzd081zjzisxkgwx650ijx323j8bj725daf")))) + "16mns3h8vj7iw8myvgnw58q84irvbjlvfkxh8mdw6fbkjvaa7cnz")))) (build-system gnu-build-system) (native-inputs `(("netsurf-buildsystem" ,netsurf-buildsystem) @@ -4527,7 +4527,7 @@ Public Suffix List. It is developed as part of the NetSurf project.") (define-public nsgenbind (package (name "nsgenbind") - (version "0.4") + (version "0.5") (source (origin (method url-fetch) @@ -4535,7 +4535,7 @@ Public Suffix List. It is developed as part of the NetSurf project.") name "-" version "-src.tar.gz")) (sha256 (base32 - "078gpbfcs96bgcba0ygha0ph9jzqr6ry5s3a8p6sl61px2908s66")))) + "1iwjpdaan0njlhb9ir6a2q5vpxfmkqfldkvnqszqdz50b44vd1jv")))) (build-system gnu-build-system) (native-inputs `(("netsurf-buildsystem" ,netsurf-buildsystem) @@ -4555,7 +4555,7 @@ w3c webidl files and a binding configuration file.") (define-public netsurf (package (name "netsurf") - (version "3.6") + (version "3.7") (source (origin (method url-fetch) @@ -4563,7 +4563,7 @@ w3c webidl files and a binding configuration file.") "releases/source/netsurf-" version "-src.tar.gz")) (sha256 (base32 - "174sjx0566agckwmlj4w2cip5qbxdiafyhlp185a1qprxx84pbjr")) + "05kynfzzwd4fc03vbqdjpghh5xnk2yrh43w7vikak89vla30mhpg")) (patches (search-patches "netsurf-system-utf8proc.patch" "netsurf-y2038-tests.patch" "netsurf-longer-test-timeout.patch")))) @@ -4652,10 +4652,10 @@ w3c webidl files and a binding configuration file.") (copy-file "frontends/gtk/res/netsurf-gtk.desktop" desktop) (substitute* desktop - (("netsurf-gtk") (string-append out "/bin/netsurf")) + (("netsurf-gtk") (string-append out "/bin/netsurf-gtk")) (("netsurf.png") (string-append out "/share/netsurf/" "netsurf.xpm"))) - (install-file "Docs/netsurf-gtk.1" + (install-file "docs/netsurf-gtk.1" (string-append out "/share/man/man1/")) #t)))))) (home-page "http://www.netsurf-browser.org") -- cgit 1.4.1 From d298e7652abaa1a51c0ecc71b1fd9dcdae541c23 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 6 Nov 2017 20:39:29 +0200 Subject: gnu: perl-test-www-mechanize-psgi: Update source uri. * gnu/packages/web.scm (perl-test-www-mechanize-psgi)[source]: Update to new source uri. --- gnu/packages/web.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index f49a4e55f7..cefb26a176 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -3403,7 +3403,7 @@ testing of Catalyst applications without needing to start up a web server.") (source (origin (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/L/LB/LBROCARD/" + (uri (string-append "mirror://cpan/authors/id/O/OA/OALDERS/" "Test-WWW-Mechanize-PSGI-" version ".tar.gz")) (sha256 (base32 -- cgit 1.4.1 From 9ecc4c69eba9ad63ad06758c83b9838febea86ae Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 7 Nov 2017 07:22:53 +0100 Subject: gnu: r-servr: Update to 0.8. * gnu/packages/web.scm (r-servr): Update to 0.8. --- gnu/packages/web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index cefb26a176..070d0dbd00 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -3748,13 +3748,13 @@ in systems and applications.") (define-public r-servr (package (name "r-servr") - (version "0.7") + (version "0.8") (source (origin (method url-fetch) (uri (cran-uri "servr" version)) (sha256 (base32 - "0rxh89csqlpyf9wv5wlymya9kbddj79mlmxz2x0xmls12gbrxaaa")))) + "05pz4ychqp4cqywcdavdi8jj3y09gmam097d2idjnlcg9x61h2s9")))) (build-system r-build-system) (propagated-inputs `(("r-httpuv" ,r-httpuv) -- cgit 1.4.1 From a67f0946717420f264646556812cbd0d197bb360 Mon Sep 17 00:00:00 2001 From: Rutger Helling Date: Mon, 6 Nov 2017 10:32:05 +0100 Subject: gnu: Add websockify. * gnu/packages/web.scm (websockify): New variable. Signed-off-by: Marius Bakke --- gnu/packages/web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 070d0dbd00..8d3c3430bb 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2017 Kei Kebreau ;;; Copyright © 2017 Petter ;;; Copyright © 2017 Pierre Langlois +;;; Copyright © 2017 Rutger Helling ;;; ;;; This file is part of GNU Guix. ;;; @@ -86,6 +87,7 @@ #:use-module (gnu packages lua) #:use-module (gnu packages markup) #:use-module (gnu packages ncurses) + #:use-module (gnu packages openstack) #:use-module (gnu packages base) #:use-module (gnu packages perl) #:use-module (gnu packages python) @@ -871,6 +873,35 @@ server). It was primarily designed to be used by one person or a small group of people.") (license l:expat))) +(define-public websockify + (package + (name "websockify") + (version "0.8.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/novnc/websockify/archive/v" + version "/archive.tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1kjq6gibsvbb6zx5gi8hgh7110x62pbwcqkwapf3k7s27w5y907h")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; FIXME: 2 out of 6 tests fail with "ImportError: No module + ; named 'stubout'". The tests can be run by replacing the check phase with + ; the command "python setup.py nosetests --verbosity=3". + (native-inputs `(; Required for tests: + ("python-mox3", python-mox3) + ("python-nose", python-nose))) + (propagated-inputs `(("python-numpy", python-numpy))) + (home-page "https://github.com/novnc/websockify") + (synopsis "WebSockets support for any application/server") + (description "Websockify translates WebSockets traffic to normal socket +traffic. Websockify accepts the WebSockets handshake, parses it, and then +begins forwarding traffic between the client and the target in both +directions.") + (license l:lgpl3))) + (define-public wwwoffle (package (name "wwwoffle") -- cgit 1.4.1 From 3c3d20c8f35082e20251ec962997b12def2c3164 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Thu, 9 Nov 2017 13:33:42 +0100 Subject: gnu: libpsl: Update to 0.19.1. * gnu/packages/web.scm (libpsl): Update to 0.19.1. --- gnu/packages/web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 8d3c3430bb..41979f2e2a 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -732,7 +732,7 @@ for efficient socket-like bidirectional reliable communication channels.") (define-public libpsl (package (name "libpsl") - (version "0.18.0") + (version "0.19.1") (source (origin (method url-fetch) (uri (string-append "https://github.com/rockdaboot/libpsl/" @@ -740,7 +740,7 @@ for efficient socket-like bidirectional reliable communication channels.") "/libpsl-" version ".tar.gz")) (sha256 (base32 - "00iids8ldsqnnndmcfjp6kc00lv7fawf5l24mpbdbkh98yazgc4i")))) + "0ydwi9m39qv6k7zagqx2kzxzf59ipxj9r0c71xmwngdx3fslclbk")))) (build-system gnu-build-system) (native-inputs `(("pkg-config" ,pkg-config))) -- cgit 1.4.1 From d1b5043947551db577f22b6adeb2831357408a65 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sat, 11 Nov 2017 21:09:10 +0100 Subject: gnu: fcgi: Use archived home page fork. * gnu/packages/web.scm (fcgi)[home-page]: Use archived version. --- gnu/packages/web.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 41979f2e2a..170793de2c 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -336,7 +336,7 @@ documentation.") (source (origin (method url-fetch) - ;; Upstream has disappeared + ;; Upstream has disappeared. (uri (string-append "https://sources.archlinux.org/other/packages/fcgi/" "fcgi-" version ".tar.gz")) (sha256 @@ -347,7 +347,8 @@ documentation.") (build-system gnu-build-system) ;; Parallel building is not supported. (arguments `(#:parallel-build? #f)) - (home-page "http://www.fastcgi.com") + ;; This is an archived fork of the original home page, www.fastcgi.com. + (home-page "https://fastcgi-archives.github.io/") (synopsis "Language-independent, high-performant extension to CGI") (description "FastCGI is a language independent, scalable extension to CGI that provides high performance without the limitations of server specific -- cgit 1.4.1 From 5ade9bc76932b69930a5f0467ef5356d33b762d3 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sat, 11 Nov 2017 21:09:49 +0100 Subject: gnu: fcgi: Fix typo in description. * gnu/packages/web.scm (fcgi)[description]: Fix typo. --- gnu/packages/web.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 170793de2c..6a90868467 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -350,7 +350,7 @@ documentation.") ;; This is an archived fork of the original home page, www.fastcgi.com. (home-page "https://fastcgi-archives.github.io/") (synopsis "Language-independent, high-performant extension to CGI") - (description "FastCGI is a language independent, scalable extension to CGI + (description "FastCGI is a language-independent, scalable extension to CGI that provides high performance without the limitations of server specific APIs.") ;; This package is released under the Open Market License, a variant of -- cgit 1.4.1 From 5ccde2079e0b5f6e04b11765905dbd49d191fd8f Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 13 Nov 2017 23:03:01 +0100 Subject: gnu: Move test packages from perl to perl-check. * gnu/packages/perl.scm (perl-test2-bundle-extended, perl-test2-plugin-nowarnings, perl-test-base, perl-test-class, perl-test-class-most, perl-test-cleannamespaces, perl-test-command, perl-test-cpan-meta, perl-test-cpan-meta-json, perl-test-deep, perl-test-differences, perl-test-directory, perl-test-eol, perl-test-exception, perl-test-fatal, perl-test-file-sharedir-dist, perl-test-files, perl-test-harness, perl-test-leaktrace, perl-test-longstring, perl-test-manifest, perl-test-memory-cycle, perl-test-mockobject, perl-test-mocktime, perl-test-most, perl-test-needs, perl-test-notabs, perl-test-nowarnings, perl-test-number-delta, perl-test-output, perl-test-pod, perl-test-pod-coverage, perl-test-requires, perl-test-script, perl-test-sharedfork, perl-test-simple, perl-test-taint, perl-test-tester, perl-test-trap, perl-test-utf8, perl-test-warn, perl-test-warnings, perl-test-without-module, perl-test-writevariants, perl-test-yaml, perl-test-trailingspace): Move variables to ... * gnu/packages/perl-check.scm: ... this new file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/admin.scm, gnu/packages/bioinformatics.scm, gnu/packages/crypto.scm, gnu/packages/databases.scm, gnu/packages/glib.scm, gnu/packages/gnupg.scm, gnu/packages/image-viewers.scm, gnu/packages/language.scm, gnu/packages/networking.scm, gnu/packages/package-management.scm, gnu/packages/perl.scm, gnu/packages/terminals.scm, gnu/packages/tex.scm, gnu/packages/version-control.scm, gnu/packages/web.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm: Use perl-check module. --- gnu/local.mk | 1 + gnu/packages/admin.scm | 1 + gnu/packages/bioinformatics.scm | 1 + gnu/packages/crypto.scm | 1 + gnu/packages/databases.scm | 1 + gnu/packages/glib.scm | 1 + gnu/packages/gnupg.scm | 1 + gnu/packages/image-viewers.scm | 1 + gnu/packages/language.scm | 1 + gnu/packages/networking.scm | 1 + gnu/packages/package-management.scm | 1 + gnu/packages/perl-check.scm | 1169 +++++++++++++++++++++++++++++++++++ gnu/packages/perl.scm | 1135 +--------------------------------- gnu/packages/terminals.scm | 1 + gnu/packages/tex.scm | 1 + gnu/packages/version-control.scm | 1 + gnu/packages/web.scm | 2 +- gnu/packages/xml.scm | 1 + gnu/packages/xorg.scm | 1 + 19 files changed, 1187 insertions(+), 1135 deletions(-) create mode 100644 gnu/packages/perl-check.scm (limited to 'gnu/packages/web.scm') diff --git a/gnu/local.mk b/gnu/local.mk index b94a6d75b0..00d82ee4a1 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -325,6 +325,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/pdf.scm \ %D%/packages/pem.scm \ %D%/packages/perl.scm \ + %D%/packages/perl-check.scm \ %D%/packages/perl-web.scm \ %D%/packages/photo.scm \ %D%/packages/php.scm \ diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 7b8e41fced..30b5a1fb6a 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -55,6 +55,7 @@ #:use-module (gnu packages gettext) #:use-module (gnu packages pcre) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages tcl) #:use-module (gnu packages compression) #:use-module (gnu packages cross-base) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index d34f91f585..cf2671ce66 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -81,6 +81,7 @@ #:use-module (gnu packages parallel) #:use-module (gnu packages pdf) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) #:use-module (gnu packages protobuf) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index e17db289e5..dce7d3534c 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -42,6 +42,7 @@ #:use-module (gnu packages nettle) #:use-module (gnu packages password-utils) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages python) #:use-module (gnu packages readline) #:use-module (gnu packages search) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index b1cb9ed2bf..38ca5708d7 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -66,6 +66,7 @@ #:use-module (gnu packages parallel) #:use-module (gnu packages pcre) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) #:use-module (gnu packages python) diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index bc87750045..de74278597 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -46,6 +46,7 @@ #:use-module (gnu packages nettle) #:use-module (gnu packages pcre) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages xml) diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm index 47a594b6e1..d179d41963 100644 --- a/gnu/packages/gnupg.scm +++ b/gnu/packages/gnupg.scm @@ -39,6 +39,7 @@ #:use-module (gnu packages crypto) #:use-module (gnu packages openldap) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages pth) #:use-module (gnu packages python) #:use-module (gnu packages qt) diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm index f9b00de848..facf81b087 100644 --- a/gnu/packages/image-viewers.scm +++ b/gnu/packages/image-viewers.scm @@ -45,6 +45,7 @@ #:use-module (gnu packages imagemagick) #:use-module (gnu packages maths) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages photo) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm index ee0c5c0d89..57d625057c 100644 --- a/gnu/packages/language.scm +++ b/gnu/packages/language.scm @@ -19,6 +19,7 @@ (define-module (gnu packages language) #:use-module (gnu packages) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages web) #:use-module (guix packages) #:use-module (guix build-system perl) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 57b32c252f..1f4906b7b5 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -70,6 +70,7 @@ #:use-module (gnu packages ncurses) #:use-module (gnu packages pcre) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages qt) diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 2a5395589f..1242156dbf 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -46,6 +46,7 @@ #:use-module (gnu packages texinfo) #:use-module (gnu packages nettle) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages curl) #:use-module (gnu packages web) #:use-module (gnu packages man) diff --git a/gnu/packages/perl-check.scm b/gnu/packages/perl-check.scm new file mode 100644 index 0000000000..f0ee2a5362 --- /dev/null +++ b/gnu/packages/perl-check.scm @@ -0,0 +1,1169 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2014, 2015 Eric Bavier +;;; Copyright © 2016 Danny Milosavljevic +;;; Copyright © 2016 Ben Woodcroft +;;; Copyright © 2016 Ricardo Wurmus +;;; Coypright © 2016 ng0 +;;; Copyright © 2016, 2017 Efraim Flashner +;;; Copyright © 2016, 2017 Alex Sassmannshausen +;;; Copyright © 2016, 2017 Marius Bakke +;;; Copyright © 2017 Leo Famulari +;;; Copyright © 2017 Christopher Baines +;;; Copyright © 2017 Petter +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages perl-check) + #:use-module (guix licenses) + #:use-module (gnu packages) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system perl) + #:use-module (gnu packages perl)) + +(define-public perl-test2-bundle-extended + (package + (name "perl-test2-bundle-extended") + (version "0.000072") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/E/EX/EXODIST/Test2-Suite-" + version ".tar.gz")) + (sha256 + (base32 + "0hgd6n29qjh1pwqvbglm2kb852yqshmixqqjhsr2kvvibdr58qpf")))) + (build-system perl-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'set-env + (lambda _ (setenv "PERL_USE_UNSAFE_INC" "1")))))) + (propagated-inputs + `(("perl-importer" ,perl-importer) + ("perl-term-table" ,perl-term-table) + ("perl-sub-info" ,perl-sub-info))) + (home-page "http://search.cpan.org/~exodist/Test2-Suite/lib/Test2/Bundle/Extended.pm") + (synopsis "Full set of tools for Test2::Suite") + (description "This package provides a rich set of tools, plugins, bundles, +etc built upon the Test2 testing library.") + (license perl-license))) + +(define-public perl-test2-plugin-nowarnings + (package + (name "perl-test2-plugin-nowarnings") + (version "0.06") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/D/DR/DROLSKY/Test2-Plugin-NoWarnings-" + version ".tar.gz")) + (sha256 + (base32 + "002qk6qsm0l6r2kaxywvc38w0yf0mlavgywq8li076pn6kcw3242")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-test2-bundle-extended" ,perl-test2-bundle-extended))) + (home-page "http://search.cpan.org/dist/Test2-Plugin-NoWarnings//") + (synopsis "Fail if tests warn") + (description "Loading this plugin causes your tests to fail if there any +warnings while they run. Each warning generates a new failing test and the +warning content is outputted via diag.") + (license perl-license))) + +(define-public perl-test-base + (package + (name "perl-test-base") + (version "0.88") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/I/IN/INGY/" + "Test-Base-" version ".tar.gz")) + (sha256 + (base32 + "0fch1cvivnszbnwhpfmwv1rin04j5xkj1n1ylfmlxg6bm72qqdjj")))) + (build-system perl-build-system) + (native-inputs + `(("perl-algorithm-diff" ,perl-algorithm-diff) + ("perl-text-diff" ,perl-text-diff))) + (propagated-inputs + `(("perl-spiffy" ,perl-spiffy) + ("perl-test-deep" ,perl-test-deep))) + (home-page "http://search.cpan.org/dist/Test-Base/") + (synopsis "Data-driven testing framework for Perl") + (description "Test::Base gives a way to trivially write your own test +framework base class. It concentrates on offering reusable data driven +patterns, so that you can write tests with a minimum of code.") + (license perl-license))) + +(define-public perl-test-class + (package + (name "perl-test-class") + (version "0.50") + (source + (origin + (method url-fetch) + (uri (string-append + "https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-Class-" + version + ".tar.gz")) + (sha256 + (base32 + "0l0kk5jvxjkic2jkf1r7v41irb344aasnzr3f5ygjgxgiknm9489")))) + (build-system perl-build-system) + (native-inputs + `(("perl-test-exception" ,perl-test-exception))) + (inputs + `(("perl-module-runtime" ,perl-module-runtime) + ("perl-mro-compat" ,perl-mro-compat) + ("perl-try-tiny" ,perl-try-tiny))) + (home-page "http://search.cpan.org/dist/Test-Class/") + (synopsis "Easily create test classes in an xUnit/JUnit style") + (description "@code{Test::Class} provides a simple way of creating classes +and objects to test your code in an xUnit style. + +Built using @code{Test::Builder}, it was designed to work with other +@code{Test::Builder} based modules (@code{Test::More}, +@code{Test::Differences}, @code{Test::Exception}, etc.).") + (license perl-license))) + +(define-public perl-test-class-most + (package + (name "perl-test-class-most") + (version "0.08") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/O/OV/OVID/Test-Class-Most-" + version + ".tar.gz")) + (sha256 + (base32 + "1zvx9hil0mg0pnb8xfa4m0xgjpvh8s5gnbyprq3xwpdsdgcdwk33")))) + (build-system perl-build-system) + (native-inputs + `(("perl-module-build" ,perl-module-build))) + (inputs + `(("perl-test-class" ,perl-test-class) + ("perl-test-most" ,perl-test-most) + ("perl-module-runtime" ,perl-module-runtime) + ("perl-try-tiny" ,perl-try-tiny) + ("perl-mro-compat" ,perl-mro-compat))) + (home-page "http://search.cpan.org/dist/Test-Class-Most/") + (synopsis "Test classes the easy way") + (description "@code{Test::Class::Most} provides some more convenience when +using @code{Test::Class}.") + (license perl-license))) + +(define-public perl-test-cleannamespaces + (package + (name "perl-test-cleannamespaces") + (version "0.22") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/" + "Test-CleanNamespaces-" version ".tar.gz")) + (sha256 + (base32 + "1jma95agqqy7iwdcl6jbg1waqz7mjqng4l046lpknhfxjhcj4al6")))) + (build-system perl-build-system) + (native-inputs + `(("perl-file-pushd" ,perl-file-pushd) + ("perl-test-requires" ,perl-test-requires) + ("perl-test-deep" ,perl-test-deep) + ("perl-test-warnings" ,perl-test-warnings) + ("perl-test-tester" ,perl-test-tester) + ("perl-test-needs" ,perl-test-needs))) + (propagated-inputs + `(("perl-namespace-clean" ,perl-namespace-clean) + ("perl-package-stash" ,perl-package-stash) + ("perl-sub-identify" ,perl-sub-identify) + ("perl-sub-exporter" ,perl-sub-exporter) + ("perl-file-find-rule" ,perl-file-find-rule) + ("perl-file-find-rule-perl" ,perl-file-find-rule-perl))) + (home-page "http://search.cpan.org/dist/Test-CleanNamespaces/") + (synopsis "Check for uncleaned imports") + (description "This module lets you check your module's namespaces for +imported functions you might have forgotten to remove with +namespace::autoclean or namespace::clean and are therefore available to be +called as methods, which usually isn't want you want.") + (license perl-license))) + +(define-public perl-test-command + (package + (name "perl-test-command") + (version "0.11") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/D/DA/DANBOO/Test-Command-" + version ".tar.gz")) + (sha256 + (base32 + "0cwm3c4d49mdrbm6vgh78b3x8mk730l0zg8i7xb9z8bkx9pzr8r8")))) + (build-system perl-build-system) + (native-inputs + `(("perl-module-build" ,perl-module-build))) + (home-page "https://github.com/danboo/perl-test-command") + (synopsis "Test routines for external commands") + (description + "This module provides routines for testing the exit status, standard +output and standard error of external commands.") + (license perl-license))) + +(define-public perl-test-cpan-meta + (package + (name "perl-test-cpan-meta") + (version "0.25") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/B/BA/BARBIE/Test-CPAN-Meta-" + version + ".tar.gz")) + (sha256 + (base32 + "1dcdbbdwdyhpldkhjzc9rvzlmb5jbil6fwh2x07nsfdwysf4ynzm")))) + (build-system perl-build-system) + (native-inputs + `(("perl-test-cpan-meta-json" ,perl-test-cpan-meta-json) + ("perl-test-pod" ,perl-test-pod) + ("perl-test-pod-coverage" ,perl-test-pod-coverage))) + (home-page + "http://search.cpan.org/dist/Test-CPAN-Meta/") + (synopsis "Validate your CPAN META.yml files") + (description + "This module was written to ensure that a META.yml file meets the +specification.") + (license artistic2.0))) + +(define-public perl-test-cpan-meta-json + (package + (name "perl-test-cpan-meta-json") + (version "0.16") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/B/BA/BARBIE/Test-CPAN-Meta-JSON-" + version + ".tar.gz")) + (sha256 + (base32 + "1jg9ka50ixwq083wd4k12rhdjq87w0ihb34gd8jjn7gvvyd51b37")))) + (build-system perl-build-system) + (native-inputs + `(("perl-test-pod" ,perl-test-pod) + ("perl-test-pod-coverage" ,perl-test-pod-coverage))) + (inputs + `(("perl-json" ,perl-json))) + (home-page + "http://search.cpan.org/dist/Test-CPAN-Meta-JSON/") + (synopsis "Validate your CPAN META.json files") + (description + "This module was written to ensure that a META.json file meets the +specification.") + (license artistic2.0))) + +(define-public perl-test-deep + (package + (name "perl-test-deep") + (version "1.120") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" + "Test-Deep-" version ".tar.gz")) + (sha256 + (base32 + "1kdy06r0yg7zwarqglc9163vbfb0sfc4s6ld4pw5q7i9f7mghzi0")))) + (build-system perl-build-system) + (inputs `(("perl-test-tester" ,perl-test-tester) + ("perl-test-nowarnings" ,perl-test-nowarnings))) + (synopsis "Flexible deep comparison for the Test::Builder framework") + (description + "Test::Deep compares two structures by going through each level, ensuring +that the values match, that arrays and hashes have the same elements and that +references are blessed into the correct class. It also handles circular data +structures without getting caught in an infinite loop.") + (home-page "http://search.cpan.org/dist/Test-Deep/") + (license gpl1+))) ; or "Artistic License" + +(define-public perl-test-differences + (package + (name "perl-test-differences") + (version "0.63") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/D/DC/DCANTRELL/" + "Test-Differences-" version ".tar.gz")) + (sha256 + (base32 + "0rhs4q6qn64ji06ns7lwl6iiiw3mggvd9xk9nkiqvx1jihbplrbw")))) + (build-system perl-build-system) + (native-inputs + `(("perl-module-build" ,perl-module-build))) + (propagated-inputs + `(("perl-text-diff" ,perl-text-diff) + ("perl-capture-tiny" ,perl-capture-tiny))) + (home-page "http://search.cpan.org/dist/Test-Differences/") + (synopsis "Test strings and data structures and show differences") + (description "This module exports three test functions and four diff-style +functions.") + ;; See LICENSE section of Test/Differences.pm, which reads "... GNU public + ;; license, any version, ..." + (license gpl3+))) + +(define-public perl-test-directory + (package + (name "perl-test-directory") + (version "0.041") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/S/SA/SANBEG/" + "Test-Directory-" version ".tar.gz")) + (sha256 + (base32 + "1ncql08cizhicbxwd753b4czns8nlcnlw0zfjcfrbdd41x4j6hqr")))) + (build-system perl-build-system) + (native-inputs `(("perl-test-exception" ,perl-test-exception))) + (home-page "http://search.cpan.org/dist/Test-Directory/") + (synopsis "Perl extension for maintaining test directories") + (description "Testing code can involve making sure that files are created +and deleted as expected. Doing this manually can be error prone, as it's easy +to forget a file, or miss that some unexpected file was added. This module +simplifies maintaining test directories by tracking their status as they are +modified or tested with this API, making it simple to test both individual +files, as well as to verify that there are no missing or unknown files.") + (license perl-license))) + +(define-public perl-test-eol + (package + (name "perl-test-eol") + (version "2.00") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/E/ET/ETHER/Test-EOL-" + version + ".tar.gz")) + (sha256 + (base32 + "0l3bxpsw0x7j9nclizcp53mnf9wny25dmg2iglfhzgnk0xfpwzwf")))) + (build-system perl-build-system) + (home-page + "http://search.cpan.org/dist/Test-EOL/") + (synopsis + "Check the correct line endings in your project") + (description + "@code{Test::EOL} lets you check for the presence of trailing whitespace +and/or windows line endings in your perl code.") + (license perl-license))) + +(define-public perl-test-exception + (package + (name "perl-test-exception") + (version "0.43") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/E/EX/EXODIST/" + "Test-Exception-" version ".tar.gz")) + (sha256 + (base32 + "0cxm7s4bg0xpxa6l6996a6iq3brr4j7p4hssnkc6dxv4fzq16sqm")))) + (build-system perl-build-system) + (native-inputs + `(("perl-module-build" ,perl-module-build))) + (propagated-inputs + `(("perl-sub-uplevel" ,perl-sub-uplevel))) + (home-page "http://search.cpan.org/dist/Test-Exception/") + (synopsis "Test exception based code") + (description "This module provides a few convenience methods for testing +exception based code. It is built with Test::Builder and plays happily with +Test::More and friends.") + (license perl-license))) + +(define-public perl-test-fatal + (package + (name "perl-test-fatal") + (version "0.014") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" + "Test-Fatal-" version ".tar.gz")) + (sha256 + (base32 + "1c6bs68mss4q7cyapkv2c0jn66i21050p0faxf3s3417gdffzp5w")))) + (build-system perl-build-system) + (propagated-inputs `(("perl-try-tiny" ,perl-try-tiny))) + (home-page "http://search.cpan.org/dist/Test-Fatal/") + (synopsis "Simple helpers for testing code with exceptions") + (description "Test::Fatal is an alternative to the popular +Test::Exception. It does much less, but should allow greater flexibility in +testing exception-throwing code with about the same amount of typing.") + (license perl-license))) + +(define-public perl-test-file-sharedir-dist + (package + (name "perl-test-file-sharedir-dist") + (version "1.001002") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/K/KE/KENTNL/" + "Test-File-ShareDir-" version ".tar.gz")) + (sha256 + (base32 + "1bbs6cx69wcinq77gif4i4pmrj8a7lwb92sgvvxzrwmjnk5lfdmk")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-class-tiny" ,perl-class-tiny) + ("perl-file-copy-recursive" ,perl-file-copy-recursive) + ("perl-file-sharedir" ,perl-file-sharedir) + ("perl-path-tiny" ,perl-path-tiny) + ("perl-scope-guard" ,perl-scope-guard) + ("perl-test-fatal" ,perl-test-fatal))) + (home-page "https://github.com/kentnl/Test-File-ShareDir") + (synopsis "Dist oriented ShareDir tester") + (description "This module creates a Fake ShareDir for your modules +for testing.") + (license perl-license))) + +(define-public perl-test-files + (package + (name "perl-test-files") + (version "0.14") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/P/PH/PHILCROW/Test-Files-" + version + ".tar.gz")) + (sha256 + (base32 + "1zn33yigznq7i1jr4yjr4lxvc6bn7znkbqdzj7slhc146pqapkln")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-algorithm-diff" ,perl-algorithm-diff) + ("perl-text-diff" ,perl-text-diff))) + (home-page "http://search.cpan.org/dist/Test-Files/") + (synopsis "Ease software testing with files and directories") + (description "This library provides functions to enable testing of files +and directories. For instance, the @code{file_ok} helper can test whether the +contents of a file is equal to a particular string.") + (license perl-license))) + +(define-public perl-test-harness + (package + (name "perl-test-harness") + (version "3.39") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/L/LE/LEONT/" + "Test-Harness-" version ".tar.gz")) + (sha256 + (base32 + "0chiqnzmna2mglm37nzxvn9qhq2j31iwz3i9isqjs7bf3k449gb9")))) + (build-system perl-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'patch-test + (lambda* (#:key inputs #:allow-other-keys) + ;; This test looks for "#!/usr/bin/perl" in some source. + ;; Patch what the test looks for. + (substitute* "t/source.t" + (("#!/usr/bin/perl") + (string-append "#!" (assoc-ref inputs "perl") + "/bin/perl"))) + #t))))) + (home-page "http://search.cpan.org/dist/Test-Harness/") + (synopsis "Run Perl standard test scripts with statistics") + (description "Simple test harness which allows tests to be run and results +automatically aggregated and output to STDOUT.") + (license perl-license))) + +(define-public perl-test-leaktrace + (package + (name "perl-test-leaktrace") + (version "0.16") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/L/LE/LEEJO/" + "Test-LeakTrace-" version ".tar.gz")) + (sha256 + (base32 + "00z4hcjra5nk700f3fgpy8fs036d7ry7glpn8g3wh7jzj7nrw22z")))) + (build-system perl-build-system) + (home-page "http://search.cpan.org/dist/Test-LeakTrace/") + (synopsis "Traces memory leaks in Perl") + (description "Test::LeakTrace provides several functions that trace memory +leaks. This module scans arenas, the memory allocation system, so it can +detect any leaked SVs in given blocks.") + (license perl-license))) + +(define-public perl-test-longstring + (package + (name "perl-test-longstring") + (version "0.17") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/R/RG/RGARCIA/" + "Test-LongString-" version ".tar.gz")) + (sha256 + (base32 + "0kwp7rfr1i2amz4ckigkv13ah7jr30q6l5k4wk0vxl84myg39i5b")))) + (build-system perl-build-system) + (home-page "http://search.cpan.org/dist/Test-LongString/") + (synopsis "Tests strings for equality, with more helpful failures") + (description "This module provides some drop-in replacements for the +string comparison functions of Test::More, but which are more suitable when +you test against long strings.") + (license perl-license))) + +(define-public perl-test-manifest + (package + (name "perl-test-manifest") + (version "2.02") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/B/BD/BDFOY/" + "Test-Manifest-" version ".tar.gz")) + (sha256 + (base32 + "15ik52l9macrrfizf4y6wj71d4lx7w590h2dfajnkmbxmz786iq6")))) + (build-system perl-build-system) + (native-inputs + `(("perl-test-pod" ,perl-test-pod) + ("perl-test-pod-coverage" ,perl-test-pod-coverage))) + (home-page "http://search.cpan.org/dist/Test-Manifest/") + (synopsis "Interact with a t/test_manifest file") + (description "@code{Test::Manifest} overrides the default test file order. Instead of +running all of the t/*.t files in ASCII-betical order, it looks in the t/test_manifest +file to find out which tests you want to run and the order in which you want to run them. +It constructs the right value for the build system to do the right thing.") + (license perl-license))) + +(define-public perl-test-memory-cycle + (package + (name "perl-test-memory-cycle") + (version "1.06") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/P/PE/PETDANCE/Test-Memory-Cycle-" + version + ".tar.gz")) + (sha256 + (base32 + "00ijmgx1r3cxrcs1qa9rb2s4gbm3nsawd90drda89kb4r7yxslwx")))) + (build-system perl-build-system) + (inputs + `(("perl-padwalker" ,perl-padwalker))) + (propagated-inputs + `(("perl-devel-cycle" ,perl-devel-cycle))) + (home-page + "http://search.cpan.org/dist/Test-Memory-Cycle/") + (synopsis + "Verifies code hasn't left circular references") + (description + "@code{Test::Memory::Cycle} is built on top of @code{Devel::Cycle} to +give you an easy way to check for these circular references. + +@example +use Test::Memory::Cycle; + +my $object = new MyObject; +# Do stuff with the object. +memory_cycle_ok( $object ); +@end example") + (license artistic2.0))) + +(define-public perl-test-mockobject + (package + (name "perl-test-mockobject") + (version "1.20150527") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/C/CH/CHROMATIC/" + "Test-MockObject-" version ".tar.gz")) + (sha256 + (base32 + "160xvhbpwqjaff4fgckvldknldzcbn1z3jvyzybs7cqlj1x3bwdd")))) + (build-system perl-build-system) + (native-inputs + `(("perl-test-exception" ,perl-test-exception) + ("perl-test-warn" ,perl-test-warn))) + (propagated-inputs + `(("perl-test-exception" ,perl-test-exception) + ("perl-test-warn" ,perl-test-warn) + ("perl-universal-can" ,perl-universal-can) + ("perl-universal-isa" ,perl-universal-isa))) + (arguments `(#:tests? #f)) ;TODO: tests require perl-cgi + (home-page "http://search.cpan.org/dist/Test-MockObject/") + (synopsis "Emulate troublesome interfaces in Perl") + (description "Test::MockObject allows you to create objects that conform +to particular interfaces with very little code. You don't have to reimplement +the behavior, just the input and the output.") + (license perl-license))) + +(define-public perl-test-mocktime + (package + (name "perl-test-mocktime") + (version "0.13") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/D/DD/DDICK/" + "Test-MockTime-" version ".tar.gz")) + (sha256 + (base32 + "0yrqmjg33akannwz2f99rfm7dvvxpzsdj23lsvlvfi4qslrlqfvw")))) + (build-system perl-build-system) + (home-page "http://search.cpan.org/dist/Test-MockTime/") + (synopsis "Replaces actual time with simulated time") + (description "This module was created to enable test suites to test code +at specific points in time. Specifically it overrides localtime, gmtime and +time at compile time and then relies on the user supplying a mock time via +set_relative_time, set_absolute_time or set_fixed_time to alter future calls +to gmtime,time or localtime.") + (license perl-license))) + +(define-public perl-test-most + (package + (name "perl-test-most") + (version "0.34") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/O/OV/OVID/" + "Test-Most-" version ".tar.gz")) + (sha256 + (base32 + "0i72aih3pakm8gh73wx1n4dwq8lbx6dvxhla46gsapszws6hr0n2")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-test-differences" ,perl-test-differences) + ("perl-test-warn" ,perl-test-warn) + ("perl-exception-class" ,perl-exception-class) + ("perl-test-deep" ,perl-test-deep) + ("perl-test-exception" ,perl-test-exception))) + (home-page "http://search.cpan.org/dist/Test-Most/") + (synopsis "Most commonly needed test functions and features") + (description "This module provides the most commonly used testing +functions, along with automatically turning on strict and warning and gives a +bit more fine-grained control over test suites.") + (license perl-license))) + +(define-public perl-test-needs + (package + (name "perl-test-needs") + (version "0.002005") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/H/HA/HAARG/Test-Needs-" + version + ".tar.gz")) + (sha256 + (base32 + "16gkgpmr9hvkz382iaqd3500269lk2d44fqaw3dsrvc66nc36kss")))) + (build-system perl-build-system) + (home-page + "http://search.cpan.org/dist/Test-Needs/") + (synopsis + "Skip tests when modules not available") + (description "@code{Test::Needs} allows you to skip test scripts if +modules are not available. The requested modules will be loaded, and +optionally have their versions checked. If the module is missing, the test +script will be skipped. Modules that are found but fail to compile will exit +with an error rather than skip. + +If used in a subtest, the remainder of the subtest will be skipped.") + (license perl-license))) + +(define-public perl-test-notabs + (package + (name "perl-test-notabs") + (version "2.00") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/E/ET/ETHER/Test-NoTabs-" + version + ".tar.gz")) + (sha256 + (base32 + "127kpl1va267qar2ia4c22xb96jby2jqnda3sj5pjgmxg8si26cg")))) + (build-system perl-build-system) + (home-page + "http://search.cpan.org/dist/Test-NoTabs/") + (synopsis + "Check the presence of tabs in your project") + (description + "@code{Test::NoTabs} lets you check the presence of tabs in your perl +code.") + (license perl-license))) + +(define-public perl-test-nowarnings + (package + (name "perl-test-nowarnings") + (version "1.04") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/A/AD/ADAMK/" + "Test-NoWarnings-" version ".tar.gz")) + (sha256 + (base32 + "0v385ch0hzz9naqwdw2az3zdqi15gka76pmiwlgsy6diiijmg2k3")))) + (build-system perl-build-system) + (inputs `(("perl-test-tester" ,perl-test-tester))) + (synopsis "Ensure no warnings are produced while testing") + (description + "This modules causes any warnings during testing to be captured and +stored. It automatically adds an extra test that will run when your script +ends to check that there were no warnings. If there were any warnings, the +test will fail and output diagnostics of where, when and what the warning was, +including a stack trace of what was going on when it occurred.") + (home-page (string-append "http://search.cpan.org/~adamk//" + "Test-NoWarnings-" version)) + (license lgpl2.1))) + +(define-public perl-test-number-delta + (package + (name "perl-test-number-delta") + (version "1.06") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/D/DA/DAGOLDEN/" + "Test-Number-Delta-" version ".tar.gz")) + (sha256 + (base32 + "0jfhzhpzkc23mkrlbnv085ykpfncmy99hvppbzjnrpvgks8k0m2k")))) + (build-system perl-build-system) + (home-page "http://search.cpan.org/dist/Test-Number-Delta/") + (synopsis + "Compare the difference between numbers against a given tolerance") + (description + "At some point or another, most programmers find they need to compare +floating-point numbers for equality. The typical idiom is to test if the +absolute value of the difference of the numbers is within a desired tolerance, +usually called epsilon. This module provides such a function for use with +@code{Test::More}.") + (license asl2.0))) + +(define-public perl-test-output + (package + (name "perl-test-output") + (version "1.03") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/B/BD/BDFOY/" + "Test-Output-" version ".tar.gz")) + (sha256 + (base32 + "12991jnzj4cbw9whhprmqvnzd1ayii84g2mh8vxbjngwqrjsy41i")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-capture-tiny" ,perl-capture-tiny) + ("perl-test-tester" ,perl-test-tester) + ("perl-sub-exporter" ,perl-sub-exporter))) + (synopsis "Utilities to test STDOUT and STDERR messages") + (description + "Test::Output provides a simple interface for testing output sent to +STDOUT or STDERR. A number of different utilities are included to try and be +as flexible as possible to the tester.") + (home-page (string-append "http://search.cpan.org/~bdfoy//" + "Test-Output-" version)) + (license perl-license))) + +(define-public perl-test-pod + (package + (name "perl-test-pod") + (version "1.48") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/D/DW/DWHEELER/" + "Test-Pod-" version ".tar.gz")) + (sha256 + (base32 + "1hmwwhabyng4jrnll926b4ab73r40w3pfchlrvs0yx6kh6kwwy14")))) + (build-system perl-build-system) + (native-inputs `(("perl-module-build" ,perl-module-build))) + (home-page "http://search.cpan.org/dist/Test-Pod/") + (synopsis "Check for POD errors in files") + (description "Check POD files for errors or warnings in a test file, using +Pod::Simple to do the heavy lifting.") + (license perl-license))) + +(define-public perl-test-pod-coverage + (package + (name "perl-test-pod-coverage") + (version "1.10") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/N/NE/NEILB/" + "Test-Pod-Coverage-" version ".tar.gz")) + (sha256 + (base32 + "1m203mhgfilz7iqc8mxaw4lw02fz391mni3n25sfx7nryylwrja8")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-pod-coverage" ,perl-pod-coverage))) + (home-page "http://search.cpan.org/dist/Test-Pod-Coverage/") + (synopsis "Check for pod coverage") + (description "This module adds a test to your Perl distribution which +checks for pod coverage of all appropriate files.") + (license artistic2.0))) + +(define-public perl-test-requires + (package + (name "perl-test-requires") + (version "0.08") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/T/TO/TOKUHIROM/" + "Test-Requires-" version ".tar.gz")) + (sha256 + (base32 + "08c29m0dn34384mmmpqqlbb899zpbkkc01c2lsp31mch1frv9cg7")))) + (build-system perl-build-system) + (home-page "http://search.cpan.org/dist/Test-Requires/") + (synopsis "Checks to see if the module can be loaded") + (description "Test::Requires checks to see if the module can be loaded. +If this fails, then rather than failing tests this skips all tests.") + (license perl-license))) + +(define-public perl-test-script + (package + (name "perl-test-script") + (version "1.20") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/P/PL/PLICEASE/" + "Test-Script-" version ".tar.gz")) + (sha256 + (base32 + "1msavbi6przkxq3npm90nv925v58iym9jrk677wn46x19whwzwzm")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-capture-tiny" ,perl-capture-tiny) + ("perl-probe-perl" ,perl-probe-perl))) + (synopsis "Basic cross-platform tests for scripts") + (description + "The intent of the Test::Script module is to provide a series of basic +tests for 80% of the testing you will need to do for scripts in the script (or +bin as is also commonly used) paths of your Perl distribution.") + (home-page "http://search.cpan.org/dist/Test-Script/") + (license perl-license))) + +(define-public perl-test-sharedfork + (package + (name "perl-test-sharedfork") + (version "0.29") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/E/EX/EXODIST/" + "Test-SharedFork-" version ".tar.gz")) + (sha256 + (base32 + "0vlak10q4gcf0ch0rfcb9lvddav6r8h15iipzbkbgf9mrj47gbv3")))) + (build-system perl-build-system) + (native-inputs + `(("perl-test-requires" ,perl-test-requires))) + (home-page "http://search.cpan.org/dist/Test-SharedFork/") + (synopsis "Fork test in Perl") + (description "Test::SharedFork is a utility module for Test::Builder. It +makes fork(2) safe to use in test cases.") + (license perl-license))) + +(define-public perl-test-simple + (package + (name "perl-test-simple") + (version "1.302078") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/E/EX/EXODIST/" + "Test-Simple-" version ".tar.gz")) + (sha256 + (base32 + "05acl24kmz3dgr2nayy162yaf0kz92h1j5vkiavyv6mdh2lz6ixb")))) + (build-system perl-build-system) + (synopsis "Basic utilities for writing tests") + (description + "Test::Simple contains basic utilities for writing tests.") + (home-page (string-append "http://search.cpan.org/~exodist//" + "Test-Simple-" version)) + (license perl-license))) + +(define-public perl-test-taint + (package + (name "perl-test-taint") + (version "1.06") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/Test-Taint-" + version ".tar.gz")) + (sha256 + (base32 + "01rip5d7gdr1c7lq6yczzkqfd0500nfa977ryigylj6jj75526vj")))) + (build-system perl-build-system) + (home-page "http://search.cpan.org/dist/Test-Taint/") + (synopsis "Checks for taintedness of variables") + (description "Tainted data is data that comes from an unsafe source, such +as the command line, or, in the case of web apps, any @code{GET} or +@code{POST} transactions. Read the @code{perlsec} man page for details on why +tainted data is bad, and how to untaint the data. + +When you're writing unit tests for code that deals with tainted data, you'll +want to have a way to provide tainted data for your routines to handle, and +easy ways to check and report on the taintedness of your data, in standard +@code{Test::More} style.") + (license perl-license))) + +(define-public perl-test-tester + (package + (name "perl-test-tester") + (version "0.109") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/F/FD/FDALY/" + "Test-Tester-" version ".tar.gz")) + (sha256 + (base32 + "0m9n28z09kq455r5nydj1bnr85lvmbfpcbjdkjfbpmfb5xgciiyk")))) + (build-system perl-build-system) + (synopsis "Simplify running Test::Builder tests") + (description + "Test::Tester allows testing of test modules based on Test::Builder with +a minimum of effort.") + (home-page (string-append "http://search.cpan.org/~fdaly//" + "Test-Tester-" version)) + ;; "Under the same license as Perl itself" + (license perl-license))) + +(define-public perl-test-trap + (package + (name "perl-test-trap") + (version "0.3.2") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/E/EB/EBHANSSEN/" + "Test-Trap-v" version ".tar.gz")) + (sha256 + (base32 + "0jq54pkm4s61gk8gzxglix1ff9s0m9vi6bpfv7f63lb9qq4r76rr")))) + (build-system perl-build-system) + (native-inputs + `(("perl-module-build" ,perl-module-build) + ("perl-test-simple" ,perl-test-simple))) + (propagated-inputs + `(("perl-test-tester" ,perl-test-tester) + ("perl-data-dump" ,perl-data-dump))) + (home-page "http://search.cpan.org/dist/Test-Trap/") + (synopsis "Trap exit codes, exceptions, output, and so on") + (description "This module is primarily (but not exclusively) for use in +test scripts: A block eval configurable and extensible but by default trapping +STDOUT, STDERR, warnings, exceptions, would-be exit codes, and return values +from boxed blocks of test code.") + (license perl-license))) + +(define-public perl-test-utf8 + (package + (name "perl-test-utf8") + (version "1.01") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/M/MA/MARKF/" + "Test-utf8-" version ".tar.gz")) + (sha256 + (base32 + "0yhvf735v334qqvp9zg7i66qyk6r4cbk5s2psv93d3fdd4bindzg")))) + (build-system perl-build-system) + (native-inputs + `(("perl-module-install" ,perl-module-install))) + (home-page "http://search.cpan.org/dist/Test-utf8/") + (synopsis "UTF-8 testing in Perl") + (description "This module is a collection of tests useful for dealing with +UTF-8 strings in Perl. This module has two types of tests: The validity tests +check if a string is valid and not corrupt, whereas the characteristics tests +will check that string has a given set of characteristics.") + (license perl-license))) + +(define-public perl-test-warn + (package + (name "perl-test-warn") + (version "0.30") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/C/CH/CHORNY/" + "Test-Warn-" version ".tar.gz")) + (sha256 + (base32 + "0haf2ii7br5z0psmkvlvmx2z2q9qz1c70gx0969r378qjidmb5w1")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-sub-uplevel" ,perl-sub-uplevel))) + (home-page "http://search.cpan.org/dist/Test-Warn/") + (synopsis "Perl extension to test methods for warnings") + (description "This module provides a few convenience methods for testing +warning based code.") + (license perl-license))) + +(define-public perl-test-warnings + (package + (name "perl-test-warnings") + (version "0.026") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/" + "Test-Warnings-" version ".tar.gz")) + (sha256 + (base32 + "024srkwjckp15dxkni9lb1hc8bg4xwc52zz0iich8rv1nnqnhaxf")))) + (build-system perl-build-system) + (home-page "http://search.cpan.org/dist/Test-Warnings/") + (synopsis "Test for warnings and the lack of them") + (description "This module is intended to be used as a drop-in replacement +for Test::NoWarnings. It also adds an extra test, but runs this test before +done_testing calculates the test count, rather than after. It does this by +hooking into done_testing as well as via an END block. You can declare a +plan, or not, and things will still Just Work.") + (license perl-license))) + +(define-public perl-test-without-module + (package + (name "perl-test-without-module") + (version "0.18") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/C/CO/CORION/" + "Test-Without-Module-" version ".tar.gz")) + (sha256 + (base32 + "0zwc2dk5srd02j4p049w77m89iw5nbff381rmhcbaz8x2w5kdhz2")))) + (build-system perl-build-system) + (home-page "http://search.cpan.org/dist/Test-Without-Module/") + (synopsis "Test fallback behaviour in absence of modules") + (description "This module allows you to deliberately hide modules from a +program even though they are installed. This is mostly useful for testing +modules that have a fallback when a certain dependency module is not +installed.") + (license perl-license))) + +(define-public perl-test-writevariants + (package + (name "perl-test-writevariants") + (version "0.010") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/R/RE/REHSACK/" + "Test-WriteVariants-" version ".tar.gz")) + (sha256 + (base32 + "0kklp05fj98yiq8znyfx9lx1vmjay2ypfb868qdwv3kf93m5zjwr")))) + (build-system perl-build-system) + (native-inputs + `(("perl-test-most" ,perl-test-most) + ("perl-test-directory" ,perl-test-directory))) + (propagated-inputs + `(("perl-data-tumbler" ,perl-data-tumbler) + ("perl-file-homedir" ,perl-file-homedir) + ("perl-module-pluggable" ,perl-module-pluggable))) + (home-page "http://search.cpan.org/dist/Test-WriteVariants/") + (synopsis "Dynamic generation of tests") + (description "The Test::WriteVariants module provides for the dynamic +generation of tests in nested combinations of contexts.") + (license perl-license))) ;See LICENSE + +(define-public perl-test-yaml + (package + (name "perl-test-yaml") + (version "1.05") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/I/IN/INGY/" + "Test-YAML-" version ".tar.gz")) + (sha256 + (base32 + "079nayc0fp2fwjv8s2yr069bdffln699j6z3lqr5dpx1v2qg82ck")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-test-base" ,perl-test-base))) + (home-page "http://search.cpan.org/dist/Test-YAML/") + (synopsis "Testing module for YAML implementations") + (description "Test::YAML is a subclass of Test::Base with YAML specific +support.") + (license perl-license))) + +(define-public perl-test-trailingspace + (package + (name "perl-test-trailingspace") + (version "0.0300") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/S/SH/SHLOMIF/Test-TrailingSpace-" + version + ".tar.gz")) + (sha256 + (base32 + "01slmrcjfq38mpdg3hlb7lnnbgsqbn26958y3hzx0zwrif40pigr")))) + (build-system perl-build-system) + (native-inputs + `(("perl-module-build" ,perl-module-build) + ("perl-file-find-object" ,perl-file-find-object) + ("perl-class-xsaccessor" ,perl-class-xsaccessor))) + (inputs + `(("perl-file-find-object-rule" ,perl-file-find-object-rule) + ("perl-text-glob" ,perl-text-glob) + ("perl-number-compare" ,perl-number-compare))) + (home-page + "http://search.cpan.org/dist/Test-TrailingSpace/") + (synopsis + "Test for trailing space in Perl source files") + (description "Test::TrailingSpace tests for trailing spaces +in Perl source files.") + (license x11))) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 29c54c956e..2d8b488ca3 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -42,6 +42,7 @@ #:use-module (guix build-system gnu) #:use-module (guix build-system perl) #:use-module (gnu packages base) + #:use-module (gnu packages perl-check) #:use-module (gnu packages perl-web) #:use-module (gnu packages pkg-config)) @@ -7451,1109 +7452,6 @@ Now in pure Perl, with the exception of a C probe run at build time.") into tables.") (license (package-license perl)))) -(define-public perl-test2-bundle-extended - (package - (name "perl-test2-bundle-extended") - (version "0.000072") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/E/EX/EXODIST/Test2-Suite-" - version ".tar.gz")) - (sha256 - (base32 - "0hgd6n29qjh1pwqvbglm2kb852yqshmixqqjhsr2kvvibdr58qpf")))) - (build-system perl-build-system) - (arguments - '(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'set-env - (lambda _ (setenv "PERL_USE_UNSAFE_INC" "1")))))) - (propagated-inputs - `(("perl-importer" ,perl-importer) - ("perl-term-table" ,perl-term-table) - ("perl-sub-info" ,perl-sub-info))) - (home-page "http://search.cpan.org/~exodist/Test2-Suite/lib/Test2/Bundle/Extended.pm") - (synopsis "Full set of tools for Test2::Suite") - (description "This package provides a rich set of tools, plugins, bundles, -etc built upon the Test2 testing library.") - (license (package-license perl)))) - -(define-public perl-test2-plugin-nowarnings - (package - (name "perl-test2-plugin-nowarnings") - (version "0.06") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/D/DR/DROLSKY/Test2-Plugin-NoWarnings-" - version ".tar.gz")) - (sha256 - (base32 - "002qk6qsm0l6r2kaxywvc38w0yf0mlavgywq8li076pn6kcw3242")))) - (build-system perl-build-system) - (propagated-inputs - `(("perl-test2-bundle-extended" ,perl-test2-bundle-extended))) - (home-page "http://search.cpan.org/dist/Test2-Plugin-NoWarnings//") - (synopsis "Fail if tests warn") - (description "Loading this plugin causes your tests to fail if there any -warnings while they run. Each warning generates a new failing test and the -warning content is outputted via diag.") - (license (package-license perl)))) - -(define-public perl-test-base - (package - (name "perl-test-base") - (version "0.88") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/I/IN/INGY/" - "Test-Base-" version ".tar.gz")) - (sha256 - (base32 - "0fch1cvivnszbnwhpfmwv1rin04j5xkj1n1ylfmlxg6bm72qqdjj")))) - (build-system perl-build-system) - (native-inputs - `(("perl-algorithm-diff" ,perl-algorithm-diff) - ("perl-text-diff" ,perl-text-diff))) - (propagated-inputs - `(("perl-spiffy" ,perl-spiffy) - ("perl-test-deep" ,perl-test-deep))) - (home-page "http://search.cpan.org/dist/Test-Base/") - (synopsis "Data-driven testing framework for Perl") - (description "Test::Base gives a way to trivially write your own test -framework base class. It concentrates on offering reusable data driven -patterns, so that you can write tests with a minimum of code.") - (license (package-license perl)))) - -(define-public perl-test-class - (package - (name "perl-test-class") - (version "0.50") - (source - (origin - (method url-fetch) - (uri (string-append - "https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-Class-" - version - ".tar.gz")) - (sha256 - (base32 - "0l0kk5jvxjkic2jkf1r7v41irb344aasnzr3f5ygjgxgiknm9489")))) - (build-system perl-build-system) - (native-inputs - `(("perl-test-exception" ,perl-test-exception))) - (inputs - `(("perl-module-runtime" ,perl-module-runtime) - ("perl-mro-compat" ,perl-mro-compat) - ("perl-try-tiny" ,perl-try-tiny))) - (home-page "http://search.cpan.org/dist/Test-Class/") - (synopsis "Easily create test classes in an xUnit/JUnit style") - (description "@code{Test::Class} provides a simple way of creating classes -and objects to test your code in an xUnit style. - -Built using @code{Test::Builder}, it was designed to work with other -@code{Test::Builder} based modules (@code{Test::More}, -@code{Test::Differences}, @code{Test::Exception}, etc.).") - (license (package-license perl)))) - -(define-public perl-test-class-most - (package - (name "perl-test-class-most") - (version "0.08") - (source - (origin - (method url-fetch) - (uri (string-append - "mirror://cpan/authors/id/O/OV/OVID/Test-Class-Most-" - version - ".tar.gz")) - (sha256 - (base32 - "1zvx9hil0mg0pnb8xfa4m0xgjpvh8s5gnbyprq3xwpdsdgcdwk33")))) - (build-system perl-build-system) - (native-inputs - `(("perl-module-build" ,perl-module-build))) - (inputs - `(("perl-test-class" ,perl-test-class) - ("perl-test-most" ,perl-test-most) - ("perl-module-runtime" ,perl-module-runtime) - ("perl-try-tiny" ,perl-try-tiny) - ("perl-mro-compat" ,perl-mro-compat))) - (home-page "http://search.cpan.org/dist/Test-Class-Most/") - (synopsis "Test classes the easy way") - (description "@code{Test::Class::Most} provides some more convenience when -using @code{Test::Class}.") - (license (package-license perl)))) - -(define-public perl-test-cleannamespaces - (package - (name "perl-test-cleannamespaces") - (version "0.22") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/" - "Test-CleanNamespaces-" version ".tar.gz")) - (sha256 - (base32 - "1jma95agqqy7iwdcl6jbg1waqz7mjqng4l046lpknhfxjhcj4al6")))) - (build-system perl-build-system) - (native-inputs - `(("perl-file-pushd" ,perl-file-pushd) - ("perl-test-requires" ,perl-test-requires) - ("perl-test-deep" ,perl-test-deep) - ("perl-test-warnings" ,perl-test-warnings) - ("perl-test-tester" ,perl-test-tester) - ("perl-test-needs" ,perl-test-needs))) - (propagated-inputs - `(("perl-namespace-clean" ,perl-namespace-clean) - ("perl-package-stash" ,perl-package-stash) - ("perl-sub-identify" ,perl-sub-identify) - ("perl-sub-exporter" ,perl-sub-exporter) - ("perl-file-find-rule" ,perl-file-find-rule) - ("perl-file-find-rule-perl" ,perl-file-find-rule-perl))) - (home-page "http://search.cpan.org/dist/Test-CleanNamespaces/") - (synopsis "Check for uncleaned imports") - (description "This module lets you check your module's namespaces for -imported functions you might have forgotten to remove with -namespace::autoclean or namespace::clean and are therefore available to be -called as methods, which usually isn't want you want.") - (license (package-license perl)))) - -(define-public perl-test-command - (package - (name "perl-test-command") - (version "0.11") - (source (origin - (method url-fetch) - (uri (string-append - "mirror://cpan/authors/id/D/DA/DANBOO/Test-Command-" - version ".tar.gz")) - (sha256 - (base32 - "0cwm3c4d49mdrbm6vgh78b3x8mk730l0zg8i7xb9z8bkx9pzr8r8")))) - (build-system perl-build-system) - (native-inputs - `(("perl-module-build" ,perl-module-build))) - (home-page "https://github.com/danboo/perl-test-command") - (synopsis "Test routines for external commands") - (description - "This module provides routines for testing the exit status, standard -output and standard error of external commands.") - (license perl-license))) - -(define-public perl-test-cpan-meta - (package - (name "perl-test-cpan-meta") - (version "0.25") - (source - (origin - (method url-fetch) - (uri (string-append - "mirror://cpan/authors/id/B/BA/BARBIE/Test-CPAN-Meta-" - version - ".tar.gz")) - (sha256 - (base32 - "1dcdbbdwdyhpldkhjzc9rvzlmb5jbil6fwh2x07nsfdwysf4ynzm")))) - (build-system perl-build-system) - (native-inputs - `(("perl-test-cpan-meta-json" ,perl-test-cpan-meta-json) - ("perl-test-pod" ,perl-test-pod) - ("perl-test-pod-coverage" ,perl-test-pod-coverage))) - (home-page - "http://search.cpan.org/dist/Test-CPAN-Meta/") - (synopsis "Validate your CPAN META.yml files") - (description - "This module was written to ensure that a META.yml file meets the -specification.") - (license artistic2.0))) - -(define-public perl-test-cpan-meta-json - (package - (name "perl-test-cpan-meta-json") - (version "0.16") - (source - (origin - (method url-fetch) - (uri (string-append - "mirror://cpan/authors/id/B/BA/BARBIE/Test-CPAN-Meta-JSON-" - version - ".tar.gz")) - (sha256 - (base32 - "1jg9ka50ixwq083wd4k12rhdjq87w0ihb34gd8jjn7gvvyd51b37")))) - (build-system perl-build-system) - (native-inputs - `(("perl-test-pod" ,perl-test-pod) - ("perl-test-pod-coverage" ,perl-test-pod-coverage))) - (inputs - `(("perl-json" ,perl-json))) - (home-page - "http://search.cpan.org/dist/Test-CPAN-Meta-JSON/") - (synopsis "Validate your CPAN META.json files") - (description - "This module was written to ensure that a META.json file meets the -specification.") - (license artistic2.0))) - -(define-public perl-test-deep - (package - (name "perl-test-deep") - (version "1.120") - (source (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" - "Test-Deep-" version ".tar.gz")) - (sha256 - (base32 - "1kdy06r0yg7zwarqglc9163vbfb0sfc4s6ld4pw5q7i9f7mghzi0")))) - (build-system perl-build-system) - (inputs `(("perl-test-tester" ,perl-test-tester) - ("perl-test-nowarnings" ,perl-test-nowarnings))) - (synopsis "Flexible deep comparison for the Test::Builder framework") - (description - "Test::Deep compares two structures by going through each level, ensuring -that the values match, that arrays and hashes have the same elements and that -references are blessed into the correct class. It also handles circular data -structures without getting caught in an infinite loop.") - (home-page "http://search.cpan.org/dist/Test-Deep/") - (license gpl1+))) ; or "Artistic License" - -(define-public perl-test-differences - (package - (name "perl-test-differences") - (version "0.63") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/D/DC/DCANTRELL/" - "Test-Differences-" version ".tar.gz")) - (sha256 - (base32 - "0rhs4q6qn64ji06ns7lwl6iiiw3mggvd9xk9nkiqvx1jihbplrbw")))) - (build-system perl-build-system) - (native-inputs - `(("perl-module-build" ,perl-module-build))) - (propagated-inputs - `(("perl-text-diff" ,perl-text-diff) - ("perl-capture-tiny" ,perl-capture-tiny))) - (home-page "http://search.cpan.org/dist/Test-Differences/") - (synopsis "Test strings and data structures and show differences") - (description "This module exports three test functions and four diff-style -functions.") - ;; See LICENSE section of Test/Differences.pm, which reads "... GNU public - ;; license, any version, ..." - (license gpl3+))) - -(define-public perl-test-directory - (package - (name "perl-test-directory") - (version "0.041") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/S/SA/SANBEG/" - "Test-Directory-" version ".tar.gz")) - (sha256 - (base32 - "1ncql08cizhicbxwd753b4czns8nlcnlw0zfjcfrbdd41x4j6hqr")))) - (build-system perl-build-system) - (native-inputs `(("perl-test-exception" ,perl-test-exception))) - (home-page "http://search.cpan.org/dist/Test-Directory/") - (synopsis "Perl extension for maintaining test directories") - (description "Testing code can involve making sure that files are created -and deleted as expected. Doing this manually can be error prone, as it's easy -to forget a file, or miss that some unexpected file was added. This module -simplifies maintaining test directories by tracking their status as they are -modified or tested with this API, making it simple to test both individual -files, as well as to verify that there are no missing or unknown files.") - (license (package-license perl)))) - -(define-public perl-test-eol - (package - (name "perl-test-eol") - (version "2.00") - (source - (origin - (method url-fetch) - (uri (string-append - "mirror://cpan/authors/id/E/ET/ETHER/Test-EOL-" - version - ".tar.gz")) - (sha256 - (base32 - "0l3bxpsw0x7j9nclizcp53mnf9wny25dmg2iglfhzgnk0xfpwzwf")))) - (build-system perl-build-system) - (home-page - "http://search.cpan.org/dist/Test-EOL/") - (synopsis - "Check the correct line endings in your project") - (description - "@code{Test::EOL} lets you check for the presence of trailing whitespace -and/or windows line endings in your perl code.") - (license perl-license))) - -(define-public perl-test-exception - (package - (name "perl-test-exception") - (version "0.43") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/E/EX/EXODIST/" - "Test-Exception-" version ".tar.gz")) - (sha256 - (base32 - "0cxm7s4bg0xpxa6l6996a6iq3brr4j7p4hssnkc6dxv4fzq16sqm")))) - (build-system perl-build-system) - (native-inputs - `(("perl-module-build" ,perl-module-build))) - (propagated-inputs - `(("perl-sub-uplevel" ,perl-sub-uplevel))) - (home-page "http://search.cpan.org/dist/Test-Exception/") - (synopsis "Test exception based code") - (description "This module provides a few convenience methods for testing -exception based code. It is built with Test::Builder and plays happily with -Test::More and friends.") - (license (package-license perl)))) - -(define-public perl-test-fatal - (package - (name "perl-test-fatal") - (version "0.014") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" - "Test-Fatal-" version ".tar.gz")) - (sha256 - (base32 - "1c6bs68mss4q7cyapkv2c0jn66i21050p0faxf3s3417gdffzp5w")))) - (build-system perl-build-system) - (propagated-inputs `(("perl-try-tiny" ,perl-try-tiny))) - (home-page "http://search.cpan.org/dist/Test-Fatal/") - (synopsis "Simple helpers for testing code with exceptions") - (description "Test::Fatal is an alternative to the popular -Test::Exception. It does much less, but should allow greater flexibility in -testing exception-throwing code with about the same amount of typing.") - (license (package-license perl)))) - -(define-public perl-test-file-sharedir-dist - (package - (name "perl-test-file-sharedir-dist") - (version "1.001002") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/K/KE/KENTNL/" - "Test-File-ShareDir-" version ".tar.gz")) - (sha256 - (base32 - "1bbs6cx69wcinq77gif4i4pmrj8a7lwb92sgvvxzrwmjnk5lfdmk")))) - (build-system perl-build-system) - (propagated-inputs - `(("perl-class-tiny" ,perl-class-tiny) - ("perl-file-copy-recursive" ,perl-file-copy-recursive) - ("perl-file-sharedir" ,perl-file-sharedir) - ("perl-path-tiny" ,perl-path-tiny) - ("perl-scope-guard" ,perl-scope-guard) - ("perl-test-fatal" ,perl-test-fatal))) - (home-page "https://github.com/kentnl/Test-File-ShareDir") - (synopsis "Dist oriented ShareDir tester") - (description "This module creates a Fake ShareDir for your modules -for testing.") - (license (package-license perl)))) - -(define-public perl-test-files - (package - (name "perl-test-files") - (version "0.14") - (source - (origin - (method url-fetch) - (uri (string-append - "mirror://cpan/authors/id/P/PH/PHILCROW/Test-Files-" - version - ".tar.gz")) - (sha256 - (base32 - "1zn33yigznq7i1jr4yjr4lxvc6bn7znkbqdzj7slhc146pqapkln")))) - (build-system perl-build-system) - (propagated-inputs - `(("perl-algorithm-diff" ,perl-algorithm-diff) - ("perl-text-diff" ,perl-text-diff))) - (home-page "http://search.cpan.org/dist/Test-Files/") - (synopsis "Ease software testing with files and directories") - (description "This library provides functions to enable testing of files -and directories. For instance, the @code{file_ok} helper can test whether the -contents of a file is equal to a particular string.") - (license (package-license perl)))) - -(define-public perl-test-harness - (package - (name "perl-test-harness") - (version "3.39") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/L/LE/LEONT/" - "Test-Harness-" version ".tar.gz")) - (sha256 - (base32 - "0chiqnzmna2mglm37nzxvn9qhq2j31iwz3i9isqjs7bf3k449gb9")))) - (build-system perl-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (add-before 'check 'patch-test - (lambda* (#:key inputs #:allow-other-keys) - ;; This test looks for "#!/usr/bin/perl" in some source. - ;; Patch what the test looks for. - (substitute* "t/source.t" - (("#!/usr/bin/perl") - (string-append "#!" (assoc-ref inputs "perl") - "/bin/perl"))) - #t))))) - (home-page "http://search.cpan.org/dist/Test-Harness/") - (synopsis "Run Perl standard test scripts with statistics") - (description "Simple test harness which allows tests to be run and results -automatically aggregated and output to STDOUT.") - (license (package-license perl)))) - -(define-public perl-test-leaktrace - (package - (name "perl-test-leaktrace") - (version "0.16") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/L/LE/LEEJO/" - "Test-LeakTrace-" version ".tar.gz")) - (sha256 - (base32 - "00z4hcjra5nk700f3fgpy8fs036d7ry7glpn8g3wh7jzj7nrw22z")))) - (build-system perl-build-system) - (home-page "http://search.cpan.org/dist/Test-LeakTrace/") - (synopsis "Traces memory leaks in Perl") - (description "Test::LeakTrace provides several functions that trace memory -leaks. This module scans arenas, the memory allocation system, so it can -detect any leaked SVs in given blocks.") - (license (package-license perl)))) - -(define-public perl-test-longstring - (package - (name "perl-test-longstring") - (version "0.17") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/R/RG/RGARCIA/" - "Test-LongString-" version ".tar.gz")) - (sha256 - (base32 - "0kwp7rfr1i2amz4ckigkv13ah7jr30q6l5k4wk0vxl84myg39i5b")))) - (build-system perl-build-system) - (home-page "http://search.cpan.org/dist/Test-LongString/") - (synopsis "Tests strings for equality, with more helpful failures") - (description "This module provides some drop-in replacements for the -string comparison functions of Test::More, but which are more suitable when -you test against long strings.") - (license (package-license perl)))) - -(define-public perl-test-manifest - (package - (name "perl-test-manifest") - (version "2.02") - (source (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/B/BD/BDFOY/" - "Test-Manifest-" version ".tar.gz")) - (sha256 - (base32 - "15ik52l9macrrfizf4y6wj71d4lx7w590h2dfajnkmbxmz786iq6")))) - (build-system perl-build-system) - (native-inputs - `(("perl-test-pod" ,perl-test-pod) - ("perl-test-pod-coverage" ,perl-test-pod-coverage))) - (home-page "http://search.cpan.org/dist/Test-Manifest/") - (synopsis "Interact with a t/test_manifest file") - (description "@code{Test::Manifest} overrides the default test file order. Instead of -running all of the t/*.t files in ASCII-betical order, it looks in the t/test_manifest -file to find out which tests you want to run and the order in which you want to run them. -It constructs the right value for the build system to do the right thing.") - (license (package-license perl)))) - -(define-public perl-test-memory-cycle - (package - (name "perl-test-memory-cycle") - (version "1.06") - (source - (origin - (method url-fetch) - (uri (string-append - "mirror://cpan/authors/id/P/PE/PETDANCE/Test-Memory-Cycle-" - version - ".tar.gz")) - (sha256 - (base32 - "00ijmgx1r3cxrcs1qa9rb2s4gbm3nsawd90drda89kb4r7yxslwx")))) - (build-system perl-build-system) - (inputs - `(("perl-padwalker" ,perl-padwalker))) - (propagated-inputs - `(("perl-devel-cycle" ,perl-devel-cycle))) - (home-page - "http://search.cpan.org/dist/Test-Memory-Cycle/") - (synopsis - "Verifies code hasn't left circular references") - (description - "@code{Test::Memory::Cycle} is built on top of @code{Devel::Cycle} to -give you an easy way to check for these circular references. - -@example -use Test::Memory::Cycle; - -my $object = new MyObject; -# Do stuff with the object. -memory_cycle_ok( $object ); -@end example") - (license artistic2.0))) - -(define-public perl-test-mockobject - (package - (name "perl-test-mockobject") - (version "1.20150527") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/C/CH/CHROMATIC/" - "Test-MockObject-" version ".tar.gz")) - (sha256 - (base32 - "160xvhbpwqjaff4fgckvldknldzcbn1z3jvyzybs7cqlj1x3bwdd")))) - (build-system perl-build-system) - (native-inputs - `(("perl-test-exception" ,perl-test-exception) - ("perl-test-warn" ,perl-test-warn))) - (propagated-inputs - `(("perl-test-exception" ,perl-test-exception) - ("perl-test-warn" ,perl-test-warn) - ("perl-universal-can" ,perl-universal-can) - ("perl-universal-isa" ,perl-universal-isa))) - (arguments `(#:tests? #f)) ;TODO: tests require perl-cgi - (home-page "http://search.cpan.org/dist/Test-MockObject/") - (synopsis "Emulate troublesome interfaces in Perl") - (description "Test::MockObject allows you to create objects that conform -to particular interfaces with very little code. You don't have to reimplement -the behavior, just the input and the output.") - (license (package-license perl)))) - -(define-public perl-test-mocktime - (package - (name "perl-test-mocktime") - (version "0.13") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/D/DD/DDICK/" - "Test-MockTime-" version ".tar.gz")) - (sha256 - (base32 - "0yrqmjg33akannwz2f99rfm7dvvxpzsdj23lsvlvfi4qslrlqfvw")))) - (build-system perl-build-system) - (home-page "http://search.cpan.org/dist/Test-MockTime/") - (synopsis "Replaces actual time with simulated time") - (description "This module was created to enable test suites to test code -at specific points in time. Specifically it overrides localtime, gmtime and -time at compile time and then relies on the user supplying a mock time via -set_relative_time, set_absolute_time or set_fixed_time to alter future calls -to gmtime,time or localtime.") - (license (package-license perl)))) - -(define-public perl-test-most - (package - (name "perl-test-most") - (version "0.34") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/O/OV/OVID/" - "Test-Most-" version ".tar.gz")) - (sha256 - (base32 - "0i72aih3pakm8gh73wx1n4dwq8lbx6dvxhla46gsapszws6hr0n2")))) - (build-system perl-build-system) - (propagated-inputs - `(("perl-test-differences" ,perl-test-differences) - ("perl-test-warn" ,perl-test-warn) - ("perl-exception-class" ,perl-exception-class) - ("perl-test-deep" ,perl-test-deep) - ("perl-test-exception" ,perl-test-exception))) - (home-page "http://search.cpan.org/dist/Test-Most/") - (synopsis "Most commonly needed test functions and features") - (description "This module provides the most commonly used testing -functions, along with automatically turning on strict and warning and gives a -bit more fine-grained control over test suites.") - (license (package-license perl)))) - -(define-public perl-test-needs - (package - (name "perl-test-needs") - (version "0.002005") - (source - (origin - (method url-fetch) - (uri (string-append - "mirror://cpan/authors/id/H/HA/HAARG/Test-Needs-" - version - ".tar.gz")) - (sha256 - (base32 - "16gkgpmr9hvkz382iaqd3500269lk2d44fqaw3dsrvc66nc36kss")))) - (build-system perl-build-system) - (home-page - "http://search.cpan.org/dist/Test-Needs/") - (synopsis - "Skip tests when modules not available") - (description "@code{Test::Needs} allows you to skip test scripts if -modules are not available. The requested modules will be loaded, and -optionally have their versions checked. If the module is missing, the test -script will be skipped. Modules that are found but fail to compile will exit -with an error rather than skip. - -If used in a subtest, the remainder of the subtest will be skipped.") - (license (package-license perl)))) - -(define-public perl-test-notabs - (package - (name "perl-test-notabs") - (version "2.00") - (source - (origin - (method url-fetch) - (uri (string-append - "mirror://cpan/authors/id/E/ET/ETHER/Test-NoTabs-" - version - ".tar.gz")) - (sha256 - (base32 - "127kpl1va267qar2ia4c22xb96jby2jqnda3sj5pjgmxg8si26cg")))) - (build-system perl-build-system) - (home-page - "http://search.cpan.org/dist/Test-NoTabs/") - (synopsis - "Check the presence of tabs in your project") - (description - "@code{Test::NoTabs} lets you check the presence of tabs in your perl -code.") - (license perl-license))) - -(define-public perl-test-nowarnings - (package - (name "perl-test-nowarnings") - (version "1.04") - (source (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/A/AD/ADAMK/" - "Test-NoWarnings-" version ".tar.gz")) - (sha256 - (base32 - "0v385ch0hzz9naqwdw2az3zdqi15gka76pmiwlgsy6diiijmg2k3")))) - (build-system perl-build-system) - (inputs `(("perl-test-tester" ,perl-test-tester))) - (synopsis "Ensure no warnings are produced while testing") - (description - "This modules causes any warnings during testing to be captured and -stored. It automatically adds an extra test that will run when your script -ends to check that there were no warnings. If there were any warnings, the -test will fail and output diagnostics of where, when and what the warning was, -including a stack trace of what was going on when it occurred.") - (home-page (string-append "http://search.cpan.org/~adamk//" - "Test-NoWarnings-" version)) - (license lgpl2.1))) - -(define-public perl-test-number-delta - (package - (name "perl-test-number-delta") - (version "1.06") - (source (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/D/DA/DAGOLDEN/" - "Test-Number-Delta-" version ".tar.gz")) - (sha256 - (base32 - "0jfhzhpzkc23mkrlbnv085ykpfncmy99hvppbzjnrpvgks8k0m2k")))) - (build-system perl-build-system) - (home-page "http://search.cpan.org/dist/Test-Number-Delta/") - (synopsis - "Compare the difference between numbers against a given tolerance") - (description - "At some point or another, most programmers find they need to compare -floating-point numbers for equality. The typical idiom is to test if the -absolute value of the difference of the numbers is within a desired tolerance, -usually called epsilon. This module provides such a function for use with -@code{Test::More}.") - (license asl2.0))) - -(define-public perl-test-output - (package - (name "perl-test-output") - (version "1.03") - (source (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/B/BD/BDFOY/" - "Test-Output-" version ".tar.gz")) - (sha256 - (base32 - "12991jnzj4cbw9whhprmqvnzd1ayii84g2mh8vxbjngwqrjsy41i")))) - (build-system perl-build-system) - (propagated-inputs - `(("perl-capture-tiny" ,perl-capture-tiny) - ("perl-test-tester" ,perl-test-tester) - ("perl-sub-exporter" ,perl-sub-exporter))) - (synopsis "Utilities to test STDOUT and STDERR messages") - (description - "Test::Output provides a simple interface for testing output sent to -STDOUT or STDERR. A number of different utilities are included to try and be -as flexible as possible to the tester.") - (home-page (string-append "http://search.cpan.org/~bdfoy//" - "Test-Output-" version)) - (license (package-license perl)))) - -(define-public perl-test-pod - (package - (name "perl-test-pod") - (version "1.48") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/D/DW/DWHEELER/" - "Test-Pod-" version ".tar.gz")) - (sha256 - (base32 - "1hmwwhabyng4jrnll926b4ab73r40w3pfchlrvs0yx6kh6kwwy14")))) - (build-system perl-build-system) - (native-inputs `(("perl-module-build" ,perl-module-build))) - (home-page "http://search.cpan.org/dist/Test-Pod/") - (synopsis "Check for POD errors in files") - (description "Check POD files for errors or warnings in a test file, using -Pod::Simple to do the heavy lifting.") - (license (package-license perl)))) - -(define-public perl-test-pod-coverage - (package - (name "perl-test-pod-coverage") - (version "1.10") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/N/NE/NEILB/" - "Test-Pod-Coverage-" version ".tar.gz")) - (sha256 - (base32 - "1m203mhgfilz7iqc8mxaw4lw02fz391mni3n25sfx7nryylwrja8")))) - (build-system perl-build-system) - (propagated-inputs - `(("perl-pod-coverage" ,perl-pod-coverage))) - (home-page "http://search.cpan.org/dist/Test-Pod-Coverage/") - (synopsis "Check for pod coverage") - (description "This module adds a test to your Perl distribution which -checks for pod coverage of all appropriate files.") - (license artistic2.0))) - -(define-public perl-test-requires - (package - (name "perl-test-requires") - (version "0.08") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/T/TO/TOKUHIROM/" - "Test-Requires-" version ".tar.gz")) - (sha256 - (base32 - "08c29m0dn34384mmmpqqlbb899zpbkkc01c2lsp31mch1frv9cg7")))) - (build-system perl-build-system) - (home-page "http://search.cpan.org/dist/Test-Requires/") - (synopsis "Checks to see if the module can be loaded") - (description "Test::Requires checks to see if the module can be loaded. -If this fails, then rather than failing tests this skips all tests.") - (license (package-license perl)))) - -(define-public perl-test-script - (package - (name "perl-test-script") - (version "1.20") - (source (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/P/PL/PLICEASE/" - "Test-Script-" version ".tar.gz")) - (sha256 - (base32 - "1msavbi6przkxq3npm90nv925v58iym9jrk677wn46x19whwzwzm")))) - (build-system perl-build-system) - (propagated-inputs - `(("perl-capture-tiny" ,perl-capture-tiny) - ("perl-probe-perl" ,perl-probe-perl))) - (synopsis "Basic cross-platform tests for scripts") - (description - "The intent of the Test::Script module is to provide a series of basic -tests for 80% of the testing you will need to do for scripts in the script (or -bin as is also commonly used) paths of your Perl distribution.") - (home-page "http://search.cpan.org/dist/Test-Script/") - (license (package-license perl)))) - -(define-public perl-test-sharedfork - (package - (name "perl-test-sharedfork") - (version "0.29") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/E/EX/EXODIST/" - "Test-SharedFork-" version ".tar.gz")) - (sha256 - (base32 - "0vlak10q4gcf0ch0rfcb9lvddav6r8h15iipzbkbgf9mrj47gbv3")))) - (build-system perl-build-system) - (native-inputs - `(("perl-test-requires" ,perl-test-requires))) - (home-page "http://search.cpan.org/dist/Test-SharedFork/") - (synopsis "Fork test in Perl") - (description "Test::SharedFork is a utility module for Test::Builder. It -makes fork(2) safe to use in test cases.") - (license (package-license perl)))) - -(define-public perl-test-simple - (package - (name "perl-test-simple") - (version "1.302078") - (source (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/E/EX/EXODIST/" - "Test-Simple-" version ".tar.gz")) - (sha256 - (base32 - "05acl24kmz3dgr2nayy162yaf0kz92h1j5vkiavyv6mdh2lz6ixb")))) - (build-system perl-build-system) - (synopsis "Basic utilities for writing tests") - (description - "Test::Simple contains basic utilities for writing tests.") - (home-page (string-append "http://search.cpan.org/~exodist//" - "Test-Simple-" version)) - (license (package-license perl)))) - -(define-public perl-test-taint - (package - (name "perl-test-taint") - (version "1.06") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/Test-Taint-" - version ".tar.gz")) - (sha256 - (base32 - "01rip5d7gdr1c7lq6yczzkqfd0500nfa977ryigylj6jj75526vj")))) - (build-system perl-build-system) - (home-page "http://search.cpan.org/dist/Test-Taint/") - (synopsis "Checks for taintedness of variables") - (description "Tainted data is data that comes from an unsafe source, such -as the command line, or, in the case of web apps, any @code{GET} or -@code{POST} transactions. Read the @code{perlsec} man page for details on why -tainted data is bad, and how to untaint the data. - -When you're writing unit tests for code that deals with tainted data, you'll -want to have a way to provide tainted data for your routines to handle, and -easy ways to check and report on the taintedness of your data, in standard -@code{Test::More} style.") - (license (package-license perl)))) - -(define-public perl-test-tester - (package - (name "perl-test-tester") - (version "0.109") - (source (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/F/FD/FDALY/" - "Test-Tester-" version ".tar.gz")) - (sha256 - (base32 - "0m9n28z09kq455r5nydj1bnr85lvmbfpcbjdkjfbpmfb5xgciiyk")))) - (build-system perl-build-system) - (synopsis "Simplify running Test::Builder tests") - (description - "Test::Tester allows testing of test modules based on Test::Builder with -a minimum of effort.") - (home-page (string-append "http://search.cpan.org/~fdaly//" - "Test-Tester-" version)) - ;; "Under the same license as Perl itself" - (license (package-license perl)))) - -(define-public perl-test-trap - (package - (name "perl-test-trap") - (version "0.3.2") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/E/EB/EBHANSSEN/" - "Test-Trap-v" version ".tar.gz")) - (sha256 - (base32 - "0jq54pkm4s61gk8gzxglix1ff9s0m9vi6bpfv7f63lb9qq4r76rr")))) - (build-system perl-build-system) - (native-inputs - `(("perl-module-build" ,perl-module-build) - ("perl-test-simple" ,perl-test-simple))) - (propagated-inputs - `(("perl-test-tester" ,perl-test-tester) - ("perl-data-dump" ,perl-data-dump))) - (home-page "http://search.cpan.org/dist/Test-Trap/") - (synopsis "Trap exit codes, exceptions, output, and so on") - (description "This module is primarily (but not exclusively) for use in -test scripts: A block eval configurable and extensible but by default trapping -STDOUT, STDERR, warnings, exceptions, would-be exit codes, and return values -from boxed blocks of test code.") - (license (package-license perl)))) - -(define-public perl-test-utf8 - (package - (name "perl-test-utf8") - (version "1.01") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/M/MA/MARKF/" - "Test-utf8-" version ".tar.gz")) - (sha256 - (base32 - "0yhvf735v334qqvp9zg7i66qyk6r4cbk5s2psv93d3fdd4bindzg")))) - (build-system perl-build-system) - (native-inputs - `(("perl-module-install" ,perl-module-install))) - (home-page "http://search.cpan.org/dist/Test-utf8/") - (synopsis "UTF-8 testing in Perl") - (description "This module is a collection of tests useful for dealing with -UTF-8 strings in Perl. This module has two types of tests: The validity tests -check if a string is valid and not corrupt, whereas the characteristics tests -will check that string has a given set of characteristics.") - (license (package-license perl)))) - -(define-public perl-test-warn - (package - (name "perl-test-warn") - (version "0.30") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/C/CH/CHORNY/" - "Test-Warn-" version ".tar.gz")) - (sha256 - (base32 - "0haf2ii7br5z0psmkvlvmx2z2q9qz1c70gx0969r378qjidmb5w1")))) - (build-system perl-build-system) - (propagated-inputs - `(("perl-sub-uplevel" ,perl-sub-uplevel))) - (home-page "http://search.cpan.org/dist/Test-Warn/") - (synopsis "Perl extension to test methods for warnings") - (description "This module provides a few convenience methods for testing -warning based code.") - (license (package-license perl)))) - -(define-public perl-test-warnings - (package - (name "perl-test-warnings") - (version "0.026") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/" - "Test-Warnings-" version ".tar.gz")) - (sha256 - (base32 - "024srkwjckp15dxkni9lb1hc8bg4xwc52zz0iich8rv1nnqnhaxf")))) - (build-system perl-build-system) - (home-page "http://search.cpan.org/dist/Test-Warnings/") - (synopsis "Test for warnings and the lack of them") - (description "This module is intended to be used as a drop-in replacement -for Test::NoWarnings. It also adds an extra test, but runs this test before -done_testing calculates the test count, rather than after. It does this by -hooking into done_testing as well as via an END block. You can declare a -plan, or not, and things will still Just Work.") - (license (package-license perl)))) - -(define-public perl-test-without-module - (package - (name "perl-test-without-module") - (version "0.18") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/C/CO/CORION/" - "Test-Without-Module-" version ".tar.gz")) - (sha256 - (base32 - "0zwc2dk5srd02j4p049w77m89iw5nbff381rmhcbaz8x2w5kdhz2")))) - (build-system perl-build-system) - (home-page "http://search.cpan.org/dist/Test-Without-Module/") - (synopsis "Test fallback behaviour in absence of modules") - (description "This module allows you to deliberately hide modules from a -program even though they are installed. This is mostly useful for testing -modules that have a fallback when a certain dependency module is not -installed.") - (license (package-license perl)))) - -(define-public perl-test-writevariants - (package - (name "perl-test-writevariants") - (version "0.010") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/R/RE/REHSACK/" - "Test-WriteVariants-" version ".tar.gz")) - (sha256 - (base32 - "0kklp05fj98yiq8znyfx9lx1vmjay2ypfb868qdwv3kf93m5zjwr")))) - (build-system perl-build-system) - (native-inputs - `(("perl-test-most" ,perl-test-most) - ("perl-test-directory" ,perl-test-directory))) - (propagated-inputs - `(("perl-data-tumbler" ,perl-data-tumbler) - ("perl-file-homedir" ,perl-file-homedir) - ("perl-module-pluggable" ,perl-module-pluggable))) - (home-page "http://search.cpan.org/dist/Test-WriteVariants/") - (synopsis "Dynamic generation of tests") - (description "The Test::WriteVariants module provides for the dynamic -generation of tests in nested combinations of contexts.") - (license (package-license perl)))) ;See LICENSE - -(define-public perl-test-yaml - (package - (name "perl-test-yaml") - (version "1.05") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://cpan/authors/id/I/IN/INGY/" - "Test-YAML-" version ".tar.gz")) - (sha256 - (base32 - "079nayc0fp2fwjv8s2yr069bdffln699j6z3lqr5dpx1v2qg82ck")))) - (build-system perl-build-system) - (propagated-inputs - `(("perl-test-base" ,perl-test-base))) - (home-page "http://search.cpan.org/dist/Test-YAML/") - (synopsis "Testing module for YAML implementations") - (description "Test::YAML is a subclass of Test::Base with YAML specific -support.") - (license (package-license perl)))) - (define-public perl-text-aligner (package (name "perl-text-aligner") @@ -9796,37 +8694,6 @@ File::Find replacement in Perl.") interface to File::Find::Object.") (license (package-license perl)))) -(define-public perl-test-trailingspace - (package - (name "perl-test-trailingspace") - (version "0.0300") - (source - (origin - (method url-fetch) - (uri (string-append - "mirror://cpan/authors/id/S/SH/SHLOMIF/Test-TrailingSpace-" - version - ".tar.gz")) - (sha256 - (base32 - "01slmrcjfq38mpdg3hlb7lnnbgsqbn26958y3hzx0zwrif40pigr")))) - (build-system perl-build-system) - (native-inputs - `(("perl-module-build" ,perl-module-build) - ("perl-file-find-object" ,perl-file-find-object) - ("perl-class-xsaccessor" ,perl-class-xsaccessor))) - (inputs - `(("perl-file-find-object-rule" ,perl-file-find-object-rule) - ("perl-text-glob" ,perl-text-glob) - ("perl-number-compare" ,perl-number-compare))) - (home-page - "http://search.cpan.org/dist/Test-TrailingSpace/") - (synopsis - "Test for trailing space in Perl source files") - (description "Test::TrailingSpace tests for trailing spaces -in Perl source files.") - (license x11))) - (define-public perl-libtime-parsedate (package (name "perl-libtime-parsedate") diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index 1bfe6a7762..d4a0da09a6 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -47,6 +47,7 @@ #:use-module (gnu packages linux) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages qt) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index fef81c6931..67a1298bec 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -50,6 +50,7 @@ #:use-module (gnu packages multiprecision) #:use-module (gnu packages pdf) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages qt) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 4a5f6b068a..22c48f0c6b 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -70,6 +70,7 @@ #:use-module (gnu packages web) #:use-module (gnu packages openstack) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages readline) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 6a90868467..dc9849eafe 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -90,6 +90,7 @@ #:use-module (gnu packages openstack) #:use-module (gnu packages base) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages python) #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) @@ -97,7 +98,6 @@ #:use-module (gnu packages valgrind) #:use-module (gnu packages xml) #:use-module (gnu packages curl) - #:use-module (gnu packages perl) #:use-module (gnu packages texinfo) #:use-module (gnu packages textutils) #:use-module (gnu packages tls) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index c4bd67117d..4f75de344c 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -40,6 +40,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages gnupg) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages python) #:use-module (gnu packages tls) #:use-module (gnu packages web) diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm index 7910a5d026..8435a463b4 100644 --- a/gnu/packages/xorg.scm +++ b/gnu/packages/xorg.scm @@ -64,6 +64,7 @@ #:use-module (gnu packages ncurses) #:use-module (gnu packages pciutils) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages qt) -- cgit 1.4.1 From 1b2f753d9c73a5431ec1f5510449c480debf80ce Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 13 Nov 2017 23:24:11 +0100 Subject: gnu: Move web packages from python to python-web. This is in part to address . * gnu/packages/python.scm (python-httplib2, python2-httplib2) (python-sockjs-tornado, python2-sockjs-tornado) (python-flask-babel, python2-flask-babel) (python-html5lib, python2-html5lib) (python-html5lib-0.9, python2-html5lib-0.9) (python-html5-parser, python2-html5-parser) (python-webencodings, python2-webencodings) (python-openid, python2-openid, python-cssutils, python2-cssutils) (python-cssselect, python2-cssutils) (python-openid-cla, python2-openid-cla) (python-openid-teams, python2-openid-teams) (python-tornado, python2-tornado) (python-tornado-http-auth, python-terminado, python2-terminado) (python-webob, python2-webob, python-zope-event, python2-zope-event) (python-zope-interface, python2-zope-interface) (python-zope-exceptions, python2-zope-exceptions) (python-zope-testing, python2-zope-testing) (python-zope-testrunner, python2-zope-testrunner) (python-zope-i18nmessageid, python2-zope-i18nmessageid) (python-zope-schema, python2-zope-schema) (python-zope-configuration, python2-zope-configuration) (python-zope-proxy, python2-zope-proxy) (python-zope-location, python2-zope-location) (python-zope-security, python2-zope-security) (python-zope-component, python2-zope-component) (python-ndg-httpsclient, python2-ndg-httpsclient) (python-websocket-client, python2-websocket-client) (python-requests-toolbelt, python2-requests-toolbelt) (python-rauth, python2-rauth, python-urllib3, python2-urllib3) (awscli, python-wsgiproxy2, python2-wsgiproxy2) (python-pastedeploy, python2-pastedeploy) (python-webtest, python2-webtest, python-flask, python2-flask) (python-flast-wtf, python2-flask-wtf) (python-flask-multistatic, python2-flask-multistatic) (python-cookies, python2-cookies) (python-responses, python2-responses) (python-geventhttpclient, python2-geventhttpclient) (python-requests-oauthlib, python2-requests-oauthlib) (python-url, python2-url, python-cachecontrol, python2-cachecontrol) (python-betamax, python2-betamax) (python-betamax-matchers, python2-betamax-matchers) (python-s3transfer, python2-s3transfer) (python-flask-restful, python-flask-basicauth) (python-flask-sqlalchemy, python-flask-restplus) (python-flask-restful-swagger, python-htmlmin, python2-htmlmin) (python-flask-htmlmin, python2-flask-htmlmin) (python-flask-login, python2-flask-login) (python-oauth2client, python-flask-oidc) (python-webassets, python-cssmin, python2-cssmin) (python-elasticsearch, python2-elasticsearch) (python-flask-script, python2-flask-script) (python-flask-migrate, python2-flask-migrate) (python-genshi, python2-genshi) (python-flask-principal, python2-flask-principal) (python-flask-httpauth, python2-flask-httpauth) (python-uritemplate, python2-uritemplate): Move to... * gnu/packages/python-web.scm: ... here. New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/admin.scm, gnu/packages/backup.scm, gnu/packages/dav.scm, gnu/packages/django.scm, gnu/packages/docker.scm, gnu/packages/ebook.scm, gnu/packages/logging.scm, gnu/packages/mail.scm, gnu/packages/music.scm, gnu/packages/openstack.scm, gnu/packages/package-management.scm, gnu/packages/rdf.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/tryton.scm, gnu/packages/version-control.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm: Adjust accordingly. --- gnu/local.mk | 1 + gnu/packages/admin.scm | 2 +- gnu/packages/backup.scm | 1 + gnu/packages/dav.scm | 3 +- gnu/packages/django.scm | 3 +- gnu/packages/docker.scm | 3 +- gnu/packages/ebook.scm | 1 + gnu/packages/logging.scm | 1 + gnu/packages/mail.scm | 1 + gnu/packages/music.scm | 1 + gnu/packages/openstack.scm | 41 +- gnu/packages/package-management.scm | 1 + gnu/packages/python-web.scm | 2119 ++++++++++++++++++++++++++++++++++ gnu/packages/python.scm | 2173 ++--------------------------------- gnu/packages/rdf.scm | 1 + gnu/packages/tls.scm | 1 + gnu/packages/tor.scm | 1 + gnu/packages/tryton.scm | 1 + gnu/packages/version-control.scm | 1 + gnu/packages/web-browsers.scm | 1 + gnu/packages/web.scm | 1 + 21 files changed, 2214 insertions(+), 2144 deletions(-) create mode 100644 gnu/packages/python-web.scm (limited to 'gnu/packages/web.scm') diff --git a/gnu/local.mk b/gnu/local.mk index 00d82ee4a1..459112fc57 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -341,6 +341,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/protobuf.scm \ %D%/packages/pv.scm \ %D%/packages/python.scm \ + %D%/packages/python-web.scm \ %D%/packages/tryton.scm \ %D%/packages/qt.scm \ %D%/packages/ragel.scm \ diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 30b5a1fb6a..43a72d7184 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -69,6 +69,7 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages texinfo) #:use-module (gnu packages groff) #:use-module (gnu packages pciutils) @@ -78,7 +79,6 @@ #:use-module (gnu packages image) #:use-module (gnu packages xorg) #:use-module (gnu packages xdisorg) - #:use-module (gnu packages python) #:use-module (gnu packages man) #:use-module (gnu packages autotools) #:use-module (gnu packages gnome) diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index c60d02d1e3..70dfb30c03 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -49,6 +49,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages rsync) #:use-module (gnu packages ssh) #:use-module (gnu packages tls) diff --git a/gnu/packages/dav.scm b/gnu/packages/dav.scm index 5a780b9148..f06f232587 100644 --- a/gnu/packages/dav.scm +++ b/gnu/packages/dav.scm @@ -22,7 +22,8 @@ #:use-module (guix licenses) #:use-module (guix packages) #:use-module (gnu packages) - #:use-module (gnu packages python)) + #:use-module (gnu packages python) + #:use-module (gnu packages python-web)) (define-public radicale (package diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index f983b1aa10..229f0319f4 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -27,7 +27,8 @@ #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages databases) - #:use-module (gnu packages python)) + #:use-module (gnu packages python) + #:use-module (gnu packages python-web)) (define-public python-django (package diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm index 3cfdb7ef55..f540417b4f 100644 --- a/gnu/packages/docker.scm +++ b/gnu/packages/docker.scm @@ -24,7 +24,8 @@ #:use-module (guix git-download) #:use-module (guix build-system python) #:use-module (guix utils) - #:use-module (gnu packages python)) + #:use-module (gnu packages python) + #:use-module (gnu packages python-web)) (define-public python-docker-py (package diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm index 0eeee09054..8cf977cff3 100644 --- a/gnu/packages/ebook.scm +++ b/gnu/packages/ebook.scm @@ -44,6 +44,7 @@ #:use-module (gnu packages pdf) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages qt) #:use-module (gnu packages serialization) #:use-module (gnu packages tls) diff --git a/gnu/packages/logging.scm b/gnu/packages/logging.scm index 648a07e4c4..6f9056d8f2 100644 --- a/gnu/packages/logging.scm +++ b/gnu/packages/logging.scm @@ -30,6 +30,7 @@ #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages autotools)) (define-public log4cpp diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index c6ac2662b1..0b1f0e7dbf 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -81,6 +81,7 @@ #:use-module (gnu packages pcre) #:use-module (gnu packages perl) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages readline) #:use-module (gnu packages search) #:use-module (gnu packages texinfo) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index f5df440709..04a1c934a5 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -93,6 +93,7 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages pulseaudio) ;libsndfile #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages qt) #:use-module (gnu packages rdf) #:use-module (gnu packages readline) diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index 86d1ce9978..410a205849 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -21,6 +21,7 @@ (define-module (gnu packages openstack) #:use-module (gnu packages gnupg) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages ssh) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) @@ -249,46 +250,6 @@ tested on Python version 3.2, 2.7 and 2.6.") (define-public python2-os-testr (package-with-python2 python-os-testr)) -(define-public python-requests-mock - (package - (name "python-requests-mock") - (version "1.3.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "requests-mock" version)) - (sha256 - (base32 - "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx")))) - (build-system python-build-system) - (propagated-inputs - `(("python-requests" ,python-requests) - ("python-six" ,python-six))) - (native-inputs - `(("python-pbr" ,python-pbr) - ("python-discover" ,python-discover) - ("python-docutils" ,python-docutils) - ("python-fixtures" ,python-fixtures) - ("python-mock" ,python-mock) - ("python-sphinx" ,python-sphinx) - ("python-testrepository" ,python-testrepository) - ("python-testtools" ,python-testtools))) - (home-page "https://requests-mock.readthedocs.org/") - (synopsis "Mock out responses from the requests package") - (description - "This module provides a building block to stub out the HTTP requests -portions of your testing code.") - (properties `((python2-variant . ,(delay python2-requests-mock)))) - (license asl2.0))) - -(define-public python2-requests-mock - (package (inherit (package-with-python2 - (strip-python2-variant python-requests-mock))) - (arguments - `(#:python ,python-2 - ;; FIXME: 'subunit.run discover: error: no such option: --list' - #:tests? #f)))) - (define-public python-stevedore (package (name "python-stevedore") diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 1242156dbf..85b6cd2699 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -53,6 +53,7 @@ #:use-module (gnu packages bdw-gc) #:use-module (gnu packages patchutils) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages popt) #:use-module (gnu packages gnuzilla) #:use-module (gnu packages cpio) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm new file mode 100644 index 0000000000..d541b0f3fd --- /dev/null +++ b/gnu/packages/python-web.scm @@ -0,0 +1,2119 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2015 Eric Dvorsak +;;; Copyright © 2015, 2016, 2017 Efraim Flashner +;;; Copyright © 2017 Christopher Baines +;;; Copyright © 2016 Danny Milosavljevic +;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge +;;; Copyright © 2016, 2017 Marius Bakke +;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus +;;; Copyright © 2017 Roel Janssen +;;; Copyright © 2016, 2017 Julien Lepiller +;;; Copyright © 2016, 2017 ng0 +;;; Copyright © 2014, 2017 Eric Bavier +;;; Copyright © 2014, 2015 Mark H Weaver +;;; Copyright © 2015 Cyril Roelandt +;;; Copyright © 2015, 2016, 2017 Leo Famulari +;;; Copyright © 2016 Hartmut Goebel +;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice +;;; Copyright © 2015, 2017 Ben Woodcroft +;;; Copyright © 2015, 2016 Christopher Allan Webber +;;; Copyright © 2017 Adriano Peluso +;;; Copyright © 2016 Dylan Jeffers +;;; Copyright © 2016 David Craven +;;; Copyright © 2017 Oleg Pykhalov +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages python-web) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system python) + #:use-module (gnu packages) + #:use-module (gnu packages compression) + #:use-module (gnu packages django) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages xml) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (srfi srfi-1)) + +(define-public python-httplib2 + (package + (name "python-httplib2") + (version "0.9.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "httplib2" version)) + (sha256 + (base32 + "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3")))) + (build-system python-build-system) + (home-page "https://github.com/jcgregorio/httplib2") + (synopsis "Comprehensive HTTP client library") + (description + "A comprehensive HTTP client library supporting many features left out of +other HTTP libraries.") + (license license:expat))) + +(define-public python2-httplib2 + (package-with-python2 python-httplib2)) + +(define-public python-sockjs-tornado + (package + (name "python-sockjs-tornado") + (version "1.0.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sockjs-tornado" version)) + (sha256 + (base32 + "16cff40nniqsyvda1pb2j3b4zwmrw7y2g1vqq78lp20xpmhnwwkd")))) + (build-system python-build-system) + (arguments + `(;; There are no tests, and running the test phase requires missing + ;; dependencies + #:tests? #f)) + (propagated-inputs + `(("python-tornado" ,python-tornado))) + (home-page "http://github.com/mrjoes/sockjs-tornado/") + (synopsis + "SockJS python server implementation on top of Tornado framework") + (description + "SockJS-tornado provides the server side counterpart to a SockJS client +library, through the Tornado framework. + +SockJS provides a low latency, full duplex, cross-domain communication channel +between a web browser and web server.") + (license license:expat))) + +(define-public python2-sockjs-tornado + (package-with-python2 python-sockjs-tornado)) + +(define-public python-flask-babel + (package + (name "python-flask-babel") + (version "0.11.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-Babel" version)) + (sha256 + (base32 + "16b80cipdba9xj3jlaiaq6wgrgpjb70w3j01jjy9hbp4k71kd6yj")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flask" ,python-flask) + ("python-babel" ,python-babel) + ("python-jinja2" ,python-jinja2) + ("python-pytz" ,python-pytz))) + (home-page "https://github.com/python-babel/flask-babel") + (synopsis "Add i18n/l10n support to Flask applications") + (description "This package implements internationalization and localization +support for Flask. This is based on the Python babel module as well as pytz - +both of which are installed automatically if you install this library.") + (license license:bsd-3))) + +(define-public python2-flask-babel + (package-with-python2 python-flask-babel)) + +(define-public python-html5lib + (package + (name "python-html5lib") + (version "1.0b10") + (source + (origin + (method url-fetch) + (uri (pypi-uri "html5lib" version)) + (sha256 + (base32 + "1yd068a5c00wd0ajq0hqimv7fd82lhrw0w3s01vbhy9bbd6xapqd")))) + (build-system python-build-system) + (propagated-inputs + `(("python-six" ,python-six) + ("python-webencodings" ,python-webencodings))) + (arguments + `(#:test-target "check")) + (home-page + "https://github.com/html5lib/html5lib-python") + (synopsis + "Python HTML parser based on the WHATWG HTML specifcation") + (description + "Html5lib is an HTML parser based on the WHATWG HTML specifcation +and written in Python.") + (license license:expat))) + +(define-public python2-html5lib + (package-with-python2 python-html5lib)) + +;; Needed for python-bleach, a dependency of python-notebook +(define-public python-html5lib-0.9 + (package + (inherit python-html5lib) + (version "0.999") + (source + (origin + (method url-fetch) + (uri (pypi-uri "html5lib" version)) + (sha256 + (base32 + "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263")))))) + +(define-public python2-html5lib-0.9 + (package-with-python2 python-html5lib-0.9)) + +(define-public python-html5-parser + (package + (name "python-html5-parser") + (version "0.4.4") + (source (origin + (method url-fetch) + (uri (pypi-uri "html5-parser" version)) + (sha256 + (base32 + "1d8sxhl41ffh7qlk7wlsy17xw6slzx5v1yna9s72wx5qrpaa3wxr")))) + (build-system python-build-system) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("libxml2" ,libxml2))) + (propagated-inputs + `(("python-lxml" ,python-lxml) + ("python-beautifulsoup4" ,python-beautifulsoup4))) + (home-page "https://html5-parser.readthedocs.io") + (synopsis "Fast C-based HTML5 parsing for Python") + (description "This package provides a fast implementation of the HTML5 +parsing spec for Python. Parsing is done in C using a variant of the gumbo +parser. The gumbo parse tree is then transformed into an lxml tree, also in +C, yielding parse times that can be a thirtieth of the html5lib parse times.") + ;; src/as-python-tree.[c|h] are licensed GPL3. The other files + ;; indicate ASL2.0, including the LICENSE file for the whole project. + (license (list license:asl2.0 license:gpl3)))) + +(define-public python2-html5-parser + (package-with-python2 python-html5-parser)) + +(define-public python-webencodings + (package + (name "python-webencodings") + (version "0.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "webencodings" version)) + (sha256 + (base32 + "015rw7662lkpb9aqiqah2hbizk6w531badqwjpz41rr47glmxid5")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "py.test" "-v" "webencodings/tests.py"))))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (home-page "https://github.com/SimonSapin/python-webencodings") + (synopsis "Character encoding aliases for legacy web content") + (description + "In order to be compatible with legacy web content when interpreting +something like @code{Content-Type: text/html; charset=latin1}, tools need +to use a particular set of aliases for encoding labels as well as some +overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on +the web are actually aliases for @code{windows-1252}, and an @code{UTF-8} +or @code{UTF-16} BOM takes precedence over any other encoding declaration. +The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard +defines all such details so that implementations do not have to +reverse-engineer each other. + +This module implements the Encoding standard and has encoding labels and +BOM detection, but the actual implementation for encoders and decoders +is Python’s.") + (license license:bsd-3))) + +(define-public python2-webencodings + (package-with-python2 python-webencodings)) + +(define-public python-openid + (package + (name "python-openid") + (version "3.0.10") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python3-openid" version)) + (sha256 + (base32 + "1x3nh3fycqfn43jp5j5pb4q4y2jxp4mdka4absaa3bc0078qd758")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "./admin/runtests"))))))) + (properties `((python2-variant . ,(delay python2-openid)))) + (propagated-inputs + `(("python-defusedxml" ,python-defusedxml))) + (native-inputs + `(("python-psycopg2" ,python-psycopg2) + ("python-django" ,python-django))) + (home-page "https://github.com/necaris/python3-openid") + (synopsis "OpenID support for servers and consumers") + (description "This library provides OpenID authentication for Python, both +for clients and servers.") + (license license:asl2.0))) + +(define-public python2-openid + (package + (name "python2-openid") + (version "2.2.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-openid" version)) + (sha256 + (base32 + "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj")))) + (build-system python-build-system) + (arguments + ;; Python 3 support is in `python3-openid`, a separate package. + `(#:python ,python-2)) + (home-page "https://github.com/openid/python-openid") + (synopsis "OpenID support for servers and consumers") + (description "This library provides OpenID authentication for Python, both +for clients and servers.") + (license license:asl2.0))) + +(define-public python-cssutils + (package + (name "python-cssutils") + (version "1.0.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cssutils" version)) + (sha256 + (base32 + "0qwha9x1wml2qmipbcz03gndnlwhzrjdvw9i09si247a90l8p8fq")))) + (build-system python-build-system) + (native-inputs + `(("unzip" ,unzip))) ; for unpacking the source + (arguments + `(#:tests? #f)) ;tests require python-pbr < 1.7.0 + (home-page "http://cthedot.de/cssutils/") + (synopsis + "CSS Cascading Style Sheets library for Python") + (description + "Cssutils is a Python package for parsing and building CSS +Cascading Style Sheets. Currently it provides a DOM only and no rendering +options.") + (license license:lgpl3+))) + +(define-public python2-cssutils + (package-with-python2 python-cssutils)) + +(define-public python-cssselect + (package + (name "python-cssselect") + (version "0.9.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cssselect" version)) + (sha256 + (base32 + "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi")))) + (build-system python-build-system) + (arguments + ;; tests fail with message + ;; AttributeError: 'module' object has no attribute 'tests' + `(#:tests? #f)) + (home-page + "https://pythonhosted.org/cssselect/") + (synopsis + "CSS3 selector parser and translator to XPath 1.0") + (description + "Cssselect ia a Python module that parses CSS3 Selectors and translates +them to XPath 1.0 expressions. Such expressions can be used in lxml or +another XPath engine to find the matching elements in an XML or HTML document.") + (license license:bsd-3))) + +(define-public python2-cssselect + (package-with-python2 python-cssselect)) + +(define-public python-openid-cla + (package + (name "python-openid-cla") + (version "1.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-openid-cla" version)) + (sha256 + (base32 + "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr")))) + (build-system python-build-system) + (arguments '(#:tests? #f)) ; No tests. + (home-page "https://github.com/puiterwijk/python-openid-cla/") + (synopsis "Implementation of the OpenID CLA extension for python-openid") + (description "@code{openid-cla} is an implementation of the OpenID +contributor license agreement extension for python-openid.") + (license license:bsd-3))) + +(define-public python2-openid-cla + (package-with-python2 python-openid-cla)) + +(define-public python-openid-teams + (package + (name "python-openid-teams") + (version "1.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-openid-teams" version)) + (sha256 + (base32 + "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969")))) + (build-system python-build-system) + (arguments '(#:tests? #f)) ; No tests. + (home-page "https://github.com/puiterwijk/python-openid-teams/") + (synopsis "Implementation of the OpenID teams extension for python-openid") + (description + "@code{openid-teams} is an implementation of the OpenID +teams extension for python-openid.") + (license license:bsd-3))) + +(define-public python2-openid-teams + (package-with-python2 python-openid-teams)) + +(define-public python-tornado + (package + (name "python-tornado") + (version "4.5.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "tornado" version)) + (sha256 + (base32 "1zbkgcdfq81k298awrm8p0xwbwwn2p3nbizdglzfbkskhai082fv")))) + (build-system python-build-system) + (arguments + '(;; FIXME: Two tests error out with: + ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b'' + ;; #:phases + ;; (modify-phases %standard-phases + ;; (replace 'check + ;; (lambda _ + ;; ;; 'setup.py test' hits an AssertionError on BSD-specific + ;; ;; "tornado/platform/kqueue.py". This is the supported method: + ;; (zero? (system* "python" "-m" "tornado.test"))))) + #:tests? #f)) + (native-inputs + `(("python-certifi" ,python-certifi))) + (propagated-inputs + `(("python-backports-abc" ,python-backports-abc))) + (home-page "http://www.tornadoweb.org/") + (synopsis "Python web framework and asynchronous networking library") + (description + "Tornado is a Python web framework and asynchronous networking library, +originally developed at FriendFeed. By using non-blocking network I/O, +Tornado can scale to tens of thousands of open connections, making it ideal +for long polling, WebSockets, and other applications that require a long-lived +connection to each user.") + (license license:asl2.0) + (properties `((python2-variant . ,(delay python2-tornado)))))) + +(define-public python2-tornado + (let ((tornado (package-with-python2 (strip-python2-variant python-tornado)))) + (package (inherit tornado) + (propagated-inputs + `(("python2-backport-ssl-match-hostname" + ,python2-backport-ssl-match-hostname) + ("python2-singledispatch" ,python2-singledispatch) + ,@(package-propagated-inputs tornado)))))) + +(define-public python-tornado-http-auth + (package + (name "python-tornado-http-auth") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "tornado-http-auth" version)) + (sha256 + (base32 + "0znrgqd7k2s4ia474xizi6h3061zj4sn5n6cq76bkwl3wwshifn5")))) + (build-system python-build-system) + (propagated-inputs + `(("python-tornado" ,python-tornado))) + (home-page + "https://github.com/gvalkov/tornado-http-auth") + (synopsis + "Digest and basic authentication module for Tornado") + (description + "Provides support for adding authentication to services using the Tornado +web framework, either via the basic or digest authentication schemes.") + (license license:asl2.0))) + +(define-public python-terminado + (package + (name "python-terminado") + (version "0.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "terminado" version)) + (sha256 + (base32 + "09h1kwi86g5mrk14s4pgbhshd602zry29lnpxamcqz864kva22rc")))) + (build-system python-build-system) + (propagated-inputs + `(("python-tornado" ,python-tornado) + ("python-ptyprocess" ,python-ptyprocess))) + (native-inputs + `(("python-nose" ,python-nose))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "nosetests"))))))) + (home-page "https://github.com/takluyver/terminado") + (synopsis "Terminals served to term.js using Tornado websockets") + (description "This package provides a Tornado websocket backend for the +term.js Javascript terminal emulator library.") + (license license:bsd-2) + (properties `((python2-variant . ,(delay python2-terminado)))))) + +(define-public python2-terminado + (let ((terminado (package-with-python2 (strip-python2-variant python-terminado)))) + (package (inherit terminado) + (propagated-inputs + `(("python2-backport-ssl-match-hostname" + ,python2-backport-ssl-match-hostname) + ,@(package-propagated-inputs terminado)))))) + +(define-public python-webob + (package + (name "python-webob") + (version "1.5.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "WebOb" version)) + (sha256 + (base32 + "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq")))) + (build-system python-build-system) + (native-inputs + `(("python-nose" ,python-nose))) + (home-page "http://webob.org/") + (synopsis "WSGI request and response object") + (description + "WebOb provides wrappers around the WSGI request environment, and an +object to help create WSGI responses.") + (license license:expat))) + +(define-public python2-webob + (package-with-python2 python-webob)) + +(define-public python-zope-event + (package + (name "python-zope-event") + (version "4.1.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/z" + "/zope.event/zope.event-" version ".tar.gz")) + (sha256 + (base32 + "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw")))) + (build-system python-build-system) + (home-page "http://pypi.python.org/pypi/zope.event") + (synopsis "Event publishing system for Python") + (description "Zope.event provides an event publishing API, intended for +use by applications which are unaware of any subscribers to their events. It +is a simple event-dispatching system on which more sophisticated event +dispatching systems can be built.") + (license license:zpl2.1))) + +(define-public python2-zope-event + (package-with-python2 python-zope-event)) + +(define-public python-zope-interface + (package + (name "python-zope-interface") + (version "4.1.3") + (source + (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/z" + "/zope.interface/zope.interface-" version ".tar.gz")) + (sha256 + (base32 + "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if")))) + (build-system python-build-system) + (native-inputs + `(("python-zope-event" ,python-zope-event))) + (home-page "https://github.com/zopefoundation/zope.interface") + (synopsis "Python implementation of the \"design by contract\" +methodology") + (description "Zope.interface provides an implementation of \"object +interfaces\" for Python. Interfaces are a mechanism for labeling objects as +conforming to a given API or contract.") + (license license:zpl2.1))) + +(define-public python2-zope-interface + (package-with-python2 python-zope-interface)) + +(define-public python-zope-exceptions + (package + (name "python-zope-exceptions") + (version "4.0.8") + (source + (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/z" + "/zope.exceptions/zope.exceptions-" + version ".tar.gz")) + (sha256 + (base32 + "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; circular dependency with zope.testrunner + (propagated-inputs + `(("python-zope-interface" ,python-zope-interface))) + (home-page "http://cheeseshop.python.org/pypi/zope.exceptions") + (synopsis "Zope exceptions") + (description "Zope.exceptions provides general-purpose exception types +that have uses outside of the Zope framework.") + (license license:zpl2.1))) + +(define-public python2-zope-exceptions + (package-with-python2 python-zope-exceptions)) + +(define-public python-zope-testing + (package + (name "python-zope-testing") + (version "4.5.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/z" + "/zope.testing/zope.testing-" version ".tar.gz")) + (sha256 + (base32 + "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Remove pre-compiled .pyc files backup files from source. + (for-each delete-file (find-files "." "(\\.pyc|~)$")) + #t)))) + (build-system python-build-system) + (native-inputs + `(("python-zope-exceptions" ,python-zope-exceptions))) + (propagated-inputs + `(("python-zope-interface" ,python-zope-interface))) + (home-page "http://pypi.python.org/pypi/zope.testing") + (synopsis "Zope testing helpers") + (description "Zope.testing provides a number of testing utilities for HTML +forms, HTTP servers, regular expressions, and more.") + (license license:zpl2.1))) + +(define-public python2-zope-testing + (package-with-python2 python-zope-testing)) + +(define-public python-zope-testrunner + (package + (name "python-zope-testrunner") + (version "4.4.9") + (source + (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/z" + "/zope.testrunner/zope.testrunner-" + version ".zip")) + (sha256 + (base32 + "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. + (native-inputs + `(("python-six" ,python-six) + ;("python-zope-interface" ,python-zope-interface) + ("python-zope-exceptions" ,python-zope-exceptions) + ("python-zope-testing" ,python-zope-testing) + ("unzip" ,unzip))) + (propagated-inputs + `(("python-zope-interface" ,python-zope-interface))) + (home-page "http://pypi.python.org/pypi/zope.testrunner") + (synopsis "Zope testrunner script") + (description "Zope.testrunner provides a script for running Python +tests.") + (license license:zpl2.1))) + +(define-public python2-zope-testrunner + (let ((base (package-with-python2 python-zope-testrunner))) + (package + (inherit base) + (native-inputs + (append (package-native-inputs base) + `(("python2-subunit" ,python2-subunit) + ("python2-mimeparse" ,python2-mimeparse))))))) + +(define-public python-zope-i18nmessageid + (package + (name "python-zope-i18nmessageid") + (version "4.0.3") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/z" + "/zope.i18nmessageid/zope.i18nmessageid-" + version ".tar.gz")) + (sha256 + (base32 + "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml")))) + (build-system python-build-system) + (home-page "http://pypi.python.org/pypi/zope.i18nmessageid") + (synopsis "Message identifiers for internationalization") + (description "Zope.i18nmessageid provides facilities for declaring +internationalized messages within program source text.") + (license license:zpl2.1))) + +(define-public python2-zope-i18nmessageid + (package-with-python2 python-zope-i18nmessageid)) + +(define-public python-zope-schema + (package + (name "python-zope-schema") + (version "4.4.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/z" + "/zope.schema/zope.schema-" version ".tar.gz")) + (sha256 + (base32 + "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; FIXME: Tests can't find zope.event. + (propagated-inputs + `(("python-zope-event" ,python-zope-event) + ("python-zope-exceptions", python-zope-exceptions) + ("python-zope-interface" ,python-zope-interface))) + (native-inputs + `(("python-zope-testing" ,python-zope-testing) + ("python-coverage" ,python-coverage) + ("python-nose" ,python-nose))) + (home-page "http://pypi.python.org/pypi/zope.schema") + (synopsis "Zope data schemas") + (description "Zope.scheme provides extensions to zope.interface for +defining data schemas.") + (license license:zpl2.1))) + +(define-public python2-zope-schema + (package-with-python2 python-zope-schema)) + +(define-public python-zope-configuration + (package + (name "python-zope-configuration") + (version "4.0.3") + (source (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/z" + "/zope.configuration/zope.configuration-" + version ".tar.gz")) + (sha256 + (base32 + "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. + (propagated-inputs + `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) + ("python-zope-schema" ,python-zope-schema))) + (home-page "http://pypi.python.org/pypi/zope.configuration") + (synopsis "Zope Configuration Markup Language") + (description "Zope.configuration implements ZCML, the Zope Configuration +Markup Language.") + (license license:zpl2.1))) + +(define-public python2-zope-configuration + (package-with-python2 python-zope-configuration)) + +(define-public python-zope-proxy + (package + (name "python-zope-proxy") + (version "4.1.6") + (source + (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/z" + "/zope.proxy/zope.proxy-" version ".tar.gz")) + (sha256 + (base32 + "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. + (propagated-inputs + `(("python-zope-interface" ,python-zope-interface))) + (home-page "http://pypi.python.org/pypi/zope.proxy") + (synopsis "Generic, transparent proxies") + (description "Zope.proxy provides generic, transparent proxies for Python. +Proxies are special objects which serve as mostly-transparent wrappers around +another object, intervening in the apparent behavior of the wrapped object +only when necessary to apply the policy (e.g., access checking, location +brokering, etc.) for which the proxy is responsible.") + (license license:zpl2.1))) + +(define-public python2-zope-proxy + (package-with-python2 python-zope-proxy)) + +(define-public python-zope-location + (package + (name "python-zope-location") + (version "4.0.3") + (source + (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/z" + "/zope.location/zope.location-" version ".tar.gz")) + (sha256 + (base32 + "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. + (propagated-inputs + `(("python-zope-proxy" ,python-zope-proxy) + ("python-zope-schema" ,python-zope-schema))) + (home-page "http://pypi.python.org/pypi/zope.location/") + (synopsis "Zope location library") + (description "Zope.location implements the concept of \"locations\" in +Zope3, which are are special objects that have a structural location.") + (license license:zpl2.1))) + +(define-public python2-zope-location + (package-with-python2 python-zope-location)) + +(define-public python-zope-security + (package + (name "python-zope-security") + (version "4.0.3") + (source + (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/z" + "/zope.security/zope.security-" version ".tar.gz")) + (sha256 + (base32 + "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner. + (propagated-inputs + `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) + ("python-zope-proxy" ,python-zope-proxy) + ("python-zope-schema" ,python-zope-schema))) + (native-inputs + `(("python-six" ,python-six) + ("python-zope-component" ,python-zope-component) + ("python-zope-configuration" ,python-zope-configuration) + ("python-zope-location" ,python-zope-location) + ("python-zope-testrunner" ,python-zope-testrunner) + ("python-zope-testing" ,python-zope-testing))) + (home-page "http://pypi.python.org/pypi/zope.security") + (synopsis "Zope security framework") + (description "Zope.security provides a generic mechanism to implement +security policies on Python objects.") + (license license:zpl2.1))) + +(define-public python2-zope-security + (let ((zope-security (package-with-python2 python-zope-security))) + (package (inherit zope-security) + (propagated-inputs + `(("python2-zope-testrunner" ,python2-zope-testrunner) + ,@(alist-delete + "python-zope-testrunner" + (package-propagated-inputs zope-security))))))) + +(define-public python-zope-component + (package + (name "python-zope-component") + (version "4.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "zope.component" version)) + (sha256 + (base32 + "1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv")))) + (build-system python-build-system) + (arguments + ;; Skip tests due to circular dependency with python-zope-security. + '(#:tests? #f)) + (native-inputs + `(("python-zope-testing" ,python-zope-testing))) + (propagated-inputs + `(("python-zope-event" ,python-zope-event) + ("python-zope-interface" ,python-zope-interface) + ("python-zope-i18nmessageid" ,python-zope-i18nmessageid) + ("python-zope-configuration" ,python-zope-configuration))) + (home-page "https://github.com/zopefoundation/zope.component") + (synopsis "Zope Component Architecture") + (description "Zope.component represents the core of the Zope Component +Architecture. Together with the zope.interface package, it provides +facilities for defining, registering and looking up components.") + (license license:zpl2.1))) + +(define-public python2-zope-component + (package-with-python2 python-zope-component)) + +(define-public python-ndg-httpsclient + (package + (name "python-ndg-httpsclient") + (version "0.4.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "ndg_httpsclient" version)) + (sha256 + (base32 + "1b5qirv46v4dpnmfqviwq42mdwfcby4dxmz0i41wad2337pqf2aq")))) + (build-system python-build-system) + (arguments + '(;; The tests appear to require networking. + #:tests? #f)) + (propagated-inputs + `(("python-pyopenssl" ,python-pyopenssl))) + (synopsis "HTTPS support for Python's httplib and urllib2") + (description "This is a HTTPS client implementation for httplib and urllib2 +based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation +over the default provided with Python and importantly enables full verification +of the SSL peer.") + (home-page "https://github.com/cedadev/ndg_httpsclient/") + (license license:bsd-3))) + +;; python2-openssl requires special care, so package-with-python2 is +;; insufficient. +(define-public python2-ndg-httpsclient + (package (inherit python-ndg-httpsclient) + (name "python2-ndg-httpsclient") + (arguments `(#:python ,python-2)) + (propagated-inputs + `(("python2-pyopenssl" ,python2-pyopenssl))))) + +(define-public python-websocket-client + (package + (name "python-websocket-client") + (version "0.37.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "websocket_client" version)) + (sha256 + (base32 + "0h9glp1jll3z76ly3kg08aqgxqk0a68p4zi9yn50353bh5nj92v7")))) + (build-system python-build-system) + (propagated-inputs + `(("python-six" ,python-six))) + (home-page "https://github.com/liris/websocket-client") + (synopsis "WebSocket client for Python") + (description "The Websocket-client module provides the low level APIs for +WebSocket usage in Python programs.") + (license license:lgpl2.1+))) + +(define-public python2-websocket-client + (package-with-python2 python-websocket-client)) + +(define-public python-requests-mock + (package + (name "python-requests-mock") + (version "1.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "requests-mock" version)) + (sha256 + (base32 + "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx")))) + (build-system python-build-system) + (propagated-inputs + `(("python-requests" ,python-requests) + ("python-six" ,python-six))) + (native-inputs + `(("python-pbr" ,python-pbr) + ("python-discover" ,python-discover) + ("python-docutils" ,python-docutils) + ("python-fixtures" ,python-fixtures) + ("python-mock" ,python-mock) + ("python-sphinx" ,python-sphinx) + ("python-testrepository" ,python-testrepository) + ("python-testtools" ,python-testtools))) + (home-page "https://requests-mock.readthedocs.org/") + (synopsis "Mock out responses from the requests package") + (description + "This module provides a building block to stub out the HTTP requests +portions of your testing code.") + (properties `((python2-variant . ,(delay python2-requests-mock)))) + (license license:asl2.0))) + +(define-public python2-requests-mock + (package (inherit (package-with-python2 + (strip-python2-variant python-requests-mock))) + (arguments + `(#:python ,python-2 + ;; FIXME: 'subunit.run discover: error: no such option: --list' + #:tests? #f)))) + +(define-public python-requests-toolbelt + (package + (name "python-requests-toolbelt") + (version "0.8.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "requests-toolbelt" version)) + (sha256 + (base32 + "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn")))) + (build-system python-build-system) + (native-inputs + `(("python-betamax" ,python-betamax) + ("python-mock" ,python-mock) + ("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-requests" ,python-requests))) + (synopsis "Extensions to python-requests") + (description "This is a toolbelt of useful classes and functions to be used +with python-requests.") + (home-page "https://github.com/sigmavirus24/requests-toolbelt") + (license license:asl2.0))) + +(define-public python2-requests-toolbelt + (package-with-python2 python-requests-toolbelt)) + +(define-public python-rauth + (package + (name "python-rauth") + (version "0.7.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "rauth" version)) + (sha256 + (base32 + "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j")))) + (build-system python-build-system) + (arguments + `(#:test-target "check")) + (propagated-inputs + `(("python-requests" ,python-requests))) + (home-page "https://github.com/litl/rauth") + (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly") + (description + "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also +provides service wrappers for convenient connection initialization and +authenticated session objects providing things like keep-alive.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-rauth)))))) + +(define-public python2-rauth + (let ((base (package-with-python2 (strip-python2-variant python-rauth)))) + (package + (inherit base) + (native-inputs `(("python2-unittest2" ,python2-unittest2) + ,@(package-native-inputs base)))))) + +(define-public python-urllib3 + (package + (name "python-urllib3") + (version "1.18.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "urllib3" version)) + (sha256 + (base32 + "1wb8aqnq53vzh2amrv8kc66f3h6fx217y0q62y6n30a64p2yqmam")))) + (build-system python-build-system) + (arguments `(#:tests? #f)) + (native-inputs + `(;; some packages for tests + ("python-nose" ,python-nose) + ("python-mock" ,python-mock) + ("python-tornado" ,python-tornado))) + (propagated-inputs + `(;; These 5 inputs are used to build urrlib3[secure] + ("python-certifi" ,python-certifi) + ("python-cryptography" ,python-cryptography) ; + ("python-idna" ,python-idna) + ("python-ipaddress" ,python-ipaddress) + ("python-pyopenssl" ,python-pyopenssl))) + (home-page "https://urllib3.readthedocs.org/") + (synopsis "HTTP library with thread-safe connection pooling") + (description + "Urllib3 supports features left out of urllib and urllib2 libraries. It +can reuse the same socket connection for multiple requests, it can POST files, +supports url redirection and retries, and also gzip and deflate decoding.") + (license license:expat))) + +(define-public python2-urllib3 + (package-with-python2 python-urllib3)) + +(define-public awscli + (package + (name "awscli") + (version "1.11.164") + (source + (origin + (method url-fetch) + (uri (pypi-uri name version)) + (sha256 + (base32 + "05r8cw7i7ff6barpmyxxk3i52gzb1xyxwj8isynmiyqlmk3c9r8w")))) + (build-system python-build-system) + (propagated-inputs + `(("python-colorama" ,python-colorama) + ("python-botocore" ,python-botocore) + ("python-s3transfer" ,python-s3transfer) + ("python-docutils" ,python-docutils) + ("python-pyyaml" ,python-pyyaml) + ("python-rsa" ,python-rsa))) + (arguments + ;; FIXME: The 'pypi' release does not contain tests. + '(#:tests? #f)) + (home-page "https://aws.amazon.com/cli/") + (synopsis "Command line client for AWS") + (description "AWS CLI provides a unified command line interface to the +Amazon Web Services (AWS) API.") + (license license:asl2.0))) + +(define-public python-wsgiproxy2 + (package + (name "python-wsgiproxy2") + (version "0.4.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "WSGIProxy2" version ".zip")) + (sha256 + (base32 + "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4")))) + (build-system python-build-system) + (arguments + '(;; Wsgiproxy2's test suite requires Restkit, which does not yet fully + ;; support Python 3: + ;; https://github.com/benoitc/restkit/issues/140 + #:tests? #f)) + (native-inputs + `(("unzip" ,unzip) + ("python-nose" ,python-nose) + ("python-coverage" ,python-coverage))) + (propagated-inputs + `(("python-six" ,python-six) + ("python-webob" ,python-webob))) + (home-page + "https://github.com/gawel/WSGIProxy2/") + (synopsis "WSGI Proxy with various http client backends") + (description "WSGI turns HTTP requests into WSGI function calls. +WSGIProxy turns WSGI function calls into HTTP requests. +It also includes code to sign requests and pass private data, +and to spawn subprocesses to handle requests.") + (license license:expat))) + +(define-public python2-wsgiproxy2 + (package-with-python2 python-wsgiproxy2)) + +(define-public python-pastedeploy + (package + (name "python-pastedeploy") + (version "1.5.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PasteDeploy" version)) + (sha256 + (base32 + "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm")))) + (build-system python-build-system) + (native-inputs + `(("python-nose" ,python-nose))) + (home-page "http://pythonpaste.org/deploy/") + (synopsis + "Load, configure, and compose WSGI applications and servers") + (description + "This tool provides code to load WSGI applications and servers from URIs; +these URIs can refer to Python Eggs for INI-style configuration files. Paste +Script provides commands to serve applications based on this configuration +file.") + (license license:expat))) + +(define-public python2-pastedeploy + (package-with-python2 python-pastedeploy)) + +(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))) + +(define-public python2-webtest + (package-with-python2 python-webtest)) + +(define-public python-flask + (package + (name "python-flask") + (version "0.11.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "Flask" version)) + (sha256 + (base32 + "03kbfll4sj3v5z7r31c7bhfpi11r1np076d4p1k2kg4yzcmkywdl")))) + (build-system python-build-system) + (propagated-inputs + `(("python-itsdangerous" ,python-itsdangerous) + ("python-jinja2" ,python-jinja2) + ("python-click" ,python-click) + ("python-werkzeug" ,python-werkzeug))) + (home-page "https://github.com/mitsuhiko/flask/") + (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions") + (description "Flask is a micro web framework based on the Werkzeug toolkit +and Jinja2 template engine. It is called a micro framework because it does not +presume or force a developer to use a particular tool or library.") + (license license:bsd-3))) + +(define-public python2-flask + (package-with-python2 python-flask)) + +(define-public python-flask-wtf + (package + (name "python-flask-wtf") + (version "0.13.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-WTF" version)) + (sha256 + (base32 + "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'check 'drop-failing-test + (lambda _ + ;; FIXME: This file tries resolving an external server, which + ;; fails. Try to patch out the offending section instead of + ;; deleting the whole thing. + (delete-file "tests/test_recaptcha.py") + #t))))) + (propagated-inputs + `(("python-flask-babel" ,python-flask-babel) + ("python-babel" ,python-babel) + ("python-wtforms" ,python-wtforms))) + (native-inputs + `(("python-nose" ,python-nose))) + (home-page "https://github.com/lepture/flask-wtf") + (synopsis "Simple integration of Flask and WTForms") + (description "Flask-WTF integrates Flask and WTForms, including CSRF, file +upload, and reCAPTCHA.") + (license license:bsd-3))) + +(define-public python2-flask-wtf + (package-with-python2 python-flask-wtf)) + +(define-public python-flask-multistatic + (package + (name "python-flask-multistatic") + (version "1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "flask-multistatic" version)) + (sha256 + (base32 + "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flask" ,python-flask))) + (home-page "https://pagure.io/flask-multistatic") + (synopsis "Flask plugin to allow overriding static files") + (description "@code{flask-multistatic} is a flask plugin that adds support +for overriding static files.") + (license license:gpl3+))) + +(define-public python2-flask-multistatic + (package-with-python2 python-flask-multistatic)) + +(define-public python-cookies + (package + (name "python-cookies") + (version "2.2.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "cookies" version)) + (sha256 + (base32 + "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn")))) + (build-system python-build-system) + (arguments + `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3 + #:tests? #f)) + (native-inputs + `(("python-pytest" ,python2-pytest))) + (synopsis "HTTP cookie parser and renderer") + (description "A RFC 6265-compliant HTTP cookie parser and renderer in +Python.") + (home-page "https://gitlab.com/sashahart/cookies") + (license license:expat))) + +(define-public python2-cookies + (package-with-python2 python-cookies)) + +(define-public python-responses + (package + (name "python-responses") + (version "0.5.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "responses" version)) + (sha256 + (base32 + "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc")))) + (build-system python-build-system) + (arguments + `(;; Test suite is not distributed: + ;; https://github.com/getsentry/responses/issues/38 + #:tests? #f)) + (native-inputs + `(("python-mock" ,python-mock))) + (propagated-inputs + `(("python-requests" ,python-requests) + ("python-cookies" ,python-cookies) + ("python-six" ,python-six))) + (home-page "https://github.com/getsentry/responses") + (synopsis "Utility for mocking out the `requests` Python library") + (description "A utility library for mocking out the `requests` Python +library.") + (license license:asl2.0))) + +(define-public python2-responses + (package-with-python2 python-responses)) + +(define-public python-geventhttpclient + (package + (name "python-geventhttpclient") + (version "1.3.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "geventhttpclient" version)) + (sha256 + (base32 + "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Delete pre-compiled files. + (for-each delete-file (find-files "src/geventhttpclient" + ".*\\.pyc")) + #t)))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'delete-network-tests + (lambda _ + (delete-file "src/geventhttpclient/tests/test_client.py") + #t)) + (delete 'check) + (add-after 'install 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (zero? (system* "py.test" "src/geventhttpclient/tests" "-v"))))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-certifi" ,python-certifi) + ("python-gevent" ,python-gevent) + ("python-six" ,python-six))) + (home-page "https://github.com/gwik/geventhttpclient") + (synopsis "HTTP client library for gevent") + (description "@code{python-geventhttpclient} is a high performance, +concurrent HTTP client library for python using @code{gevent}.") + (license license:expat))) + +(define-public python2-geventhttpclient + (package-with-python2 python-geventhttpclient)) + +(define-public python-requests-oauthlib + (package + (name "python-requests-oauthlib") + (version "0.6.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "requests-oauthlib" version)) + (sha256 + (base32 + "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; removes tests that require network access + (add-before 'check 'pre-check + (lambda _ + (delete-file "tests/test_core.py") + #t))))) + (native-inputs + `(("python-requests-mock" ,python-requests-mock) + ("python-mock" ,python-mock))) + (propagated-inputs + `(("python-oauthlib" ,python-oauthlib) + ("python-requests" ,python-requests))) + (home-page + "https://github.com/requests/requests-oauthlib") + (synopsis + "OAuthlib authentication support for Requests") + (description + "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to +provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.") + (license license:isc))) + +(define-public python2-requests-oauthlib + (package-with-python2 python-requests-oauthlib)) + +(define-public python-url + (package + (name "python-url") + (version "0.2.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "url" version)) + (sha256 + (base32 + "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki")))) + (build-system python-build-system) + (propagated-inputs + `(("python-publicsuffix" ,python-publicsuffix))) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-nose" ,python-nose))) + (arguments + `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'" + (home-page "https://github.com/seomoz/url-py") + (synopsis "URL Parsing") + (description "Library for parsing urls.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-url)))))) + +(define-public python2-url + (let ((base (package-with-python2 (strip-python2-variant python-url)))) + (package (inherit base) + (propagated-inputs + `(("python2-publicsuffix" ,python2-publicsuffix)))))) + +(define-public python-cachecontrol + (package + (name "python-cachecontrol") + (version "0.11.6") + (source + (origin + (method url-fetch) + ;; Pypi does not have tests. + (uri (string-append + "https://github.com/ionrock/cachecontrol/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + ;; Drop test that requires internet access. + (delete-file "tests/test_regressions.py") + (setenv "PYTHONPATH" + (string-append (getcwd) "/build/lib:" + (getenv "PYTHONPATH"))) + (zero? (system* "py.test" "-vv"))))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-redis" ,python-redis) + ("python-webtest" ,python-webtest) + ("python-mock" ,python-mock))) + (propagated-inputs + `(("python-requests" ,python-requests) + ("python-lockfile" ,python-lockfile))) + (home-page "https://github.com/ionrock/cachecontrol") + (synopsis "The httplib2 caching algorithms for use with requests") + (description "CacheControl is a port of the caching algorithms in +@code{httplib2} for use with @code{requests} session objects.") + (license license:asl2.0))) + +(define-public python2-cachecontrol + (package-with-python2 python-cachecontrol)) + +(define-public python-betamax + (package + (name "python-betamax") + (version "0.8.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "betamax" version)) + (sha256 + (base32 + "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42")))) + (build-system python-build-system) + (arguments + '(;; Many tests fail because they require networking. + #:tests? #f)) + (propagated-inputs + `(("python-requests" ,python-requests))) + (home-page "https://github.com/sigmavirus24/betamax") + (synopsis "Record HTTP interactions with python-requests") + (description "Betamax will record your test suite's HTTP interactions and +replay them during future tests. It is designed to work with python-requests.") + (license license:expat))) + +(define-public python2-betamax + (package-with-python2 python-betamax)) + +(define-public python-betamax-matchers + (package + (name "python-betamax-matchers") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "betamax-matchers" version)) + (sha256 + (base32 + "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43")))) + (build-system python-build-system) + (propagated-inputs + `(("python-betamax" ,python-betamax) + ("python-requests-toolbelt" ,python-requests-toolbelt))) + (home-page "https://github.com/sigmavirus24/betamax_matchers") + (synopsis "VCR imitation for python-requests") + (description "@code{betamax-matchers} provides a set of Matchers for +Betamax.") + (license license:asl2.0))) + +(define-public python2-betamax-matchers + (package-with-python2 python-betamax-matchers)) + +(define-public python-s3transfer + (package + (name "python-s3transfer") + (version "0.1.11") + (source (origin + (method url-fetch) + (uri (pypi-uri "s3transfer" version)) + (sha256 + (base32 + "0yfrfnf404cxzn3iswibqjxklsl0b1lwgqiml6pwiqj79a7zbwbn")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + ;; 7 of the 'integration' tests require network access or login + ;; credentials. + (zero? (system* "nosetests" "--exclude=integration"))))))) + (native-inputs + `(("python-docutils" ,python-docutils) + ("python-mock" ,python-mock) + ("python-nose" ,python-nose))) + (propagated-inputs + `(("python-botocore" ,python-botocore))) + (synopsis "Amazon S3 Transfer Manager") + (description "S3transfer is a Python library for managing Amazon S3 +transfers.") + (home-page "https://github.com/boto/s3transfer") + (license license:asl2.0) + (properties `((python2-variant . ,(delay python2-s3transfer)))))) + +(define-public python2-s3transfer + (let ((base (package-with-python2 (strip-python2-variant python-s3transfer)))) + (package + (inherit base) + (native-inputs + `(("python2-futures" ,python2-futures) + ,@(package-native-inputs base)))))) + +(define-public python-flask-restful + (package + (name "python-flask-restful") + (version "0.3.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-RESTful" version)) + (sha256 + (base32 + "0hjcmdb56b7z4bkw848lxfkyrpnkwzmqn2dgnlv12mwvjpzsxr6c")))) + (build-system python-build-system) + (propagated-inputs + `(("python-aniso8601" ,python-aniso8601) + ("python-flask" ,python-flask) + ("python-pycrypto" ,python-pycrypto) + ("python-pytz" ,python-pytz))) + (native-inputs + `(;; Optional dependency of Flask. Tests need it. + ("python-blinker" ,python-blinker) + ("python-mock" ,python-mock) ; For tests + ("python-nose" ,python-nose) ; For tests + ("python-sphinx" ,python-sphinx))) + (home-page + "https://www.github.com/flask-restful/flask-restful/") + (synopsis + "Flask module for creating REST APIs") + (description + "This package contains a Flask module for creating REST APIs.") + (license license:bsd-3))) + +(define-public python-flask-basicauth + (package + (name "python-flask-basicauth") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-BasicAuth" version)) + (sha256 + (base32 + "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flask" ,python-flask))) + (home-page + "https://github.com/jpvanhal/flask-basicauth") + (synopsis + "HTTP basic access authentication for Flask") + (description + "This package provides HTTP basic access authentication for Flask.") + (license license:bsd-3))) + +(define-public python-flask-sqlalchemy + (package + (name "python-flask-sqlalchemy") + (version "2.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-SQLAlchemy" version)) + (sha256 + (base32 + "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flask" ,python-flask) + ("python-sqlalchemy" ,python-sqlalchemy))) + (home-page + "https://github.com/mitsuhiko/flask-sqlalchemy") + (synopsis + "Module adding SQLAlchemy support to your Flask application") + (description + "This package adds SQLAlchemy support to your Flask application.") + (license license:bsd-3))) + +(define-public python-flask-restplus + (package + (name "python-flask-restplus") + (version "0.9.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "flask-restplus" version)) + (sha256 + (base32 + "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; FIXME: 35/882 tests failing. + ;; #:phases + ;; (modify-phases %standard-phases + ;; (replace 'check + ;; (lambda _ + ;; (zero? (system* "nosetests"))))))) + (propagated-inputs + `(("python-aniso8601" ,python-aniso8601) + ("python-flask" ,python-flask) + ("python-jsonschema" ,python-jsonschema) + ("python-pytz" ,python-pytz) + ("python-six" ,python-six))) + (native-inputs + `(("python-tzlocal" ,python-tzlocal) + ("python-blinker" ,python-blinker) + ("python-nose" ,python-nose) + ("python-rednose" ,python-rednose))) + (home-page "https://github.com/noirbizarre/flask-restplus") + (synopsis "Framework for documented API development with Flask") + (description "This package provides a framework for API development with +the Flask web framework in Python. It is similar to package +@code{python-flask-restful} but supports the @code{python-swagger} +documentation builder.") + (license license:expat))) + +(define-public python-flask-restful-swagger + (package + (name "python-flask-restful-swagger") + (version "0.19") + (source + (origin + (method url-fetch) + (uri (pypi-uri "flask-restful-swagger" version)) + (sha256 + (base32 + "16msl8hd5xjmj833bpy264v98cpl5hkw5bgl5gf5vgndxbv3rm6v")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flask-restful" ,python-flask-restful))) + (home-page "https://github.com/rantav/flask-restful-swagger") + (synopsis "Extract Swagger specs from Flask-Restful projects") + (description "This package lets you extract Swagger API documentation +specs from your Flask-Restful projects.") + (license license:expat))) + +(define-public python2-flask-restful-swagger + (package-with-python2 python-flask-restful-swagger)) + +(define-public python-htmlmin + (package + (name "python-htmlmin") + (version "0.1.10") + (source + (origin + (method url-fetch) + (uri (pypi-uri "htmlmin" version)) + (sha256 + (base32 + "0qxa93j3p1ak32qh8d9kshqv8v3z0hkc13dwbhp5cn7sn3xmsp6a")))) + (arguments + `(#:tests? #f)) ;htmlmin has no tests + (build-system python-build-system) + (home-page "https://htmlmin.readthedocs.org/en/latest/") + (synopsis "HTML minifier") + (description "@code{htmlmin} is an HTML minifier that just works. +It comes with safe defaults and easily configurable options.") + (license license:bsd-3))) + +(define-public python2-htmlmin + (package-with-python2 python-htmlmin)) + +(define-public python-flask-htmlmin + (package + (name "python-flask-htmlmin") + (version "1.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-HTMLmin" version)) + (sha256 + (base32 + "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348")))) + (propagated-inputs + `(("python-flask" ,python-flask) + ("python-htmlmin" ,python-htmlmin))) + (build-system python-build-system) + (home-page "https://github.com/hamidfzm/Flask-HTMLmin") + (synopsis "HTML response minifier for Flask") + (description + "Minify @code{text/html} MIME type responses when using @code{Flask}.") + (license license:bsd-3))) + +(define-public python2-flask-htmlmin + (package-with-python2 python-flask-htmlmin)) + +(define-public python-flask-login + (package + (name "python-flask-login") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/maxcountryman/flask-login/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1pdqp7a2gyb7k06xda004x0fi2w66s6kn2i0ndkqndmg12d83f9w")))) + (arguments + ;; Tests fail PEP8 compliance. See: + ;; https://github.com/maxcountryman/flask-login/issues/340 + `(#:tests? #f)) + (build-system python-build-system) + (home-page "https://github.com/maxcountryman/flask-login") + (synopsis "User session management for Flask") + (description + "@code{Flask-Login} provides user session management for Flask. It +handles the common tasks of logging in, logging out, and remembering your +users' sessions over extended periods of time.") + (license license:expat))) + +(define-public python2-flask-login + (package-with-python2 python-flask-login)) + +(define-public python-oauth2client + (package + (name "python-oauth2client") + (version "4.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "oauth2client" version)) + (sha256 + (base32 + "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) + (propagated-inputs + `(("python-httplib2" ,python-httplib2) + ("python-pyasn1" ,python-pyasn1) + ("python-pyasn1-modules" ,python-pyasn1-modules) + ("python-rsa" ,python-rsa) + ("python-six" ,python-six))) + (home-page "http://github.com/google/oauth2client/") + (synopsis "OAuth 2.0 client library") + (description "@code{python-oauth2client} provides an OAuth 2.0 client +library for Python") + (license license:asl2.0))) + +(define-public python-flask-oidc + (package + (name "python-flask-oidc") + (version "1.1.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "flask-oidc" version)) + (sha256 + (base32 + "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flask" ,python-flask) + ("python-itsdangerous" ,python-itsdangerous) + ("python-oauth2client" ,python-oauth2client) + ("python-six" ,python-six))) + (native-inputs + `(("python-nose" ,python-nose) + ("python-mock" ,python-mock))) + (home-page "https://github.com/puiterwijk/flask-oidc") + (synopsis "OpenID Connect extension for Flask") + (description "@code{python-flask-oidc} provides an OpenID Connect extension +for Flask.") + (license license:bsd-2))) + +(define-public python-webassets + (package + (name "python-webassets") + (version "0.12.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "webassets" version)) + (sha256 + (base32 + "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7")))) + (build-system python-build-system) + (native-inputs + `(("python-jinja2" ,python-jinja2) + ("python-mock" ,python-mock) + ("python-nose" ,python-nose) + ("python-pytest" ,python-pytest))) + (home-page "https://github.com/miracle2k/webassets") + (synopsis "Media asset management") + (description "Merges, minifies and compresses Javascript and CSS files, +supporting a variety of different filters, including YUI, jsmin, jspacker or +CSS tidy. Also supports URL rewriting in CSS files.") + (license license:bsd-2))) + +(define-public python-cssmin + (package + (name "python-cssmin") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cssmin" version)) + (sha256 + (base32 + "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0")))) + (build-system python-build-system) + (home-page "https://github.com/zacharyvoase/cssmin") + (synopsis "Python port of the YUI CSS Compressor") + (description "Python port of the YUI CSS Compressor.") + (license (list license:expat license:bsd-3)))) + +(define-public python2-cssmin + (package-with-python2 python-cssmin)) + +(define-public python-elasticsearch + (package + (name "python-elasticsearch") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "elasticsearch" version)) + (sha256 + (base32 + "1sdw1r05cw7ihnmng8ra9v968fj7bq6sji8i1dikymsnkcpgc69g")))) + (build-system python-build-system) + (native-inputs + `(("python-mock" ,python-mock) + ("python-nosexcover" ,python-nosexcover) + ("python-pyaml" ,python-pyaml) + ("python-requests" ,python-requests))) + (propagated-inputs + `(("urllib3" ,python-urllib3))) + (arguments + ;; tests require the test_elasticsearch module but it is not distributed. + `(#:tests? #f)) + (home-page "https://github.com/elastic/elasticsearch-py") + (synopsis "Low-level client for Elasticsearch") + (description "Official low-level client for Elasticsearch. Its goal is to +provide common ground for all Elasticsearch-related code in Python; because of +this it tries to be opinion-free and very extendable.") + (license license:expat))) + +(define-public python2-elasticsearch + (package-with-python2 python-elasticsearch)) + +(define-public python-flask-script + (package + (name "python-flask-script") + (version "2.0.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-Script" version)) + (sha256 + (base32 + "0zqh2yq8zk7m9b4xw1ryqmrljkdigfb3hk5155a3b5hkfnn6xxyf")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flask" ,python-flask) + ("python-argcomplete" ,python-argcomplete) + ("python-werkzeug" ,python-werkzeug))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (home-page + "http://github.com/smurfix/flask-script") + (synopsis "Scripting support for Flask") + (description "The Flask-Script extension provides support for writing +external scripts in Flask. This includes running a development server, +a customised Python shell, scripts to set up your database, cronjobs, +and other command-line tasks that belong outside the web application +itself.") + (license license:bsd-3))) + +(define-public python2-flask-script + (package-with-python2 python-flask-script)) + +(define-public python-flask-migrate + (package + (name "python-flask-migrate") + (version "2.0.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-Migrate" version)) + (sha256 + (base32 + "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flask" ,python-flask) + ("python-alembic" ,python-alembic) + ("python-sqlalchemy" ,python-sqlalchemy) + ("python-flask-script" ,python-flask-script) + ("python-flask-sqlalchemy" ,python-flask-sqlalchemy))) + (home-page "http://github.com/miguelgrinberg/flask-migrate/") + (synopsis "SQLAlchemy database migrations for Flask programs using +Alembic") + (description "This package contains SQLAlchemy database migration tools +for Flask programs that are using @code{python-alembic}.") + (license license:expat))) + +(define-public python2-flask-migrate + (package-with-python2 python-flask-migrate)) + +(define-public python-genshi + (package + (name "python-genshi") + (version "0.7") + (source + (origin + (method url-fetch) + (uri (string-append + "https://ftp.edgewall.org/pub/genshi/Genshi-" + version ".tar.gz")) + (patches + (search-patches + ;; The first 4 patches are in the master branch upstream. + ;; See this as a reference https://genshi.edgewall.org/ticket/582 + ;; The last 2 are NOT in any branch. + ;; They were sent as attachments to a ticket opened at + ;; https://genshi.edgewall.org/ticket/602#no1 + "python-genshi-stripping-of-unsafe-script-tags.patch" + "python-genshi-disable-speedups-on-python-3.3.patch" + "python-genshi-isstring-helper.patch" + "python-genshi-add-support-for-python-3.4-AST.patch" + "python-genshi-fix-tests-on-python-3.5.patch" + "python-genshi-buildable-on-python-2.7.patch")) + (sha256 + (base32 + "0lkkbp6fbwzv0zda5iqc21rr7rdldkwh3hfabfjl9i4bwq14858x")))) + (build-system python-build-system) + (home-page "https://genshi.edgewall.org/") + (synopsis "Toolkit for generation of output for the web") + (description "Genshi is a Python library that provides an integrated set +of components for parsing, generating, and processing HTML, XML or other +textual content for output generation on the web.") + (license license:bsd-3))) + +;; The linter here claims that patch file names should start with the package +;; name. But, in this case the patches are inherited from python-genshi with +;; the "python-genshi-" prefix instead of "python2-genshi-". +(define-public python2-genshi + (package-with-python2 python-genshi)) + +(define-public python-flask-principal + (package + (name "python-flask-principal") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-Principal" version)) + (sha256 + (base32 + "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm")))) + (build-system python-build-system) + (propagated-inputs + `(("python-blinker" ,python-blinker))) + (native-inputs + `(("python-flask" ,python-flask) + ("python-nose" ,python-nose))) + (home-page "http://packages.python.org/Flask-Principal/") + (synopsis "Identity management for Flask") + (description "@code{flask_principal} is a identity management library for +Flask. It supports managing both authentication and authorization data in a +thread-local variable.") + (license license:expat))) + +(define-public python2-flask-principal + (package-with-python2 python-flask-principal)) + +(define-public python-flask-httpauth + (package + (name "python-flask-httpauth") + (version "3.2.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-HTTPAuth" version)) + (sha256 + (base32 + "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz")))) + (build-system python-build-system) + (native-inputs + `(("python-flask" ,python-flask))) + (home-page "http://github.com/miguelgrinberg/flask-httpauth/") + (synopsis "Basic and Digest HTTP authentication for Flask routes") + (description "@code{flask_httpauth} provides Basic and Digest HTTP +authentication for Flask routes.") + (license license:expat))) + +(define-public python2-flask-httpauth + (package-with-python2 python-flask-httpauth)) + +(define-public python-uritemplate + (package + (name "python-uritemplate") + (version "3.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "uritemplate" version)) + (sha256 + (base32 + "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0")))) + (build-system python-build-system) + (home-page "https://uritemplate.readthedocs.org") + (synopsis "Library to deal with URI Templates") + (description "@code{uritemplate} provides Python library to deal with URI +Templates.") + (license license:bsd-2))) + +(define-public python2-uritemplate + (package-with-python2 python-uritemplate)) + diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a6a4ec9372..0d5c09b86b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -73,7 +73,6 @@ #:use-module (gnu packages compression) #:use-module (gnu packages crypto) #:use-module (gnu packages databases) - #:use-module (gnu packages django) #:use-module (gnu packages file) #:use-module (gnu packages fontutils) #:use-module (gnu packages gcc) @@ -101,6 +100,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) + #:use-module (gnu packages python-web) #:use-module (gnu packages qt) #:use-module (gnu packages readline) #:use-module (gnu packages sdl) @@ -573,28 +573,6 @@ Python interface around SSH networking concepts.") (package-with-python2 python-paramiko)) -(define-public python-httplib2 - (package - (name "python-httplib2") - (version "0.9.2") - (source - (origin - (method url-fetch) - (uri (pypi-uri "httplib2" version)) - (sha256 - (base32 - "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3")))) - (build-system python-build-system) - (home-page "https://github.com/jcgregorio/httplib2") - (synopsis "Comprehensive HTTP client library") - (description - "A comprehensive HTTP client library supporting many features left out of -other HTTP libraries.") - (license license:expat))) - -(define-public python2-httplib2 - (package-with-python2 python-httplib2)) - (define-public python-ecdsa (package (name "python-ecdsa") @@ -4755,38 +4733,6 @@ routines such as routines for numerical integration and optimization.") (package-with-python2 (strip-python2-variant python-scipy))) -(define-public python-sockjs-tornado - (package - (name "python-sockjs-tornado") - (version "1.0.3") - (source - (origin - (method url-fetch) - (uri (pypi-uri "sockjs-tornado" version)) - (sha256 - (base32 - "16cff40nniqsyvda1pb2j3b4zwmrw7y2g1vqq78lp20xpmhnwwkd")))) - (build-system python-build-system) - (arguments - `(;; There are no tests, and running the test phase requires missing - ;; dependencies - #:tests? #f)) - (propagated-inputs - `(("python-tornado" ,python-tornado))) - (home-page "http://github.com/mrjoes/sockjs-tornado/") - (synopsis - "SockJS python server implementation on top of Tornado framework") - (description - "SockJS-tornado provides the server side counterpart to a SockJS client -library, through the Tornado framework. - -SockJS provides a low latency, full duplex, cross-domain communication channel -between a web browser and web server.") - (license license:expat))) - -(define-public python2-sockjs-tornado - (package-with-python2 python-sockjs-tornado)) - (define-public python-socksipy-branch (package (name "python-socksipy-branch") @@ -4963,33 +4909,6 @@ retried.") (define-public python2-flaky (package-with-python2 python-flaky)) -(define-public python-flask-babel - (package - (name "python-flask-babel") - (version "0.11.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "Flask-Babel" version)) - (sha256 - (base32 - "16b80cipdba9xj3jlaiaq6wgrgpjb70w3j01jjy9hbp4k71kd6yj")))) - (build-system python-build-system) - (propagated-inputs - `(("python-flask" ,python-flask) - ("python-babel" ,python-babel) - ("python-jinja2" ,python-jinja2) - ("python-pytz" ,python-pytz))) - (home-page "https://github.com/python-babel/flask-babel") - (synopsis "Add i18n/l10n support to Flask applications") - (description "This package implements internationalization and localization -support for Flask. This is based on the Python babel module as well as pytz - -both of which are installed automatically if you install this library.") - (license license:bsd-3))) - -(define-public python2-flask-babel - (package-with-python2 python-flask-babel)) - (define-public python-sqlalchemy-utils (package (name "python-sqlalchemy-utils") @@ -6068,122 +5987,6 @@ ISO 8601 dates, time and duration.") (define-public python2-isodate (package-with-python2 python-isodate)) -(define-public python-html5lib - (package - (name "python-html5lib") - (version "1.0b10") - (source - (origin - (method url-fetch) - (uri (pypi-uri "html5lib" version)) - (sha256 - (base32 - "1yd068a5c00wd0ajq0hqimv7fd82lhrw0w3s01vbhy9bbd6xapqd")))) - (build-system python-build-system) - (propagated-inputs - `(("python-six" ,python-six) - ("python-webencodings" ,python-webencodings))) - (arguments - `(#:test-target "check")) - (home-page - "https://github.com/html5lib/html5lib-python") - (synopsis - "Python HTML parser based on the WHATWG HTML specifcation") - (description - "Html5lib is an HTML parser based on the WHATWG HTML specifcation -and written in Python.") - (license license:expat))) - -(define-public python2-html5lib - (package-with-python2 python-html5lib)) - -;; Needed for python-bleach, a dependency of python-notebook -(define-public python-html5lib-0.9 - (package - (inherit python-html5lib) - (version "0.999") - (source - (origin - (method url-fetch) - (uri (pypi-uri "html5lib" version)) - (sha256 - (base32 - "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263")))))) - -(define-public python2-html5lib-0.9 - (package-with-python2 python-html5lib-0.9)) - -(define-public python-html5-parser - (package - (name "python-html5-parser") - (version "0.4.4") - (source (origin - (method url-fetch) - (uri (pypi-uri "html5-parser" version)) - (sha256 - (base32 - "1d8sxhl41ffh7qlk7wlsy17xw6slzx5v1yna9s72wx5qrpaa3wxr")))) - (build-system python-build-system) - (native-inputs - `(("pkg-config" ,pkg-config))) - (inputs - `(("libxml2" ,libxml2))) - (propagated-inputs - `(("python-lxml" ,python-lxml) - ("python-beautifulsoup4" ,python-beautifulsoup4))) - (home-page "https://html5-parser.readthedocs.io") - (synopsis "Fast C-based HTML5 parsing for Python") - (description "This package provides a fast implementation of the HTML5 -parsing spec for Python. Parsing is done in C using a variant of the gumbo -parser. The gumbo parse tree is then transformed into an lxml tree, also in -C, yielding parse times that can be a thirtieth of the html5lib parse times.") - ;; src/as-python-tree.[c|h] are licensed GPL3. The other files - ;; indicate ASL2.0, including the LICENSE file for the whole project. - (license (list license:asl2.0 license:gpl3)))) - -(define-public python2-html5-parser - (package-with-python2 python-html5-parser)) - -(define-public python-webencodings - (package - (name "python-webencodings") - (version "0.5") - (source (origin - (method url-fetch) - (uri (pypi-uri "webencodings" version)) - (sha256 - (base32 - "015rw7662lkpb9aqiqah2hbizk6w531badqwjpz41rr47glmxid5")))) - (build-system python-build-system) - (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (zero? (system* "py.test" "-v" "webencodings/tests.py"))))))) - (native-inputs - `(("python-pytest" ,python-pytest))) - (home-page "https://github.com/SimonSapin/python-webencodings") - (synopsis "Character encoding aliases for legacy web content") - (description - "In order to be compatible with legacy web content when interpreting -something like @code{Content-Type: text/html; charset=latin1}, tools need -to use a particular set of aliases for encoding labels as well as some -overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on -the web are actually aliases for @code{windows-1252}, and an @code{UTF-8} -or @code{UTF-16} BOM takes precedence over any other encoding declaration. -The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard -defines all such details so that implementations do not have to -reverse-engineer each other. - -This module implements the Encoding standard and has encoding labels and -BOM detection, but the actual implementation for encoders and decoders -is Python’s.") - (license license:bsd-3))) - -(define-public python2-webencodings - (package-with-python2 python-webencodings)) - (define-public python-urwid (package (name "python-urwid") @@ -6232,57 +6035,6 @@ features useful for text console applications.") (delete-file "urwid/tests/test_vterm.py")))) (package-arguments python-urwid)))))) -(define-public python-openid - (package - (name "python-openid") - (version "3.0.10") - (source - (origin - (method url-fetch) - (uri (pypi-uri "python3-openid" version)) - (sha256 - (base32 - "1x3nh3fycqfn43jp5j5pb4q4y2jxp4mdka4absaa3bc0078qd758")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (zero? (system* "./admin/runtests"))))))) - (properties `((python2-variant . ,(delay python2-openid)))) - (propagated-inputs - `(("python-defusedxml" ,python-defusedxml))) - (native-inputs - `(("python-psycopg2" ,python-psycopg2) - ("python-django" ,python-django))) - (home-page "https://github.com/necaris/python3-openid") - (synopsis "OpenID support for servers and consumers") - (description "This library provides OpenID authentication for Python, both -for clients and servers.") - (license license:asl2.0))) - -(define-public python2-openid - (package - (name "python2-openid") - (version "2.2.5") - (source - (origin - (method url-fetch) - (uri (pypi-uri "python-openid" version)) - (sha256 - (base32 - "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj")))) - (build-system python-build-system) - (arguments - ;; Python 3 support is in `python3-openid`, a separate package. - `(#:python ,python-2)) - (home-page "https://github.com/openid/python-openid") - (synopsis "OpenID support for servers and consumers") - (description "This library provides OpenID authentication for Python, both -for clients and servers.") - (license license:asl2.0))) - (define-public python-urwidtrees (package (name "python-urwidtrees") @@ -6469,108 +6221,6 @@ converts incoming documents to Unicode and outgoing documents to UTF-8.") (strip-python2-variant python-beautifulsoup4))) (arguments `(#:python ,python-2)))) -(define-public python-cssutils - (package - (name "python-cssutils") - (version "1.0.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "cssutils" version)) - (sha256 - (base32 - "0qwha9x1wml2qmipbcz03gndnlwhzrjdvw9i09si247a90l8p8fq")))) - (build-system python-build-system) - (native-inputs - `(("unzip" ,unzip))) ; for unpacking the source - (arguments - `(#:tests? #f)) ;tests require python-pbr < 1.7.0 - (home-page "http://cthedot.de/cssutils/") - (synopsis - "CSS Cascading Style Sheets library for Python") - (description - "Cssutils is a Python package for parsing and building CSS -Cascading Style Sheets. Currently it provides a DOM only and no rendering -options.") - (license license:lgpl3+))) - -(define-public python2-cssutils - (package-with-python2 python-cssutils)) - -(define-public python-cssselect - (package - (name "python-cssselect") - (version "0.9.2") - (source - (origin - (method url-fetch) - (uri (pypi-uri "cssselect" version)) - (sha256 - (base32 - "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi")))) - (build-system python-build-system) - (arguments - ;; tests fail with message - ;; AttributeError: 'module' object has no attribute 'tests' - `(#:tests? #f)) - (home-page - "https://pythonhosted.org/cssselect/") - (synopsis - "CSS3 selector parser and translator to XPath 1.0") - (description - "Cssselect ia a Python module that parses CSS3 Selectors and translates -them to XPath 1.0 expressions. Such expressions can be used in lxml or -another XPath engine to find the matching elements in an XML or HTML document.") - (license license:bsd-3))) - -(define-public python2-cssselect - (package-with-python2 python-cssselect)) - -(define-public python-openid-cla - (package - (name "python-openid-cla") - (version "1.2") - (source - (origin - (method url-fetch) - (uri (pypi-uri "python-openid-cla" version)) - (sha256 - (base32 - "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr")))) - (build-system python-build-system) - (arguments '(#:tests? #f)) ; No tests. - (home-page "https://github.com/puiterwijk/python-openid-cla/") - (synopsis "Implementation of the OpenID CLA extension for python-openid") - (description "@code{openid-cla} is an implementation of the OpenID -contributor license agreement extension for python-openid.") - (license license:bsd-3))) - -(define-public python2-openid-cla - (package-with-python2 python-openid-cla)) - -(define-public python-openid-teams - (package - (name "python-openid-teams") - (version "1.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "python-openid-teams" version)) - (sha256 - (base32 - "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969")))) - (build-system python-build-system) - (arguments '(#:tests? #f)) ; No tests. - (home-page "https://github.com/puiterwijk/python-openid-teams/") - (synopsis "Implementation of the OpenID teams extension for python-openid") - (description - "@code{openid-teams} is an implementation of the OpenID -teams extension for python-openid.") - (license license:bsd-3))) - -(define-public python2-openid-teams - (package-with-python2 python-openid-teams)) - (define-public python-netifaces (package (name "python-netifaces") @@ -6889,75 +6539,6 @@ It is written entirely in Python.") (define-public python2-singledispatch (package-with-python2 python-singledispatch)) -(define-public python-tornado - (package - (name "python-tornado") - (version "4.5.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "tornado" version)) - (sha256 - (base32 "1zbkgcdfq81k298awrm8p0xwbwwn2p3nbizdglzfbkskhai082fv")))) - (build-system python-build-system) - (arguments - '(;; FIXME: Two tests error out with: - ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b'' - ;; #:phases - ;; (modify-phases %standard-phases - ;; (replace 'check - ;; (lambda _ - ;; ;; 'setup.py test' hits an AssertionError on BSD-specific - ;; ;; "tornado/platform/kqueue.py". This is the supported method: - ;; (zero? (system* "python" "-m" "tornado.test"))))) - #:tests? #f)) - (native-inputs - `(("python-certifi" ,python-certifi))) - (propagated-inputs - `(("python-backports-abc" ,python-backports-abc))) - (home-page "http://www.tornadoweb.org/") - (synopsis "Python web framework and asynchronous networking library") - (description - "Tornado is a Python web framework and asynchronous networking library, -originally developed at FriendFeed. By using non-blocking network I/O, -Tornado can scale to tens of thousands of open connections, making it ideal -for long polling, WebSockets, and other applications that require a long-lived -connection to each user.") - (license license:asl2.0) - (properties `((python2-variant . ,(delay python2-tornado)))))) - -(define-public python2-tornado - (let ((tornado (package-with-python2 (strip-python2-variant python-tornado)))) - (package (inherit tornado) - (propagated-inputs - `(("python2-backport-ssl-match-hostname" - ,python2-backport-ssl-match-hostname) - ("python2-singledispatch" ,python2-singledispatch) - ,@(package-propagated-inputs tornado)))))) - -(define-public python-tornado-http-auth - (package - (name "python-tornado-http-auth") - (version "1.1.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "tornado-http-auth" version)) - (sha256 - (base32 - "0znrgqd7k2s4ia474xizi6h3061zj4sn5n6cq76bkwl3wwshifn5")))) - (build-system python-build-system) - (propagated-inputs - `(("python-tornado" ,python-tornado))) - (home-page - "https://github.com/gvalkov/tornado-http-auth") - (synopsis - "Digest and basic authentication module for Tornado") - (description - "Provides support for adding authentication to services using the Tornado -web framework, either via the basic or digest authentication schemes.") - (license license:asl2.0))) - ;; the python- version can be removed with python-3.5 (define-public python-backports-abc (package @@ -7449,44 +7030,6 @@ output.") (define-public python2-cram (package-with-python2 python-cram)) -(define-public python-terminado - (package - (name "python-terminado") - (version "0.6") - (source - (origin - (method url-fetch) - (uri (pypi-uri "terminado" version)) - (sha256 - (base32 - "09h1kwi86g5mrk14s4pgbhshd602zry29lnpxamcqz864kva22rc")))) - (build-system python-build-system) - (propagated-inputs - `(("python-tornado" ,python-tornado) - ("python-ptyprocess" ,python-ptyprocess))) - (native-inputs - `(("python-nose" ,python-nose))) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (zero? (system* "nosetests"))))))) - (home-page "https://github.com/takluyver/terminado") - (synopsis "Terminals served to term.js using Tornado websockets") - (description "This package provides a Tornado websocket backend for the -term.js Javascript terminal emulator library.") - (license license:bsd-2) - (properties `((python2-variant . ,(delay python2-terminado)))))) - -(define-public python2-terminado - (let ((terminado (package-with-python2 (strip-python2-variant python-terminado)))) - (package (inherit terminado) - (propagated-inputs - `(("python2-backport-ssl-match-hostname" - ,python2-backport-ssl-match-hostname) - ,@(package-propagated-inputs terminado)))))) - (define-public python-straight-plugin (package (name "python-straight-plugin") @@ -7804,30 +7347,6 @@ fractional seconds) of a clock which never goes backwards.") (define-public python2-monotonic (package-with-python2 python-monotonic)) -(define-public python-webob - (package - (name "python-webob") - (version "1.5.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "WebOb" version)) - (sha256 - (base32 - "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq")))) - (build-system python-build-system) - (native-inputs - `(("python-nose" ,python-nose))) - (home-page "http://webob.org/") - (synopsis "WSGI request and response object") - (description - "WebOb provides wrappers around the WSGI request environment, and an -object to help create WSGI responses.") - (license license:expat))) - -(define-public python2-webob - (package-with-python2 python-webob)) - (define-public python-xlrd (package (name "python-xlrd") @@ -8813,374 +8332,14 @@ programatically with command-line parsers like @code{getopt} and (define-public python2-docopt (package-with-python2 python-docopt)) -(define-public python-zope-event +(define-public python-pythondialog (package - (name "python-zope-event") - (version "4.1.0") + (name "python-pythondialog") + (version "3.4.0") (source (origin (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/source/z" - "/zope.event/zope.event-" version ".tar.gz")) - (sha256 - (base32 - "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw")))) - (build-system python-build-system) - (home-page "http://pypi.python.org/pypi/zope.event") - (synopsis "Event publishing system for Python") - (description "Zope.event provides an event publishing API, intended for -use by applications which are unaware of any subscribers to their events. It -is a simple event-dispatching system on which more sophisticated event -dispatching systems can be built.") - (license license:zpl2.1))) - -(define-public python2-zope-event - (package-with-python2 python-zope-event)) - -(define-public python-zope-interface - (package - (name "python-zope-interface") - (version "4.1.3") - (source - (origin - (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/source/z" - "/zope.interface/zope.interface-" version ".tar.gz")) - (sha256 - (base32 - "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if")))) - (build-system python-build-system) - (native-inputs - `(("python-zope-event" ,python-zope-event))) - (home-page "https://github.com/zopefoundation/zope.interface") - (synopsis "Python implementation of the \"design by contract\" -methodology") - (description "Zope.interface provides an implementation of \"object -interfaces\" for Python. Interfaces are a mechanism for labeling objects as -conforming to a given API or contract.") - (license license:zpl2.1))) - -(define-public python2-zope-interface - (package-with-python2 python-zope-interface)) - -(define-public python-zope-exceptions - (package - (name "python-zope-exceptions") - (version "4.0.8") - (source - (origin - (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/source/z" - "/zope.exceptions/zope.exceptions-" - version ".tar.gz")) - (sha256 - (base32 - "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl")))) - (build-system python-build-system) - (arguments - '(#:tests? #f)) ; circular dependency with zope.testrunner - (propagated-inputs - `(("python-zope-interface" ,python-zope-interface))) - (home-page "http://cheeseshop.python.org/pypi/zope.exceptions") - (synopsis "Zope exceptions") - (description "Zope.exceptions provides general-purpose exception types -that have uses outside of the Zope framework.") - (license license:zpl2.1))) - -(define-public python2-zope-exceptions - (package-with-python2 python-zope-exceptions)) - -(define-public python-zope-testing - (package - (name "python-zope-testing") - (version "4.5.0") - (source - (origin - (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/source/z" - "/zope.testing/zope.testing-" version ".tar.gz")) - (sha256 - (base32 - "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s")) - (modules '((guix build utils))) - (snippet - '(begin - ;; Remove pre-compiled .pyc files backup files from source. - (for-each delete-file (find-files "." "(\\.pyc|~)$")) - #t)))) - (build-system python-build-system) - (native-inputs - `(("python-zope-exceptions" ,python-zope-exceptions))) - (propagated-inputs - `(("python-zope-interface" ,python-zope-interface))) - (home-page "http://pypi.python.org/pypi/zope.testing") - (synopsis "Zope testing helpers") - (description "Zope.testing provides a number of testing utilities for HTML -forms, HTTP servers, regular expressions, and more.") - (license license:zpl2.1))) - -(define-public python2-zope-testing - (package-with-python2 python-zope-testing)) - -(define-public python-zope-testrunner - (package - (name "python-zope-testrunner") - (version "4.4.9") - (source - (origin - (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/source/z" - "/zope.testrunner/zope.testrunner-" - version ".zip")) - (sha256 - (base32 - "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1")))) - (build-system python-build-system) - (arguments - '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. - (native-inputs - `(("python-six" ,python-six) - ;("python-zope-interface" ,python-zope-interface) - ("python-zope-exceptions" ,python-zope-exceptions) - ("python-zope-testing" ,python-zope-testing) - ("unzip" ,unzip))) - (propagated-inputs - `(("python-zope-interface" ,python-zope-interface))) - (home-page "http://pypi.python.org/pypi/zope.testrunner") - (synopsis "Zope testrunner script") - (description "Zope.testrunner provides a script for running Python -tests.") - (license license:zpl2.1))) - -(define-public python2-zope-testrunner - (let ((base (package-with-python2 python-zope-testrunner))) - (package - (inherit base) - (native-inputs - (append (package-native-inputs base) - `(("python2-subunit" ,python2-subunit) - ("python2-mimeparse" ,python2-mimeparse))))))) - -(define-public python-zope-i18nmessageid - (package - (name "python-zope-i18nmessageid") - (version "4.0.3") - (source - (origin - (method url-fetch) - (uri (string-append - "https://pypi.python.org/packages/source/z" - "/zope.i18nmessageid/zope.i18nmessageid-" - version ".tar.gz")) - (sha256 - (base32 - "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml")))) - (build-system python-build-system) - (home-page "http://pypi.python.org/pypi/zope.i18nmessageid") - (synopsis "Message identifiers for internationalization") - (description "Zope.i18nmessageid provides facilities for declaring -internationalized messages within program source text.") - (license license:zpl2.1))) - -(define-public python2-zope-i18nmessageid - (package-with-python2 python-zope-i18nmessageid)) - -(define-public python-zope-schema - (package - (name "python-zope-schema") - (version "4.4.2") - (source - (origin - (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/source/z" - "/zope.schema/zope.schema-" version ".tar.gz")) - (sha256 - (base32 - "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank")))) - (build-system python-build-system) - (arguments - '(#:tests? #f)) ; FIXME: Tests can't find zope.event. - (propagated-inputs - `(("python-zope-event" ,python-zope-event) - ("python-zope-exceptions", python-zope-exceptions) - ("python-zope-interface" ,python-zope-interface))) - (native-inputs - `(("python-zope-testing" ,python-zope-testing) - ("python-coverage" ,python-coverage) - ("python-nose" ,python-nose))) - (home-page "http://pypi.python.org/pypi/zope.schema") - (synopsis "Zope data schemas") - (description "Zope.scheme provides extensions to zope.interface for -defining data schemas.") - (license license:zpl2.1))) - -(define-public python2-zope-schema - (package-with-python2 python-zope-schema)) - -(define-public python-zope-configuration - (package - (name "python-zope-configuration") - (version "4.0.3") - (source (origin - (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/source/z" - "/zope.configuration/zope.configuration-" - version ".tar.gz")) - (sha256 - (base32 - "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n")))) - (build-system python-build-system) - (arguments - '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. - (propagated-inputs - `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) - ("python-zope-schema" ,python-zope-schema))) - (home-page "http://pypi.python.org/pypi/zope.configuration") - (synopsis "Zope Configuration Markup Language") - (description "Zope.configuration implements ZCML, the Zope Configuration -Markup Language.") - (license license:zpl2.1))) - -(define-public python2-zope-configuration - (package-with-python2 python-zope-configuration)) - -(define-public python-zope-proxy - (package - (name "python-zope-proxy") - (version "4.1.6") - (source - (origin - (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/source/z" - "/zope.proxy/zope.proxy-" version ".tar.gz")) - (sha256 - (base32 - "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4")))) - (build-system python-build-system) - (arguments - '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. - (propagated-inputs - `(("python-zope-interface" ,python-zope-interface))) - (home-page "http://pypi.python.org/pypi/zope.proxy") - (synopsis "Generic, transparent proxies") - (description "Zope.proxy provides generic, transparent proxies for Python. -Proxies are special objects which serve as mostly-transparent wrappers around -another object, intervening in the apparent behavior of the wrapped object -only when necessary to apply the policy (e.g., access checking, location -brokering, etc.) for which the proxy is responsible.") - (license license:zpl2.1))) - -(define-public python2-zope-proxy - (package-with-python2 python-zope-proxy)) - -(define-public python-zope-location - (package - (name "python-zope-location") - (version "4.0.3") - (source - (origin - (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/source/z" - "/zope.location/zope.location-" version ".tar.gz")) - (sha256 - (base32 - "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74")))) - (build-system python-build-system) - (arguments - '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. - (propagated-inputs - `(("python-zope-proxy" ,python-zope-proxy) - ("python-zope-schema" ,python-zope-schema))) - (home-page "http://pypi.python.org/pypi/zope.location/") - (synopsis "Zope location library") - (description "Zope.location implements the concept of \"locations\" in -Zope3, which are are special objects that have a structural location.") - (license license:zpl2.1))) - -(define-public python2-zope-location - (package-with-python2 python-zope-location)) - -(define-public python-zope-security - (package - (name "python-zope-security") - (version "4.0.3") - (source - (origin - (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/source/z" - "/zope.security/zope.security-" version ".tar.gz")) - (sha256 - (base32 - "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy")))) - (build-system python-build-system) - (arguments - '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner. - (propagated-inputs - `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) - ("python-zope-proxy" ,python-zope-proxy) - ("python-zope-schema" ,python-zope-schema))) - (native-inputs - `(("python-six" ,python-six) - ("python-zope-component" ,python-zope-component) - ("python-zope-configuration" ,python-zope-configuration) - ("python-zope-location" ,python-zope-location) - ("python-zope-testrunner" ,python-zope-testrunner) - ("python-zope-testing" ,python-zope-testing))) - (home-page "http://pypi.python.org/pypi/zope.security") - (synopsis "Zope security framework") - (description "Zope.security provides a generic mechanism to implement -security policies on Python objects.") - (license license:zpl2.1))) - -(define-public python2-zope-security - (let ((zope-security (package-with-python2 python-zope-security))) - (package (inherit zope-security) - (propagated-inputs - `(("python2-zope-testrunner" ,python2-zope-testrunner) - ,@(alist-delete - "python-zope-testrunner" - (package-propagated-inputs zope-security))))))) - -(define-public python-zope-component - (package - (name "python-zope-component") - (version "4.3.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "zope.component" version)) - (sha256 - (base32 - "1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv")))) - (build-system python-build-system) - (arguments - ;; Skip tests due to circular dependency with python-zope-security. - '(#:tests? #f)) - (native-inputs - `(("python-zope-testing" ,python-zope-testing))) - (propagated-inputs - `(("python-zope-event" ,python-zope-event) - ("python-zope-interface" ,python-zope-interface) - ("python-zope-i18nmessageid" ,python-zope-i18nmessageid) - ("python-zope-configuration" ,python-zope-configuration))) - (home-page "https://github.com/zopefoundation/zope.component") - (synopsis "Zope Component Architecture") - (description "Zope.component represents the core of the Zope Component -Architecture. Together with the zope.interface package, it provides -facilities for defining, registering and looking up components.") - (license license:zpl2.1))) - -(define-public python2-zope-component - (package-with-python2 python-zope-component)) - -(define-public python-pythondialog - (package - (name "python-pythondialog") - (version "3.4.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "pythondialog" version)) + (uri (pypi-uri "pythondialog" version)) (sha256 (base32 "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c")))) @@ -9336,39 +8495,6 @@ be set via config files and/or environment variables.") (define-public python2-configargparse (package-with-python2 python-configargparse)) -(define-public python-ndg-httpsclient - (package - (name "python-ndg-httpsclient") - (version "0.4.2") - (source (origin - (method url-fetch) - (uri (pypi-uri "ndg_httpsclient" version)) - (sha256 - (base32 - "1b5qirv46v4dpnmfqviwq42mdwfcby4dxmz0i41wad2337pqf2aq")))) - (build-system python-build-system) - (arguments - '(;; The tests appear to require networking. - #:tests? #f)) - (propagated-inputs - `(("python-pyopenssl" ,python-pyopenssl))) - (synopsis "HTTPS support for Python's httplib and urllib2") - (description "This is a HTTPS client implementation for httplib and urllib2 -based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation -over the default provided with Python and importantly enables full verification -of the SSL peer.") - (home-page "https://github.com/cedadev/ndg_httpsclient/") - (license license:bsd-3))) - -;; python2-openssl requires special care, so package-with-python2 is -;; insufficient. -(define-public python2-ndg-httpsclient - (package (inherit python-ndg-httpsclient) - (name "python2-ndg-httpsclient") - (arguments `(#:python ,python-2)) - (propagated-inputs - `(("python2-pyopenssl" ,python2-pyopenssl))))) - (define-public python-contextlib2 (package (name "python-contextlib2") @@ -9422,29 +8548,6 @@ tables.") (define-public python2-texttable (package-with-python2 python-texttable)) -(define-public python-websocket-client - (package - (name "python-websocket-client") - (version "0.37.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "websocket_client" version)) - (sha256 - (base32 - "0h9glp1jll3z76ly3kg08aqgxqk0a68p4zi9yn50353bh5nj92v7")))) - (build-system python-build-system) - (propagated-inputs - `(("python-six" ,python-six))) - (home-page "https://github.com/liris/websocket-client") - (synopsis "WebSocket client for Python") - (description "The Websocket-client module provides the low level APIs for -WebSocket usage in Python programs.") - (license license:lgpl2.1+))) - -(define-public python2-websocket-client - (package-with-python2 python-websocket-client)) - (define-public python-atomicwrites (package (name "python-atomicwrites") @@ -9465,32 +8568,6 @@ for atomic file system operations.") (define-public python2-atomicwrites (package-with-python2 python-atomicwrites)) -(define-public python-requests-toolbelt - (package - (name "python-requests-toolbelt") - (version "0.8.0") - (source (origin - (method url-fetch) - (uri (pypi-uri "requests-toolbelt" version)) - (sha256 - (base32 - "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn")))) - (build-system python-build-system) - (native-inputs - `(("python-betamax" ,python-betamax) - ("python-mock" ,python-mock) - ("python-pytest" ,python-pytest))) - (propagated-inputs - `(("python-requests" ,python-requests))) - (synopsis "Extensions to python-requests") - (description "This is a toolbelt of useful classes and functions to be used -with python-requests.") - (home-page "https://github.com/sigmavirus24/requests-toolbelt") - (license license:asl2.0))) - -(define-public python2-requests-toolbelt - (package-with-python2 python-requests-toolbelt)) - (define-public python-click-threading (package (name "python-click-threading") @@ -9895,38 +8972,6 @@ Python at your fingertips, in Lisp form.") (define-public python2-hy (package-with-python2 python-hy)) -(define-public python-rauth - (package - (name "python-rauth") - (version "0.7.3") - (source - (origin - (method url-fetch) - (uri (pypi-uri "rauth" version)) - (sha256 - (base32 - "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j")))) - (build-system python-build-system) - (arguments - `(#:test-target "check")) - (propagated-inputs - `(("python-requests" ,python-requests))) - (home-page "https://github.com/litl/rauth") - (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly") - (description - "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also -provides service wrappers for convenient connection initialization and -authenticated session objects providing things like keep-alive.") - (license license:expat) - (properties `((python2-variant . ,(delay python2-rauth)))))) - -(define-public python2-rauth - (let ((base (package-with-python2 (strip-python2-variant python-rauth)))) - (package - (inherit base) - (native-inputs `(("python2-unittest2" ,python2-unittest2) - ,@(package-native-inputs base)))))) - (define-public python2-functools32 (package (name "python2-functools32") @@ -10046,42 +9091,6 @@ concurrent.futures package from Python 3.2") ("python2-pytest" ,python2-pytest) ,@(package-native-inputs promise)))))) -(define-public python-urllib3 - (package - (name "python-urllib3") - (version "1.18.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "urllib3" version)) - (sha256 - (base32 - "1wb8aqnq53vzh2amrv8kc66f3h6fx217y0q62y6n30a64p2yqmam")))) - (build-system python-build-system) - (arguments `(#:tests? #f)) - (native-inputs - `(;; some packages for tests - ("python-nose" ,python-nose) - ("python-mock" ,python-mock) - ("python-tornado" ,python-tornado))) - (propagated-inputs - `(;; These 5 inputs are used to build urrlib3[secure] - ("python-certifi" ,python-certifi) - ("python-cryptography" ,python-cryptography) ; - ("python-idna" ,python-idna) - ("python-ipaddress" ,python-ipaddress) - ("python-pyopenssl" ,python-pyopenssl))) - (home-page "https://urllib3.readthedocs.org/") - (synopsis "HTTP library with thread-safe connection pooling") - (description - "Urllib3 supports features left out of urllib and urllib2 libraries. It -can reuse the same socket connection for multiple requests, it can POST files, -supports url redirection and retries, and also gzip and deflate decoding.") - (license license:expat))) - -(define-public python2-urllib3 - (package-with-python2 python-urllib3)) - (define-public python-colorama (package (name "python-colorama") @@ -10243,34 +9252,6 @@ interface to the Amazon Web Services (AWS) API.") (define-public python2-botocore (package-with-python2 python-botocore)) -(define-public awscli - (package - (name "awscli") - (version "1.11.164") - (source - (origin - (method url-fetch) - (uri (pypi-uri name version)) - (sha256 - (base32 - "05r8cw7i7ff6barpmyxxk3i52gzb1xyxwj8isynmiyqlmk3c9r8w")))) - (build-system python-build-system) - (propagated-inputs - `(("python-colorama" ,python-colorama) - ("python-botocore" ,python-botocore) - ("python-s3transfer" ,python-s3transfer) - ("python-docutils" ,python-docutils) - ("python-pyyaml" ,python-pyyaml) - ("python-rsa" ,python-rsa))) - (arguments - ;; FIXME: The 'pypi' release does not contain tests. - '(#:tests? #f)) - (home-page "https://aws.amazon.com/cli/") - (synopsis "Command line client for AWS") - (description "AWS CLI provides a unified command line interface to the -Amazon Web Services (AWS) API.") - (license license:asl2.0))) - (define-public python-hypothesis (package (name "python-hypothesis") @@ -10454,69 +9435,6 @@ server with very acceptable performance.") (define-public python2-waitress (package-with-python2 python-waitress)) -(define-public python-wsgiproxy2 - (package - (name "python-wsgiproxy2") - (version "0.4.2") - (source - (origin - (method url-fetch) - (uri (pypi-uri "WSGIProxy2" version ".zip")) - (sha256 - (base32 - "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4")))) - (build-system python-build-system) - (arguments - '(;; Wsgiproxy2's test suite requires Restkit, which does not yet fully - ;; support Python 3: - ;; https://github.com/benoitc/restkit/issues/140 - #:tests? #f)) - (native-inputs - `(("unzip" ,unzip) - ("python-nose" ,python-nose) - ("python-coverage" ,python-coverage))) - (propagated-inputs - `(("python-six" ,python-six) - ("python-webob" ,python-webob))) - (home-page - "https://github.com/gawel/WSGIProxy2/") - (synopsis "WSGI Proxy with various http client backends") - (description "WSGI turns HTTP requests into WSGI function calls. -WSGIProxy turns WSGI function calls into HTTP requests. -It also includes code to sign requests and pass private data, -and to spawn subprocesses to handle requests.") - (license license:expat))) - -(define-public python2-wsgiproxy2 - (package-with-python2 python-wsgiproxy2)) - -(define-public python-pastedeploy - (package - (name "python-pastedeploy") - (version "1.5.2") - (source - (origin - (method url-fetch) - (uri (pypi-uri "PasteDeploy" version)) - (sha256 - (base32 - "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm")))) - (build-system python-build-system) - (native-inputs - `(("python-nose" ,python-nose))) - (home-page "http://pythonpaste.org/deploy/") - (synopsis - "Load, configure, and compose WSGI applications and servers") - (description - "This tool provides code to load WSGI applications and servers from URIs; -these URIs can refer to Python Eggs for INI-style configuration files. Paste -Script provides commands to serve applications based on this configuration -file.") - (license license:expat))) - -(define-public python2-pastedeploy - (package-with-python2 python-pastedeploy)) - (define-public python-paste (package (name "python-paste") @@ -10611,52 +9529,6 @@ fast xml and html manipulation.") (define-public python2-pyquery (package-with-python2 python-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 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))) - -(define-public python2-webtest - (package-with-python2 python-webtest)) - (define-public python-anyjson (package (name "python-anyjson") @@ -10968,213 +9840,72 @@ introspection of @code{zope.interface} instances in code.") (base32 "0rda1j02ds6s28752fhmpwg761sh6jsxi1gpczqkrd28cki1cywv")))) (build-system python-build-system) - (arguments - ;; Tests would require a postgresql database "psycopg2_test" - ;; and a running postgresql database management service. - `(#:tests? #f)) ; TODO re-enable after providing a test-db. - (inputs - `(("postgresql" ,postgresql))) ; libpq - (home-page "http://initd.org/psycopg/") - (synopsis "Python PostgreSQL adapter") - (description - "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ") - (license license:lgpl3+))) - -(define-public python2-psycopg2 - (package-with-python2 python-psycopg2)) - -(define-public python-vobject - (package - (name "python-vobject") - (version "0.9.5") - (source (origin - (method url-fetch) - (uri (pypi-uri "vobject" version)) - (sha256 - (base32 - "0hqjgf3ay1m5w1c0k00g5yfpdz1zni5qnr5rh9b8fg9hjvhwlmhg")))) - (build-system python-build-system) - (arguments - '(;; The test suite relies on some non-portable Windows interfaces. - #:tests? #f)) - (propagated-inputs - `(("python-dateutil" ,python-dateutil) - ("python-pyicu" ,python-pyicu))) - (synopsis "Parse and generate vCard and vCalendar files") - (description "Vobject is intended to be a full featured Python package for -parsing and generating vCard and vCalendar files. Currently, iCalendar files -are supported and well tested. vCard 3.0 files are supported, and all data -should be imported, but only a few components are understood in a sophisticated -way.") - (home-page "http://eventable.github.io/vobject/") - (license license:asl2.0))) - -(define-public python2-vobject - (package-with-python2 python-vobject)) - -(define-public python-munkres - (package - (name "python-munkres") - (version "1.0.8") - (source (origin - (method url-fetch) - (uri (pypi-uri "munkres" version)) - (sha256 - (base32 - "0mbspx4zv8id4x6pim6ybsa1xh96qwpbqj7skbqz4c9c9nf1lpqq")))) - (build-system python-build-system) - (arguments - '(#:tests? #f)) ; no test suite - (home-page "http://software.clapper.org/munkres/") - (synopsis "Implementation of the Munkres algorithm") - (description "The Munkres module provides an implementation of the Munkres -algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm), -useful for solving the Assignment Problem.") - (license license:bsd-3))) - -(define-public python2-munkres - (package-with-python2 python-munkres)) - -(define-public python-flask - (package - (name "python-flask") - (version "0.11.1") - (source (origin - (method url-fetch) - (uri (pypi-uri "Flask" version)) - (sha256 - (base32 - "03kbfll4sj3v5z7r31c7bhfpi11r1np076d4p1k2kg4yzcmkywdl")))) - (build-system python-build-system) - (propagated-inputs - `(("python-itsdangerous" ,python-itsdangerous) - ("python-jinja2" ,python-jinja2) - ("python-click" ,python-click) - ("python-werkzeug" ,python-werkzeug))) - (home-page "https://github.com/mitsuhiko/flask/") - (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions") - (description "Flask is a micro web framework based on the Werkzeug toolkit -and Jinja2 template engine. It is called a micro framework because it does not -presume or force a developer to use a particular tool or library.") - (license license:bsd-3))) - -(define-public python2-flask - (package-with-python2 python-flask)) - -(define-public python-flask-wtf - (package - (name "python-flask-wtf") - (version "0.13.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "Flask-WTF" version)) - (sha256 - (base32 - "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990")))) - (build-system python-build-system) - (arguments - '(#:phases - (modify-phases %standard-phases - (add-before 'check 'drop-failing-test - (lambda _ - ;; FIXME: This file tries resolving an external server, which - ;; fails. Try to patch out the offending section instead of - ;; deleting the whole thing. - (delete-file "tests/test_recaptcha.py") - #t))))) - (propagated-inputs - `(("python-flask-babel" ,python-flask-babel) - ("python-babel" ,python-babel) - ("python-wtforms" ,python-wtforms))) - (native-inputs - `(("python-nose" ,python-nose))) - (home-page "https://github.com/lepture/flask-wtf") - (synopsis "Simple integration of Flask and WTForms") - (description "Flask-WTF integrates Flask and WTForms, including CSRF, file -upload, and reCAPTCHA.") - (license license:bsd-3))) - -(define-public python2-flask-wtf - (package-with-python2 python-flask-wtf)) - -(define-public python-flask-multistatic - (package - (name "python-flask-multistatic") - (version "1.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "flask-multistatic" version)) - (sha256 - (base32 - "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm")))) - (build-system python-build-system) - (propagated-inputs - `(("python-flask" ,python-flask))) - (home-page "https://pagure.io/flask-multistatic") - (synopsis "Flask plugin to allow overriding static files") - (description "@code{flask-multistatic} is a flask plugin that adds support -for overriding static files.") - (license license:gpl3+))) + (arguments + ;; Tests would require a postgresql database "psycopg2_test" + ;; and a running postgresql database management service. + `(#:tests? #f)) ; TODO re-enable after providing a test-db. + (inputs + `(("postgresql" ,postgresql))) ; libpq + (home-page "http://initd.org/psycopg/") + (synopsis "Python PostgreSQL adapter") + (description + "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ") + (license license:lgpl3+))) -(define-public python2-flask-multistatic - (package-with-python2 python-flask-multistatic)) +(define-public python2-psycopg2 + (package-with-python2 python-psycopg2)) -(define-public python-cookies +(define-public python-vobject (package - (name "python-cookies") - (version "2.2.1") + (name "python-vobject") + (version "0.9.5") (source (origin (method url-fetch) - (uri (pypi-uri "cookies" version)) + (uri (pypi-uri "vobject" version)) (sha256 (base32 - "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn")))) + "0hqjgf3ay1m5w1c0k00g5yfpdz1zni5qnr5rh9b8fg9hjvhwlmhg")))) (build-system python-build-system) (arguments - `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3 + '(;; The test suite relies on some non-portable Windows interfaces. #:tests? #f)) - (native-inputs - `(("python-pytest" ,python2-pytest))) - (synopsis "HTTP cookie parser and renderer") - (description "A RFC 6265-compliant HTTP cookie parser and renderer in -Python.") - (home-page "https://gitlab.com/sashahart/cookies") - (license license:expat))) + (propagated-inputs + `(("python-dateutil" ,python-dateutil) + ("python-pyicu" ,python-pyicu))) + (synopsis "Parse and generate vCard and vCalendar files") + (description "Vobject is intended to be a full featured Python package for +parsing and generating vCard and vCalendar files. Currently, iCalendar files +are supported and well tested. vCard 3.0 files are supported, and all data +should be imported, but only a few components are understood in a sophisticated +way.") + (home-page "http://eventable.github.io/vobject/") + (license license:asl2.0))) -(define-public python2-cookies - (package-with-python2 python-cookies)) +(define-public python2-vobject + (package-with-python2 python-vobject)) -(define-public python-responses +(define-public python-munkres (package - (name "python-responses") - (version "0.5.1") + (name "python-munkres") + (version "1.0.8") (source (origin (method url-fetch) - (uri (pypi-uri "responses" version)) + (uri (pypi-uri "munkres" version)) (sha256 (base32 - "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc")))) + "0mbspx4zv8id4x6pim6ybsa1xh96qwpbqj7skbqz4c9c9nf1lpqq")))) (build-system python-build-system) (arguments - `(;; Test suite is not distributed: - ;; https://github.com/getsentry/responses/issues/38 - #:tests? #f)) - (native-inputs - `(("python-mock" ,python-mock))) - (propagated-inputs - `(("python-requests" ,python-requests) - ("python-cookies" ,python-cookies) - ("python-six" ,python-six))) - (home-page "https://github.com/getsentry/responses") - (synopsis "Utility for mocking out the `requests` Python library") - (description "A utility library for mocking out the `requests` Python -library.") - (license license:asl2.0))) + '(#:tests? #f)) ; no test suite + (home-page "http://software.clapper.org/munkres/") + (synopsis "Implementation of the Munkres algorithm") + (description "The Munkres module provides an implementation of the Munkres +algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm), +useful for solving the Assignment Problem.") + (license license:bsd-3))) -(define-public python2-responses - (package-with-python2 python-responses)) +(define-public python2-munkres + (package-with-python2 python-munkres)) (define-public python-whoosh (package @@ -11846,51 +10577,6 @@ to provide a high-level synchronous API on top of the libev event loop.") (define-public python2-gevent (package-with-python2 python-gevent)) -(define-public python-geventhttpclient - (package - (name "python-geventhttpclient") - (version "1.3.1") - (source (origin - (method url-fetch) - (uri (pypi-uri "geventhttpclient" version)) - (sha256 - (base32 - "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx")) - (modules '((guix build utils))) - (snippet - '(begin - ;; Delete pre-compiled files. - (for-each delete-file (find-files "src/geventhttpclient" - ".*\\.pyc")) - #t)))) - (build-system python-build-system) - (arguments - '(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'delete-network-tests - (lambda _ - (delete-file "src/geventhttpclient/tests/test_client.py") - #t)) - (delete 'check) - (add-after 'install 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (zero? (system* "py.test" "src/geventhttpclient/tests" "-v"))))))) - (native-inputs - `(("python-pytest" ,python-pytest))) - (propagated-inputs - `(("python-certifi" ,python-certifi) - ("python-gevent" ,python-gevent) - ("python-six" ,python-six))) - (home-page "https://github.com/gwik/geventhttpclient") - (synopsis "HTTP client library for gevent") - (description "@code{python-geventhttpclient} is a high performance, -concurrent HTTP client library for python using @code{gevent}.") - (license license:expat))) - -(define-public python2-geventhttpclient - (package-with-python2 python-geventhttpclient)) - (define-public python-fastimport (package (name "python-fastimport") @@ -12559,44 +11245,6 @@ etc.") (inherit base) (name "ptpython2")))) -(define-public python-requests-oauthlib - (package - (name "python-requests-oauthlib") - (version "0.6.2") - (source - (origin - (method url-fetch) - (uri (pypi-uri "requests-oauthlib" version)) - (sha256 - (base32 - "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - ;; removes tests that require network access - (add-before 'check 'pre-check - (lambda _ - (delete-file "tests/test_core.py") - #t))))) - (native-inputs - `(("python-requests-mock" ,python-requests-mock) - ("python-mock" ,python-mock))) - (propagated-inputs - `(("python-oauthlib" ,python-oauthlib) - ("python-requests" ,python-requests))) - (home-page - "https://github.com/requests/requests-oauthlib") - (synopsis - "OAuthlib authentication support for Requests") - (description - "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to -provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.") - (license license:isc))) - -(define-public python2-requests-oauthlib - (package-with-python2 python-requests-oauthlib)) - (define-public python-stem (package (name "python-stem") @@ -12921,36 +11569,6 @@ List. Forked from and using the same API as the publicsuffix package.") (define-public python2-publicsuffix2 (package-with-python2 python-publicsuffix2)) -(define-public python-url - (package - (name "python-url") - (version "0.2.0") - (source (origin - (method url-fetch) - (uri (pypi-uri "url" version)) - (sha256 - (base32 - "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki")))) - (build-system python-build-system) - (propagated-inputs - `(("python-publicsuffix" ,python-publicsuffix))) - (native-inputs - `(("python-coverage" ,python-coverage) - ("python-nose" ,python-nose))) - (arguments - `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'" - (home-page "https://github.com/seomoz/url-py") - (synopsis "URL Parsing") - (description "Library for parsing urls.") - (license license:expat) - (properties `((python2-variant . ,(delay python2-url)))))) - -(define-public python2-url - (let ((base (package-with-python2 (strip-python2-variant python-url)))) - (package (inherit base) - (propagated-inputs - `(("python2-publicsuffix" ,python2-publicsuffix)))))) - (define-public python-freezegun (package (name "python-freezegun") @@ -13024,50 +11642,6 @@ Python to manipulate OpenDocument 1.2 files.") (define-public python2-odfpy (package-with-python2 python-odfpy)) -(define-public python-cachecontrol - (package - (name "python-cachecontrol") - (version "0.11.6") - (source - (origin - (method url-fetch) - ;; Pypi does not have tests. - (uri (string-append - "https://github.com/ionrock/cachecontrol/archive/v" - version ".tar.gz")) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - ;; Drop test that requires internet access. - (delete-file "tests/test_regressions.py") - (setenv "PYTHONPATH" - (string-append (getcwd) "/build/lib:" - (getenv "PYTHONPATH"))) - (zero? (system* "py.test" "-vv"))))))) - (native-inputs - `(("python-pytest" ,python-pytest) - ("python-redis" ,python-redis) - ("python-webtest" ,python-webtest) - ("python-mock" ,python-mock))) - (propagated-inputs - `(("python-requests" ,python-requests) - ("python-lockfile" ,python-lockfile))) - (home-page "https://github.com/ionrock/cachecontrol") - (synopsis "The httplib2 caching algorithms for use with requests") - (description "CacheControl is a port of the caching algorithms in -@code{httplib2} for use with @code{requests} session objects.") - (license license:asl2.0))) - -(define-public python2-cachecontrol - (package-with-python2 python-cachecontrol)) - (define-public python-lit (package (name "python-lit") @@ -13437,96 +12011,6 @@ theme for the Sphinx documentation system. It's the default theme of Sphinx.") (define-public python2-sphinx-alabaster-theme (package-with-python2 python-sphinx-alabaster-theme)) -(define-public python-betamax - (package - (name "python-betamax") - (version "0.8.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "betamax" version)) - (sha256 - (base32 - "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42")))) - (build-system python-build-system) - (arguments - '(;; Many tests fail because they require networking. - #:tests? #f)) - (propagated-inputs - `(("python-requests" ,python-requests))) - (home-page "https://github.com/sigmavirus24/betamax") - (synopsis "Record HTTP interactions with python-requests") - (description "Betamax will record your test suite's HTTP interactions and -replay them during future tests. It is designed to work with python-requests.") - (license license:expat))) - -(define-public python2-betamax - (package-with-python2 python-betamax)) - -(define-public python-betamax-matchers - (package - (name "python-betamax-matchers") - (version "0.4.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "betamax-matchers" version)) - (sha256 - (base32 - "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43")))) - (build-system python-build-system) - (propagated-inputs - `(("python-betamax" ,python-betamax) - ("python-requests-toolbelt" ,python-requests-toolbelt))) - (home-page "https://github.com/sigmavirus24/betamax_matchers") - (synopsis "VCR imitation for python-requests") - (description "@code{betamax-matchers} provides a set of Matchers for -Betamax.") - (license license:asl2.0))) - -(define-public python2-betamax-matchers - (package-with-python2 python-betamax-matchers)) - -(define-public python-s3transfer - (package - (name "python-s3transfer") - (version "0.1.11") - (source (origin - (method url-fetch) - (uri (pypi-uri "s3transfer" version)) - (sha256 - (base32 - "0yfrfnf404cxzn3iswibqjxklsl0b1lwgqiml6pwiqj79a7zbwbn")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - ;; 7 of the 'integration' tests require network access or login - ;; credentials. - (zero? (system* "nosetests" "--exclude=integration"))))))) - (native-inputs - `(("python-docutils" ,python-docutils) - ("python-mock" ,python-mock) - ("python-nose" ,python-nose))) - (propagated-inputs - `(("python-botocore" ,python-botocore))) - (synopsis "Amazon S3 Transfer Manager") - (description "S3transfer is a Python library for managing Amazon S3 -transfers.") - (home-page "https://github.com/boto/s3transfer") - (license license:asl2.0) - (properties `((python2-variant . ,(delay python2-s3transfer)))))) - -(define-public python2-s3transfer - (let ((base (package-with-python2 (strip-python2-variant python-s3transfer)))) - (package - (inherit base) - (native-inputs - `(("python2-futures" ,python2-futures) - ,@(package-native-inputs base)))))) - (define-public python-setproctitle (package (name "python-setproctitle") @@ -13617,119 +12101,43 @@ is used by PostgreSQL and the OpenSSH Server for example.") (native-inputs `(("python-pytest" ,python-pytest))) (home-page - "https://github.com/jamesturk/validictory") - (synopsis "General purpose Python data validator") - (description "It allows validation of arbitrary Python data structures. - -The schema format is based on the JSON Schema -proposal (http://json-schema.org), so combined with json the library is also -useful as a validator for JSON data.") - (license license:expat))) - -(define-public python2-validictory - (package-with-python2 python-validictory)) - -(define-public python-aniso8601 - (package - (name "python-aniso8601") - (version "1.3.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "aniso8601" version)) - (sha256 - (base32 - "1waj54iv3n3lw1fapbz8a93yjgrybgpc86wif5baxdh1arpj9df3")))) - (build-system python-build-system) - (propagated-inputs - `(("python-dateutil" ,python-dateutil))) - (home-page - "https://bitbucket.org/nielsenb/aniso8601") - (synopsis - "Python library for parsing ISO 8601 strings") - (description - "This package contains a library for parsing ISO 8601 datetime strings.") - (license license:bsd-3))) - -(define-public python2-aniso8601 - (package-with-python2 python-aniso8601)) - -(define-public python-flask-restful - (package - (name "python-flask-restful") - (version "0.3.5") - (source - (origin - (method url-fetch) - (uri (pypi-uri "Flask-RESTful" version)) - (sha256 - (base32 - "0hjcmdb56b7z4bkw848lxfkyrpnkwzmqn2dgnlv12mwvjpzsxr6c")))) - (build-system python-build-system) - (propagated-inputs - `(("python-aniso8601" ,python-aniso8601) - ("python-flask" ,python-flask) - ("python-pycrypto" ,python-pycrypto) - ("python-pytz" ,python-pytz))) - (native-inputs - `(;; Optional dependency of Flask. Tests need it. - ("python-blinker" ,python-blinker) - ("python-mock" ,python-mock) ; For tests - ("python-nose" ,python-nose) ; For tests - ("python-sphinx" ,python-sphinx))) - (home-page - "https://www.github.com/flask-restful/flask-restful/") - (synopsis - "Flask module for creating REST APIs") - (description - "This package contains a Flask module for creating REST APIs.") - (license license:bsd-3))) + "https://github.com/jamesturk/validictory") + (synopsis "General purpose Python data validator") + (description "It allows validation of arbitrary Python data structures. -(define-public python-flask-basicauth - (package - (name "python-flask-basicauth") - (version "0.2.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "Flask-BasicAuth" version)) - (sha256 - (base32 - "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz")))) - (build-system python-build-system) - (propagated-inputs - `(("python-flask" ,python-flask))) - (home-page - "https://github.com/jpvanhal/flask-basicauth") - (synopsis - "HTTP basic access authentication for Flask") - (description - "This package provides HTTP basic access authentication for Flask.") - (license license:bsd-3))) +The schema format is based on the JSON Schema +proposal (http://json-schema.org), so combined with json the library is also +useful as a validator for JSON data.") + (license license:expat))) + +(define-public python2-validictory + (package-with-python2 python-validictory)) -(define-public python-flask-sqlalchemy +(define-public python-aniso8601 (package - (name "python-flask-sqlalchemy") - (version "2.1") + (name "python-aniso8601") + (version "1.3.0") (source (origin (method url-fetch) - (uri (pypi-uri "Flask-SQLAlchemy" version)) + (uri (pypi-uri "aniso8601" version)) (sha256 (base32 - "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965")))) + "1waj54iv3n3lw1fapbz8a93yjgrybgpc86wif5baxdh1arpj9df3")))) (build-system python-build-system) (propagated-inputs - `(("python-flask" ,python-flask) - ("python-sqlalchemy" ,python-sqlalchemy))) + `(("python-dateutil" ,python-dateutil))) (home-page - "https://github.com/mitsuhiko/flask-sqlalchemy") + "https://bitbucket.org/nielsenb/aniso8601") (synopsis - "Module adding SQLAlchemy support to your Flask application") + "Python library for parsing ISO 8601 strings") (description - "This package adds SQLAlchemy support to your Flask application.") + "This package contains a library for parsing ISO 8601 datetime strings.") (license license:bsd-3))) +(define-public python2-aniso8601 + (package-with-python2 python-aniso8601)) + (define-public python-pyev (package (name "python-pyev") @@ -13917,44 +12325,6 @@ asynchronous messaging environments.") (define-public python2-rednose (package-with-python2 python-rednose)) -(define-public python-flask-restplus - (package - (name "python-flask-restplus") - (version "0.9.2") - (source - (origin - (method url-fetch) - (uri (pypi-uri "flask-restplus" version)) - (sha256 - (base32 - "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4")))) - (build-system python-build-system) - (arguments - '(#:tests? #f)) ; FIXME: 35/882 tests failing. - ;; #:phases - ;; (modify-phases %standard-phases - ;; (replace 'check - ;; (lambda _ - ;; (zero? (system* "nosetests"))))))) - (propagated-inputs - `(("python-aniso8601" ,python-aniso8601) - ("python-flask" ,python-flask) - ("python-jsonschema" ,python-jsonschema) - ("python-pytz" ,python-pytz) - ("python-six" ,python-six))) - (native-inputs - `(("python-tzlocal" ,python-tzlocal) - ("python-blinker" ,python-blinker) - ("python-nose" ,python-nose) - ("python-rednose" ,python-rednose))) - (home-page "https://github.com/noirbizarre/flask-restplus") - (synopsis "Framework for documented API development with Flask") - (description "This package provides a framework for API development with -the Flask web framework in Python. It is similar to package -@code{python-flask-restful} but supports the @code{python-swagger} -documentation builder.") - (license license:expat))) - (define-public python-sadisplay (package (name "python-sadisplay") @@ -13981,29 +12351,6 @@ database).") (define-public python2-sadisplay (package-with-python2 python-sadisplay)) -(define-public python-flask-restful-swagger - (package - (name "python-flask-restful-swagger") - (version "0.19") - (source - (origin - (method url-fetch) - (uri (pypi-uri "flask-restful-swagger" version)) - (sha256 - (base32 - "16msl8hd5xjmj833bpy264v98cpl5hkw5bgl5gf5vgndxbv3rm6v")))) - (build-system python-build-system) - (propagated-inputs - `(("python-flask-restful" ,python-flask-restful))) - (home-page "https://github.com/rantav/flask-restful-swagger") - (synopsis "Extract Swagger specs from Flask-Restful projects") - (description "This package lets you extract Swagger API documentation -specs from your Flask-Restful projects.") - (license license:expat))) - -(define-public python2-flask-restful-swagger - (package-with-python2 python-flask-restful-swagger)) - (define-public python-argcomplete (package (name "python-argcomplete") @@ -14674,82 +13021,6 @@ copy-on-write. This makes it easy to clone a tree, and modify only the clone, while other processes access the original tree.") (license license:gpl3+))) -(define-public python-htmlmin - (package - (name "python-htmlmin") - (version "0.1.10") - (source - (origin - (method url-fetch) - (uri (pypi-uri "htmlmin" version)) - (sha256 - (base32 - "0qxa93j3p1ak32qh8d9kshqv8v3z0hkc13dwbhp5cn7sn3xmsp6a")))) - (arguments - `(#:tests? #f)) ;htmlmin has no tests - (build-system python-build-system) - (home-page "https://htmlmin.readthedocs.org/en/latest/") - (synopsis "HTML minifier") - (description "@code{htmlmin} is an HTML minifier that just works. -It comes with safe defaults and easily configurable options.") - (license license:bsd-3))) - -(define-public python2-htmlmin - (package-with-python2 python-htmlmin)) - -(define-public python-flask-htmlmin - (package - (name "python-flask-htmlmin") - (version "1.2") - (source - (origin - (method url-fetch) - (uri (pypi-uri "Flask-HTMLmin" version)) - (sha256 - (base32 - "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348")))) - (propagated-inputs - `(("python-flask" ,python-flask) - ("python-htmlmin" ,python-htmlmin))) - (build-system python-build-system) - (home-page "https://github.com/hamidfzm/Flask-HTMLmin") - (synopsis "HTML response minifier for Flask") - (description - "Minify @code{text/html} MIME type responses when using @code{Flask}.") - (license license:bsd-3))) - -(define-public python2-flask-htmlmin - (package-with-python2 python-flask-htmlmin)) - -(define-public python-flask-login - (package - (name "python-flask-login") - (version "0.4.0") - (source - (origin - (method url-fetch) - (uri (string-append "https://github.com/maxcountryman/flask-login/archive/" - version ".tar.gz")) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1pdqp7a2gyb7k06xda004x0fi2w66s6kn2i0ndkqndmg12d83f9w")))) - (arguments - ;; Tests fail PEP8 compliance. See: - ;; https://github.com/maxcountryman/flask-login/issues/340 - `(#:tests? #f)) - (build-system python-build-system) - (home-page "https://github.com/maxcountryman/flask-login") - (synopsis "User session management for Flask") - (description - "@code{Flask-Login} provides user session management for Flask. It -handles the common tasks of logging in, logging out, and remembering your -users' sessions over extended periods of time.") - (license license:expat))) - -(define-public python2-flask-login - (package-with-python2 python-flask-login)) - (define-public python-astroid (package (name "python-astroid") @@ -15076,58 +13347,6 @@ exception message with a traceback that points to the culprit.") (define-public python2-fudge (package-with-python2 python-fudge)) -(define-public python-oauth2client - (package - (name "python-oauth2client") - (version "4.0.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "oauth2client" version)) - (sha256 - (base32 - "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0")))) - (build-system python-build-system) - (arguments - `(#:tests? #f)) - (propagated-inputs - `(("python-httplib2" ,python-httplib2) - ("python-pyasn1" ,python-pyasn1) - ("python-pyasn1-modules" ,python-pyasn1-modules) - ("python-rsa" ,python-rsa) - ("python-six" ,python-six))) - (home-page "http://github.com/google/oauth2client/") - (synopsis "OAuth 2.0 client library") - (description "@code{python-oauth2client} provides an OAuth 2.0 client -library for Python") - (license license:asl2.0))) - -(define-public python-flask-oidc - (package - (name "python-flask-oidc") - (version "1.1.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "flask-oidc" version)) - (sha256 - (base32 - "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2")))) - (build-system python-build-system) - (propagated-inputs - `(("python-flask" ,python-flask) - ("python-itsdangerous" ,python-itsdangerous) - ("python-oauth2client" ,python-oauth2client) - ("python-six" ,python-six))) - (native-inputs - `(("python-nose" ,python-nose) - ("python-mock" ,python-mock))) - (home-page "https://github.com/puiterwijk/flask-oidc") - (synopsis "OpenID Connect extension for Flask") - (description "@code{python-flask-oidc} provides an OpenID Connect extension -for Flask.") - (license license:bsd-2))) - (define-public python-mwclient (package (name "python-mwclient") @@ -15260,30 +13479,6 @@ make common patterns shorter and easier.") (define-public python2-utils (package-with-python2 python-utils)) -(define-public python-webassets - (package - (name "python-webassets") - (version "0.12.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "webassets" version)) - (sha256 - (base32 - "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7")))) - (build-system python-build-system) - (native-inputs - `(("python-jinja2" ,python-jinja2) - ("python-mock" ,python-mock) - ("python-nose" ,python-nose) - ("python-pytest" ,python-pytest))) - (home-page "https://github.com/miracle2k/webassets") - (synopsis "Media asset management") - (description "Merges, minifies and compresses Javascript and CSS files, -supporting a variety of different filters, including YUI, jsmin, jspacker or -CSS tidy. Also supports URL rewriting in CSS files.") - (license license:bsd-2))) - (define-public python-sphinx-me (package (name "python-sphinx-me") @@ -15308,26 +13503,6 @@ use in your Sphinx docs.") (define-public python2-sphinx-me (package-with-python2 python-sphinx-me)) -(define-public python-cssmin - (package - (name "python-cssmin") - (version "0.2.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "cssmin" version)) - (sha256 - (base32 - "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0")))) - (build-system python-build-system) - (home-page "https://github.com/zacharyvoase/cssmin") - (synopsis "Python port of the YUI CSS Compressor") - (description "Python port of the YUI CSS Compressor.") - (license (list license:expat license:bsd-3)))) - -(define-public python2-cssmin - (package-with-python2 python-cssmin)) - (define-public python-diff-match-patch (package (name "python-diff-match-patch") @@ -15400,38 +13575,6 @@ especially -cover-package.") (define-public python2-nosexcover (package-with-python2 python-nosexcover)) -(define-public python-elasticsearch - (package - (name "python-elasticsearch") - (version "1.0.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "elasticsearch" version)) - (sha256 - (base32 - "1sdw1r05cw7ihnmng8ra9v968fj7bq6sji8i1dikymsnkcpgc69g")))) - (build-system python-build-system) - (native-inputs - `(("python-mock" ,python-mock) - ("python-nosexcover" ,python-nosexcover) - ("python-pyaml" ,python-pyaml) - ("python-requests" ,python-requests))) - (propagated-inputs - `(("urllib3" ,python-urllib3))) - (arguments - ;; tests require the test_elasticsearch module but it is not distributed. - `(#:tests? #f)) - (home-page "https://github.com/elastic/elasticsearch-py") - (synopsis "Low-level client for Elasticsearch") - (description "Official low-level client for Elasticsearch. Its goal is to -provide common ground for all Elasticsearch-related code in Python; because of -this it tries to be opinion-free and very extendable.") - (license license:expat))) - -(define-public python2-elasticsearch - (package-with-python2 python-elasticsearch)) - (define-public python-levenshtein (package (name "python-levenshtein") @@ -15698,65 +13841,6 @@ JSON APIs with Behave.") (define-public python2-behave-web-api (package-with-python2 python-behave-web-api)) -(define-public python-flask-script - (package - (name "python-flask-script") - (version "2.0.5") - (source - (origin - (method url-fetch) - (uri (pypi-uri "Flask-Script" version)) - (sha256 - (base32 - "0zqh2yq8zk7m9b4xw1ryqmrljkdigfb3hk5155a3b5hkfnn6xxyf")))) - (build-system python-build-system) - (propagated-inputs - `(("python-flask" ,python-flask) - ("python-argcomplete" ,python-argcomplete) - ("python-werkzeug" ,python-werkzeug))) - (native-inputs - `(("python-pytest" ,python-pytest))) - (home-page - "http://github.com/smurfix/flask-script") - (synopsis "Scripting support for Flask") - (description "The Flask-Script extension provides support for writing -external scripts in Flask. This includes running a development server, -a customised Python shell, scripts to set up your database, cronjobs, -and other command-line tasks that belong outside the web application -itself.") - (license license:bsd-3))) - -(define-public python2-flask-script - (package-with-python2 python-flask-script)) - -(define-public python-flask-migrate - (package - (name "python-flask-migrate") - (version "2.0.3") - (source - (origin - (method url-fetch) - (uri (pypi-uri "Flask-Migrate" version)) - (sha256 - (base32 - "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk")))) - (build-system python-build-system) - (propagated-inputs - `(("python-flask" ,python-flask) - ("python-alembic" ,python-alembic) - ("python-sqlalchemy" ,python-sqlalchemy) - ("python-flask-script" ,python-flask-script) - ("python-flask-sqlalchemy" ,python-flask-sqlalchemy))) - (home-page "http://github.com/miguelgrinberg/flask-migrate/") - (synopsis "SQLAlchemy database migrations for Flask programs using -Alembic") - (description "This package contains SQLAlchemy database migration tools -for Flask programs that are using @code{python-alembic}.") - (license license:expat))) - -(define-public python2-flask-migrate - (package-with-python2 python-flask-migrate)) - (define-public python-packaging (package (name "python-packaging") @@ -15810,46 +13894,6 @@ transforms idiomatic python function calls to well-formed SQL queries.") (define-public python2-sql (package-with-python2 python-sql)) -(define-public python-genshi - (package - (name "python-genshi") - (version "0.7") - (source - (origin - (method url-fetch) - (uri (string-append - "https://ftp.edgewall.org/pub/genshi/Genshi-" - version ".tar.gz")) - (patches - (search-patches - ;; The first 4 patches are in the master branch upstream. - ;; See this as a reference https://genshi.edgewall.org/ticket/582 - ;; The last 2 are NOT in any branch. - ;; They were sent as attachments to a ticket opened at - ;; https://genshi.edgewall.org/ticket/602#no1 - "python-genshi-stripping-of-unsafe-script-tags.patch" - "python-genshi-disable-speedups-on-python-3.3.patch" - "python-genshi-isstring-helper.patch" - "python-genshi-add-support-for-python-3.4-AST.patch" - "python-genshi-fix-tests-on-python-3.5.patch" - "python-genshi-buildable-on-python-2.7.patch")) - (sha256 - (base32 - "0lkkbp6fbwzv0zda5iqc21rr7rdldkwh3hfabfjl9i4bwq14858x")))) - (build-system python-build-system) - (home-page "https://genshi.edgewall.org/") - (synopsis "Toolkit for generation of output for the web") - (description "Genshi is a Python library that provides an integrated set -of components for parsing, generating, and processing HTML, XML or other -textual content for output generation on the web.") - (license license:bsd-3))) - -;; The linter here claims that patch file names should start with the package -;; name. But, in this case the patches are inherited from python-genshi with -;; the "python-genshi-" prefix instead of "python2-genshi-". -(define-public python2-genshi - (package-with-python2 python-genshi)) - (define-public python-relatorio (package (name "python-relatorio") @@ -16550,56 +14594,6 @@ requirements is not met.") (define-public python2-xenon (package-with-python2 python-xenon)) -(define-public python-flask-principal - (package - (name "python-flask-principal") - (version "0.4.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "Flask-Principal" version)) - (sha256 - (base32 - "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm")))) - (build-system python-build-system) - (propagated-inputs - `(("python-blinker" ,python-blinker))) - (native-inputs - `(("python-flask" ,python-flask) - ("python-nose" ,python-nose))) - (home-page "http://packages.python.org/Flask-Principal/") - (synopsis "Identity management for Flask") - (description "@code{flask_principal} is a identity management library for -Flask. It supports managing both authentication and authorization data in a -thread-local variable.") - (license license:expat))) - -(define-public python2-flask-principal - (package-with-python2 python-flask-principal)) - -(define-public python-flask-httpauth - (package - (name "python-flask-httpauth") - (version "3.2.3") - (source - (origin - (method url-fetch) - (uri (pypi-uri "Flask-HTTPAuth" version)) - (sha256 - (base32 - "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz")))) - (build-system python-build-system) - (native-inputs - `(("python-flask" ,python-flask))) - (home-page "http://github.com/miguelgrinberg/flask-httpauth/") - (synopsis "Basic and Digest HTTP authentication for Flask routes") - (description "@code{flask_httpauth} provides Basic and Digest HTTP -authentication for Flask routes.") - (license license:expat))) - -(define-public python2-flask-httpauth - (package-with-python2 python-flask-httpauth)) - (define-public python-pysocks (package (name "python-pysocks") @@ -16644,27 +14638,6 @@ ECB and OFB).") (define-public python2-pyaes (package-with-python2 python-pyaes)) -(define-public python-uritemplate - (package - (name "python-uritemplate") - (version "3.0.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "uritemplate" version)) - (sha256 - (base32 - "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0")))) - (build-system python-build-system) - (home-page "https://uritemplate.readthedocs.org") - (synopsis "Library to deal with URI Templates") - (description "@code{uritemplate} provides Python library to deal with URI -Templates.") - (license license:bsd-2))) - -(define-public python2-uritemplate - (package-with-python2 python-uritemplate)) - (define-public python-pydiff (package (name "python-pydiff") diff --git a/gnu/packages/rdf.scm b/gnu/packages/rdf.scm index 2ccfc2cec4..88ba1c3d63 100644 --- a/gnu/packages/rdf.scm +++ b/gnu/packages/rdf.scm @@ -41,6 +41,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages qt) #:use-module (gnu packages tls) #:use-module (gnu packages xml)) diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index 98867fd391..34de680a7d 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -52,6 +52,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages texinfo) #:use-module (gnu packages base) #:use-module (srfi srfi-1)) diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm index 85e7e8779e..9562bbfa8d 100644 --- a/gnu/packages/tor.scm +++ b/gnu/packages/tor.scm @@ -37,6 +37,7 @@ #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages qt) #:use-module (gnu packages autotools) #:use-module (gnu packages tls) diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index c9e9e50f84..99245fa0b0 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -21,6 +21,7 @@ #:use-module (gnu packages) #:use-module (gnu packages gtk) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system python)) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 22c48f0c6b..20f20a4040 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -73,6 +73,7 @@ #:use-module (gnu packages perl-check) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages readline) #:use-module (gnu packages databases) #:use-module (gnu packages admin) diff --git a/gnu/packages/web-browsers.scm b/gnu/packages/web-browsers.scm index 0369ac6134..385147c379 100644 --- a/gnu/packages/web-browsers.scm +++ b/gnu/packages/web-browsers.scm @@ -35,6 +35,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages qt) #:use-module (gnu packages image) #:use-module (gnu packages tls) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index dc9849eafe..a78f5b6f0d 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -92,6 +92,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages perl-check) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) #:use-module (gnu packages qt) -- cgit 1.4.1 From f4dd303282dc0bfd88606e383c0cf98f3742f771 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 17 Oct 2017 20:15:52 +0100 Subject: gnu: Patch ikiwiki to set PERL5LIB in the CGI wrapper. This helps with CGI support. * gnu/packages/web.scm (ikiwik)[arguments]: Add 'include-PERL5LIB-in-wrapper phase. --- gnu/packages/web.scm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index a78f5b6f0d..8a6cd91ebc 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4301,6 +4301,15 @@ NetSurf project.") #:tests? #f #:phases (modify-phases %standard-phases + (add-after 'unpack 'include-PERL5LIB-in-wrapper + (lambda _ + (substitute* "IkiWiki/Wrapper.pm" + (("^@wrapper\\_hooks") + (string-append + "@wrapper_hooks\n" + " addenv(\"PERL5LIB\", \"" + (getenv "PERL5LIB") + "\");"))))) (add-after 'install 'wrap-programs (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) -- cgit 1.4.1