Merge branch 'master' into staging
[jackhill/guix/guix.git] / gnu / packages / web.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2013 Aljosha Papsch <misc@rpapsch.de>
4 ;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
5 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2018 Raoul Jean Pierre Bonnal <ilpuccio.febo@gmail.com>
8 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
9 ;;; Copyright © 2015, 2016, 2017 Eric Bavier <bavier@member.fsf.org>
10 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
11 ;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
12 ;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org>
13 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
14 ;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
15 ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
16 ;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
17 ;;; Copyright © 2016, 2017 ng0 <ng0@infotropique.org>
18 ;;; Copyright © 2016, 2017 Arun Isaac <arunisaac@systemreboot.net>
19 ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
20 ;;; Copyright © 2016 Bake Timmons <b3timmons@speedymail.org>
21 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
22 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
23 ;;; Copyright © 2017 Kei Kebreau <kkebreau@posteo.net>
24 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
25 ;;; Copyright © 2017 Pierre Langlois <pierre.langlois@gmx.com>
26 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
27 ;;; Copyright © 2018 Julien Lepiller <julien@lepiller.eu>
28 ;;;
29 ;;; This file is part of GNU Guix.
30 ;;;
31 ;;; GNU Guix is free software; you can redistribute it and/or modify it
32 ;;; under the terms of the GNU General Public License as published by
33 ;;; the Free Software Foundation; either version 3 of the License, or (at
34 ;;; your option) any later version.
35 ;;;
36 ;;; GNU Guix is distributed in the hope that it will be useful, but
37 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
38 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39 ;;; GNU General Public License for more details.
40 ;;;
41 ;;; You should have received a copy of the GNU General Public License
42 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
43
44 (define-module (gnu packages web)
45 #:use-module (ice-9 match)
46 #:use-module ((guix licenses) #:prefix l:)
47 #:use-module (guix packages)
48 #:use-module (guix download)
49 #:use-module (guix git-download)
50 #:use-module (guix cvs-download)
51 #:use-module (guix hg-download)
52 #:use-module (guix utils)
53 #:use-module (guix build-system gnu)
54 #:use-module (guix build-system glib-or-gtk)
55 #:use-module (guix build-system perl)
56 #:use-module (guix build-system cmake)
57 #:use-module (guix build-system r)
58 #:use-module (guix build-system trivial)
59 #:use-module (guix build-system python)
60 #:use-module (guix build-system ant)
61 #:use-module (guix build-system scons)
62 #:use-module (gnu packages)
63 #:use-module (gnu packages adns)
64 #:use-module (gnu packages apr)
65 #:use-module (gnu packages check)
66 #:use-module (gnu packages cran)
67 #:use-module (gnu packages documentation)
68 #:use-module (gnu packages docbook)
69 #:use-module (gnu packages autotools)
70 #:use-module (gnu packages compression)
71 #:use-module (gnu packages cyrus-sasl)
72 #:use-module (gnu packages databases)
73 #:use-module (gnu packages bison)
74 #:use-module (gnu packages flex)
75 #:use-module (gnu packages kerberos)
76 #:use-module (gnu packages gd)
77 #:use-module (gnu packages gettext)
78 #:use-module (gnu packages glib)
79 #:use-module (gnu packages gnome)
80 #:use-module (gnu packages gnu-doc)
81 #:use-module (gnu packages gnupg)
82 #:use-module (gnu packages gnuzilla)
83 #:use-module (gnu packages gperf)
84 #:use-module (gnu packages gtk)
85 #:use-module (gnu packages java)
86 #:use-module (gnu packages javascript)
87 #:use-module (gnu packages jemalloc)
88 #:use-module (gnu packages image)
89 #:use-module (gnu packages imagemagick)
90 #:use-module (gnu packages libevent)
91 #:use-module (gnu packages libidn)
92 #:use-module (gnu packages libunistring)
93 #:use-module (gnu packages lisp)
94 #:use-module (gnu packages lua)
95 #:use-module (gnu packages markup)
96 #:use-module (gnu packages ncurses)
97 #:use-module (gnu packages openstack)
98 #:use-module (gnu packages base)
99 #:use-module (gnu packages perl)
100 #:use-module (gnu packages perl-check)
101 #:use-module (gnu packages python)
102 #:use-module (gnu packages python-web)
103 #:use-module (gnu packages pcre)
104 #:use-module (gnu packages pkg-config)
105 #:use-module (gnu packages qt)
106 #:use-module (gnu packages valgrind)
107 #:use-module (gnu packages xml)
108 #:use-module (gnu packages curl)
109 #:use-module (gnu packages texinfo)
110 #:use-module (gnu packages textutils)
111 #:use-module (gnu packages tls)
112 #:use-module (gnu packages statistics)
113 #:use-module (gnu packages version-control))
114
115 (define-public httpd
116 (package
117 (name "httpd")
118 (version "2.4.29")
119 (source (origin
120 (method url-fetch)
121 (uri (string-append "mirror://apache/httpd/httpd-"
122 version ".tar.bz2"))
123 (sha256
124 (base32
125 "003z3yckkdihfv69rgqsik1w2jsnh14j3ci8fjia4s2mlajm6xvp"))))
126 (build-system gnu-build-system)
127 (native-inputs `(("pcre" ,pcre "bin"))) ;for 'pcre-config'
128 (inputs `(("apr" ,apr)
129 ("apr-util" ,apr-util)
130 ("openssl" ,openssl)
131 ("perl" ,perl))) ; needed to run bin/apxs
132 (arguments
133 `(#:test-target "test"
134 #:configure-flags (list "--enable-rewrite"
135 "--enable-userdir"
136 "--enable-vhost-alias"
137 "--enable-ssl"
138 "--enable-mime-magic"
139 (string-append "--sysconfdir="
140 (assoc-ref %outputs "out")
141 "/etc/httpd"))))
142 (synopsis "Featureful HTTP server")
143 (description
144 "The Apache HTTP Server Project is a collaborative software development
145 effort aimed at creating a robust, commercial-grade, featureful, and
146 freely-available source code implementation of an HTTP (Web) server. The
147 project is jointly managed by a group of volunteers located around the world,
148 using the Internet and the Web to communicate, plan, and develop the server
149 and its related documentation.")
150 (license l:asl2.0)
151 (home-page "https://httpd.apache.org/")))
152
153 (define-public mod-wsgi
154 (package
155 (name "mod-wsgi")
156 (version "4.5.22")
157 (source (origin
158 (method url-fetch)
159 (uri (string-append
160 "https://github.com/GrahamDumpleton/mod_wsgi/archive/"
161 version ".tar.gz"))
162 (sha256
163 (base32
164 "0n1yhmrfp8mjbsngmyjl937c6rc0069p6wdi1lknrbn1q42hzw6q"))))
165 (build-system gnu-build-system)
166 (arguments
167 '(#:tests? #f ;; TODO: Can't figure out if there are tests
168 #:make-flags (list
169 (string-append "DESTDIR="
170 (assoc-ref %outputs "out"))
171 "LIBEXECDIR=/modules")))
172 (inputs
173 `(("httpd" ,httpd)
174 ("python" ,python-wrapper)))
175 (synopsis "Apache HTTPD module for Python WSGI applications")
176 (description
177 "The mod_wsgi module for the Apache HTTPD Server adds support for running
178 applications that support the Python @acronym{WSGI, Web Server Gateway
179 Interface} specification.")
180 (license l:asl2.0)
181 (home-page "https://modwsgi.readthedocs.io/")))
182
183 (define-public nginx
184 (package
185 (name "nginx")
186 ;; Consider updating the nginx-documentation package if the nginx package is
187 ;; updated.
188 (version "1.13.9")
189 (source (origin
190 (method url-fetch)
191 (uri (string-append "https://nginx.org/download/nginx-"
192 version ".tar.gz"))
193 (sha256
194 (base32
195 "0hpsyxpxj89p5vrzv9p1hp7xjbnj5c1w6fdy626ycvsiay4a3bjz"))))
196 (build-system gnu-build-system)
197 (inputs `(("openssl" ,openssl)
198 ("pcre" ,pcre)
199 ("zlib" ,zlib)))
200 (arguments
201 `(#:tests? #f ; no test target
202 #:phases
203 (modify-phases %standard-phases
204 (add-before 'configure 'patch-/bin/sh
205 (lambda _
206 (substitute* "auto/feature"
207 (("/bin/sh") (which "sh")))
208 #t))
209 (replace 'configure
210 ;; The configure script is hand-written, not from GNU autotools.
211 (lambda* (#:key outputs #:allow-other-keys)
212 (let ((flags
213 (list (string-append "--prefix=" (assoc-ref outputs "out"))
214 "--with-http_ssl_module"
215 "--with-http_v2_module"
216 "--with-pcre-jit"
217 "--with-debug"
218 ;; Even when not cross-building, we pass the
219 ;; --crossbuild option to avoid customizing for the
220 ;; kernel version on the build machine.
221 ,(let ((system "Linux") ; uname -s
222 (release "2.6.32") ; uname -r
223 ;; uname -m
224 (machine (match (or (%current-target-system)
225 (%current-system))
226 ("x86_64-linux" "x86_64")
227 ("i686-linux" "i686")
228 ("mips64el-linux" "mips64")
229 ;; Prevent errors when querying
230 ;; this package on unsupported
231 ;; platforms, e.g. when running
232 ;; "guix package --search="
233 (_ "UNSUPPORTED"))))
234 (string-append "--crossbuild="
235 system ":" release ":" machine)))))
236 (setenv "CC" "gcc")
237 (format #t "environment variable `CC' set to `gcc'~%")
238 (format #t "configure flags: ~s~%" flags)
239 (apply invoke "./configure" flags)
240 #t)))
241 (add-after 'install 'install-man-page
242 (lambda* (#:key outputs #:allow-other-keys)
243 (let* ((out (assoc-ref outputs "out"))
244 (man (string-append out "/share/man")))
245 (install-file "objs/nginx.8" (string-append man "/man8"))
246 #t)))
247 (add-after 'install 'fix-root-dirs
248 (lambda* (#:key outputs #:allow-other-keys)
249 ;; 'make install' puts things in strange places, so we need to
250 ;; clean it up ourselves.
251 (let* ((out (assoc-ref outputs "out"))
252 (share (string-append out "/share/nginx")))
253 ;; This directory is empty, so get rid of it.
254 (rmdir (string-append out "/logs"))
255 ;; Example configuration and HTML files belong in
256 ;; /share.
257 (mkdir-p share)
258 (rename-file (string-append out "/conf")
259 (string-append share "/conf"))
260 (rename-file (string-append out "/html")
261 (string-append share "/html"))
262 #t))))))
263 (home-page "https://nginx.org")
264 (synopsis "HTTP and reverse proxy server")
265 (description
266 "Nginx (\"engine X\") is a high-performance web and reverse proxy server
267 created by Igor Sysoev. It can be used both as a stand-alone web server
268 and as a proxy to reduce the load on back-end HTTP or mail servers.")
269 ;; Almost all of nginx is distributed under the bsd-2 license.
270 ;; The exceptions are:
271 ;; * The 'nginx-http-push' module is covered by the expat license.
272 ;; * The 'nginx-development-kit' module is mostly covered by bsd-3,
273 ;; except for two source files which are bsd-4 licensed.
274 (license (list l:bsd-2 l:expat l:bsd-3 l:bsd-4))))
275
276 (define nginx-xslscript
277 (let ((revision 11)
278 (changeset "01dc9ba12e1b"))
279 (package
280 (name "nginx-xslscript")
281 (version
282 (simple-format #f "2014-03-31-~A-~A" revision changeset))
283 (source (origin
284 (method hg-fetch)
285 (uri (hg-reference
286 (url "http://hg.nginx.org/xslscript")
287 (changeset changeset)))
288 (file-name (string-append name "-" version))
289 (sha256
290 (base32
291 "0am8zvdx3jmiwkg5q07qjaw5r26r4i2v5i4yr8a1k0jgib6ii08g"))))
292 (build-system gnu-build-system)
293 (arguments
294 '(#:tests? #f ; No test suite
295 #:phases
296 (modify-phases %standard-phases
297 (delete 'configure)
298 (delete 'build)
299 (replace 'install
300 (lambda* (#:key outputs #:allow-other-keys)
301 (let ((out-bin (string-append
302 (assoc-ref outputs "out")
303 "/bin")))
304 (mkdir-p out-bin)
305 (copy-file "xslscript.pl"
306 (string-append
307 out-bin
308 "/xslscript.pl"))
309 #t))))))
310 (home-page "http://hg.nginx.org/xslscript")
311 (synopsis "XSLScript with NGinx specific modifications")
312 (description
313 "XSLScript is a terse notation for writing complex XSLT stylesheets.
314 This is modified version, specifically intended for use with the NGinx
315 documentation.")
316 (license l:bsd-2))))
317
318 (define-public nginx-documentation
319 ;; This documentation should be relevant for nginx@1.13.8.
320 (let ((revision 2100)
321 (changeset "cfb7bd672d77"))
322 (package
323 (name "nginx-documentation")
324 (version
325 (simple-format #f "2018-01-22-~A-~A" revision changeset))
326 (source
327 (origin (method hg-fetch)
328 (uri (hg-reference
329 (url "http://hg.nginx.org/nginx.org")
330 (changeset changeset)))
331 (file-name (string-append name "-" version))
332 (sha256
333 (base32
334 "096fcsc0wnfr847m7dwp17rivd3alxq7v9hq9s5lkfbhylmh18vm"))))
335 (build-system gnu-build-system)
336 (arguments
337 '(#:tests? #f ; no test suite
338 #:phases
339 (modify-phases %standard-phases
340 (delete 'configure) ; no configure script
341 (replace 'build
342 (lambda* (#:key outputs #:allow-other-keys)
343 (let ((output (assoc-ref outputs "out")))
344 (substitute* "umasked.sh"
345 ((" /bin/sh") (string-append " " (which "sh"))))
346 ;; The documentation includes a banner, which makes sense on
347 ;; the NGinx website, but doesn't make much sense when
348 ;; viewing locally. Therefore, modify the CSS to remove the
349 ;; banner.
350 (substitute* "xslt/style.xslt"
351 (("#banner \\{ background: black;")
352 "#banner { background: black;
353 display: none;"))
354 (invoke "make")
355 #t)))
356 (replace 'install
357 (lambda* (#:key outputs #:allow-other-keys)
358 (let ((output (assoc-ref outputs "out")))
359 (mkdir-p output)
360 (copy-recursively "libxslt" output)
361 #t))))))
362 (native-inputs
363 `(("libxml2" ,libxml2)
364 ("libxslt" ,libxslt)
365 ("nginx-xslscript" ,nginx-xslscript)))
366 (home-page "https://nginx.org")
367 (synopsis "Documentation for the nginx web server")
368 (description
369 "This package provides HTML documentation for the nginx web server.")
370 (license l:bsd-2))))
371
372 (define-public fcgi
373 (package
374 (name "fcgi")
375 (version "2.4.0")
376 (source
377 (origin
378 (method url-fetch)
379 ;; Upstream has disappeared.
380 (uri (string-append "https://sources.archlinux.org/other/packages/fcgi/"
381 "fcgi-" version ".tar.gz"))
382 (sha256
383 (base32
384 "1f857wnl1d6jfrgfgfpz3zdaj8fch3vr13mnpcpvy8bang34bz36"))
385 (patches (search-patches "fcgi-2.4.0-poll.patch"
386 "fcgi-2.4.0-gcc44-fixes.patch"))))
387 (build-system gnu-build-system)
388 ;; Parallel building is not supported.
389 (arguments `(#:parallel-build? #f))
390 ;; This is an archived fork of the original home page, www.fastcgi.com.
391 (home-page "https://fastcgi-archives.github.io/")
392 (synopsis "Language-independent, high-performant extension to CGI")
393 (description "FastCGI is a language-independent, scalable extension to CGI
394 that provides high performance without the limitations of server specific
395 APIs.")
396 ;; This package is released under the Open Market License, a variant of
397 ;; the Expat license, incompatible with the GPL.
398 (license (l:non-copyleft "file://LICENSE.TERMS"))))
399
400 (define-public fcgiwrap
401 (package
402 (name "fcgiwrap")
403 (version "1.1.0")
404 (source
405 (origin
406 (method url-fetch)
407 (uri (string-append "https://github.com/gnosek/fcgiwrap/"
408 "archive/" version ".tar.gz"))
409 (file-name (string-append name "-" version ".tar.gz"))
410 (sha256
411 (base32
412 "07y6s4mm86cv7p1ljz94sxnqa89y9amn3vzwsnbq5hrl4vdy0zac"))))
413 (build-system gnu-build-system)
414 (arguments
415 `(#:tests? #f ; no tests included
416 #:make-flags (list "CC=gcc")
417 #:phases
418 (modify-phases %standard-phases
419 (add-after 'unpack 'bootstrap
420 (lambda _
421 (zero? (system* "autoreconf" "-vif")))))))
422 (native-inputs
423 `(("autoconf" ,autoconf)
424 ("automake" ,automake)
425 ("pkg-config" ,pkg-config)))
426 (inputs
427 `(("fcgi" ,fcgi)))
428 (home-page "https://nginx.localdomain.pl/wiki/FcgiWrap")
429 (synopsis "Simple server for running CGI applications over FastCGI")
430 (description "Fcgiwrap is a simple server for running CGI applications
431 over FastCGI. It hopes to provide clean CGI support to Nginx (and other web
432 servers that may need it).")
433 (license l:expat)))
434
435 (define-public starman
436 (package
437 (name "starman")
438 (version "0.4014")
439 (source
440 (origin
441 (method url-fetch)
442 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
443 "Starman-" version ".tar.gz"))
444 (sha256
445 (base32
446 "1sbb5rb3vs82rlh1fjkgkcmj5pj62b4y9si4ihh45sl9m8c2qxx5"))))
447 (build-system perl-build-system)
448 (native-inputs
449 `(("perl-libwww" ,perl-libwww)
450 ("perl-module-build-tiny" ,perl-module-build-tiny)
451 ("perl-test-requires" ,perl-test-requires)))
452 (propagated-inputs
453 `(("perl-data-dump" ,perl-data-dump)
454 ("perl-http-date" ,perl-http-date)
455 ("perl-http-message" ,perl-http-message)
456 ("perl-http-parser-xs" ,perl-http-parser-xs)
457 ("perl-net-server" ,perl-net-server)
458 ("perl-plack" ,perl-plack)
459 ("perl-test-tcp" ,perl-test-tcp)))
460 (home-page "http://search.cpan.org/dist/Starman")
461 (synopsis "PSGI/Plack web server")
462 (description "Starman is a PSGI perl web server that has unique features
463 such as high performance, preforking, signal support, superdaemon awareness,
464 and UNIX socket support.")
465 (license l:perl-license)))
466
467 (define-public icedtea-web
468 (package
469 (name "icedtea-web")
470 (version "1.6.2")
471 (source (origin
472 (method url-fetch)
473 (uri (string-append
474 "http://icedtea.wildebeest.org/download/source/"
475 name "-" version ".tar.gz"))
476 (sha256
477 (base32
478 "004kwrngyxxlrlzby4vzxjr0xcyngcdc9dfgnvi61ffnjr006ryf"))))
479 (build-system gnu-build-system)
480 (arguments
481 `(#:configure-flags
482 (list "--disable-plugin" ;NPAPI plugins are obsolete nowadays.
483 (string-append "BIN_BASH=" (assoc-ref %build-inputs "bash")
484 "/bin/bash")
485 (string-append "--with-jdk-home=" (assoc-ref %build-inputs "jdk")))))
486 (outputs '("out" "doc"))
487 (native-inputs
488 `(("pkg-config" ,pkg-config)
489 ("zip" ,zip)))
490 (inputs
491 `(("gtk+" ,gtk+)
492 ("jdk" ,icedtea "jdk")))
493 (home-page "http://icedtea.classpath.org/wiki/IcedTea-Web")
494 (synopsis "Java Web Start")
495 (description
496 "IcedTea-Web is an implementation of the @dfn{Java Network Launching
497 Protocol}, also known as Java Web Start. This package provides tools and
498 libraries for working with JNLP applets.")
499 ;; The program is mainly GPL2+, with some individual files under LGPL2.1+
500 ;; or dual licenses.
501 (license l:gpl2+)))
502
503 (define-public jansson
504 (package
505 (name "jansson")
506 (version "2.10")
507 (source (origin
508 (method url-fetch)
509 (uri
510 (string-append "http://www.digip.org/jansson/releases/jansson-"
511 version ".tar.gz"))
512 (sha256
513 (base32
514 "0iv4rxsnamqm3ldpg7dyhjq0x9cp023nc7ac820jdd3pwb8ml8bq"))))
515 (build-system gnu-build-system)
516 (home-page "http://www.digip.org/jansson/")
517 (synopsis "JSON C library")
518 (description
519 "Jansson is a C library for encoding, decoding and manipulating JSON
520 data.")
521 (license l:expat)))
522
523 (define-public json-c
524 (package
525 (name "json-c")
526 (version "0.13")
527 (source (origin
528 (method url-fetch)
529 (uri (string-append
530 "https://s3.amazonaws.com/json-c_releases/releases/json-c-"
531 version ".tar.gz"))
532 (sha256
533 (base32
534 "0kf2594kxcfga6x0mvwzj2qg8pgxhjkibc16ghnw85mdx45ph5h3"))
535 (modules '((guix build utils)))
536 (snippet
537 '(begin
538 ;; Somehow 'config.h.in' is older than
539 ;; 'aclocal.m4', which would trigger a rule to
540 ;; run 'autoheader'.
541 (set-file-time "config.h.in"
542 (stat "aclocal.m4"))
543
544 ;; Don't try to build with -Werror.
545 (substitute* (find-files "." "Makefile\\.in")
546 (("-Werror") ""))))))
547 (build-system gnu-build-system)
548 (arguments '(#:parallel-build? #f
549 #:parallel-tests? #f))
550 (home-page "https://github.com/json-c/json-c/wiki")
551 (synopsis "JSON implementation in C")
552 (description
553 "JSON-C implements a reference counting object model that allows you to
554 easily construct JSON objects in C, output them as JSON-formatted strings and
555 parse JSON-formatted strings back into the C representation of JSON objects.
556 It aims to conform to RFC 7159.")
557 (license l:x11)))
558
559 ;; TODO: remove this old version when all dependents have been updated.
560 (define-public json-c-0.12
561 (package
562 (inherit json-c)
563 (version "0.12.1")
564 (source (origin
565 (method url-fetch)
566 (uri (string-append
567 "https://s3.amazonaws.com/json-c_releases/releases/json-c-"
568 version ".tar.gz"))
569 (sha256
570 (base32 "08qibrq29a5v7g23wi5icy6l4fbfw90h9ccps6vq0bcklx8n84ra"))
571 (modules '((guix build utils)))
572 (snippet
573 '(begin
574 ;; Somehow 'config.h.in' is older than
575 ;; 'aclocal.m4', which would trigger a rule to
576 ;; run 'autoheader'.
577 (set-file-time "config.h.in"
578 (stat "aclocal.m4"))
579
580 ;; Don't try to build with -Werror.
581 (substitute* (find-files "." "Makefile\\.in")
582 (("-Werror") ""))))))))
583
584 (define-public qjson
585 (package
586 (name "qjson")
587 (version "0.9.0")
588 (source (origin
589 (method url-fetch)
590 (uri (string-append
591 "https://github.com/flavio/qjson/archive/"
592 version ".tar.gz"))
593 (file-name (string-append name "-" version ".tar.gz"))
594 (sha256
595 (base32
596 "1m0h4rajj99hv9w4i381a8x81lxiv167lxk10ncvphpkfxs624p8"))))
597 (build-system cmake-build-system)
598 (arguments
599 ;; The tests require a X server
600 `(#:configure-flags '("-DQJSON_BUILD_TESTS=ON"
601 "-DCMAKE_CXX_FLAGS=-std=gnu++11 -fPIC")
602 #:phases
603 (modify-phases %standard-phases
604 (add-after 'unpack 'disable-broken-test
605 (lambda _
606 ;; FIXME: One test fails. See
607 ;; https://github.com/flavio/qjson/issues/105
608 (substitute* "tests/scanner/testscanner.cpp"
609 (("QTest::newRow\\(\"too large exponential\"\\)" line)
610 (string-append "//" line)))
611 #t))
612 (add-before 'check 'render-offscreen
613 (lambda _ (setenv "QT_QPA_PLATFORM" "offscreen") #t)))))
614 (inputs
615 `(("qtbase" ,qtbase)))
616 (home-page "http://qjson.sourceforge.net")
617 (synopsis "Library that maps JSON data to QVariant objects")
618 (description "QJson is a Qt-based library that maps JSON data to
619 @code{QVariant} objects. JSON arrays will be mapped to @code{QVariantList}
620 instances, while JSON's objects will be mapped to @code{QVariantMap}.")
621 ;; Only version 2.1 of the license
622 (license l:lgpl2.1)))
623
624 (define-public krona-tools
625 (package
626 (name "krona-tools")
627 (version "2.7")
628 (source (origin
629 (method url-fetch)
630 (uri (string-append
631 "https://github.com/marbl/Krona/releases/download/v"
632 version "/KronaTools-" version ".tar"))
633 (sha256
634 (base32
635 "0wvgllcqscsfb4xc09y3fqhx8i38pmr4w55vjs5y79wx56n710iq"))))
636 (build-system perl-build-system)
637 (arguments
638 `(#:phases
639 (modify-phases %standard-phases
640 ;; There is no configure or build steps.
641 (delete 'configure)
642 (delete 'build)
643 ;; Install script "install.pl" expects the build directory to remain
644 ;; after installation, creating symlinks etc., so re-implement it
645 ;; here.
646 (replace 'install
647 (lambda* (#:key outputs #:allow-other-keys)
648 (let ((bin (string-append (assoc-ref outputs "out") "/bin"))
649 (perl (string-append (assoc-ref outputs "out")
650 "/lib/perl5/site_perl/krona-tools/lib")))
651 (mkdir-p bin)
652 (for-each
653 (lambda (script)
654 (let* ((executable (string-append "scripts/" script ".pl")))
655 ;; Prefix executables with 'kt' as install script does.
656 (copy-file executable (string-append bin "/kt" script))))
657 '("ClassifyBLAST"
658 "GetContigMagnitudes"
659 "GetLCA"
660 "GetTaxIDFromAcc"
661 "GetTaxInfo"
662 "ImportBLAST"
663 "ImportDiskUsage"
664 "ImportEC"
665 "ImportFCP"
666 "ImportGalaxy"
667 "ImportKrona"
668 "ImportMETAREP-BLAST"
669 "ImportMETAREP-EC"
670 "ImportMGRAST"
671 "ImportPhymmBL"
672 "ImportRDP"
673 "ImportRDPComparison"
674 "ImportTaxonomy"
675 "ImportText"
676 "ImportXML"))
677 (for-each
678 (lambda (directory)
679 (copy-recursively directory
680 (string-append perl "/../" directory)))
681 (list "data" "img" "taxonomy" "src"))
682 (install-file "lib/KronaTools.pm" perl))))
683 (add-after 'install 'wrap-program
684 (lambda* (#:key inputs outputs #:allow-other-keys)
685 (let* ((out (assoc-ref outputs "out"))
686 (path (getenv "PERL5LIB")))
687 (for-each
688 (lambda (executable)
689 (wrap-program executable
690 `("PERL5LIB" ":" prefix
691 (,(string-append out "/lib/perl5/site_perl/krona-tools/lib")))))
692 (find-files (string-append out "/bin/") ".*")))))
693 (delete 'check)
694 (add-after 'wrap-program 'check
695 (lambda* (#:key inputs outputs #:allow-other-keys)
696 (with-directory-excursion "data"
697 (zero? (system* (string-append (assoc-ref outputs "out") "/bin/ktImportText")
698 "ec.tsv"))))))))
699 (inputs
700 `(("perl" ,perl)))
701 (home-page "https://github.com/marbl/Krona/wiki")
702 (synopsis "Hierarchical data exploration with zoomable HTML5 pie charts")
703 (description
704 "Krona is a flexible tool for exploring the relative proportions of
705 hierarchical data, such as metagenomic classifications, using a radial,
706 space-filling display. It is implemented using HTML5 and JavaScript, allowing
707 charts to be explored locally or served over the Internet, requiring only a
708 current version of any major web browser.")
709 (license l:bsd-3)))
710
711 (define-public rapidjson
712 (package
713 (name "rapidjson")
714 (version "1.1.0")
715 (source (origin
716 (method url-fetch)
717 (uri (string-append
718 "https://github.com/miloyip/rapidjson/archive/v"
719 version ".tar.gz"))
720 (file-name (string-append name "-" version ".tar.gz"))
721 (sha256
722 (base32
723 "13nrpvw8f1wx0ga7svbzld7pgrv8l172nangpipnj7jaf0lysz5z"))))
724 (build-system cmake-build-system)
725 (arguments
726 `(,@(if (string-prefix? "aarch64" (or (%current-target-system)
727 (%current-system)))
728 '(#:phases
729 (modify-phases %standard-phases
730 (add-after 'unpack 'patch-aarch-march-detection
731 (lambda _
732 (substitute* (find-files "." "^CMakeLists\\.txt$")
733 (("native") "armv8-a"))
734 #t))))
735 '())))
736 (home-page "https://github.com/miloyip/rapidjson")
737 (synopsis "JSON parser/generator for C++ with both SAX/DOM style API")
738 (description
739 "RapidJSON is a fast JSON parser/generator for C++ with both SAX/DOM
740 style API.")
741 (license l:expat)))
742
743 (define-public libyajl
744 (package
745 (name "libyajl")
746 (version "2.1.0")
747 (source (origin
748 (method url-fetch)
749 (uri (string-append "https://github.com/lloyd/yajl/"
750 "archive/" version ".tar.gz"))
751 (file-name (string-append name "-" version ".tar.gz"))
752 (sha256
753 (base32
754 "0nmcqpaiq4pv7dymyg3n3jsd57yhp5npxl26a1hzw3m3lmj37drz"))))
755 (build-system cmake-build-system)
756 (home-page "https://lloyd.github.io/yajl/")
757 (synopsis "C library for parsing JSON")
758 (description
759 "Yet Another JSON Library (YAJL) is a small event-driven (SAX-style) JSON
760 parser written in ANSI C and a small validating JSON generator.")
761 (license l:isc)))
762
763 (define-public libwebsockets
764 (package
765 (name "libwebsockets")
766 (version "1.3")
767 (source (origin
768 ;; The project does not publish tarballs, so we have to take
769 ;; things from Git.
770 (method git-fetch)
771 (uri (git-reference
772 (url "https://github.com/warmcat/libwebsockets.git")
773 (commit (string-append "v" version
774 "-chrome37-firefox30"))))
775 (sha256
776 (base32
777 "12fqh2d2098mgf0ls19p9lzibpsqhv7mc5rn1yvrbfnazmcr40g4"))
778 (file-name (string-append name "-" version))))
779
780 (build-system cmake-build-system)
781 (arguments
782 ;; XXX: The thing lacks a 'make test' target, because CMakeLists.txt
783 ;; doesn't use 'add_test', and it's unclear how to run the test suite.
784 '(#:tests? #f))
785
786 (native-inputs `(("perl" ,perl))) ; to build the HTML doc
787 (inputs `(("zlib" ,zlib)
788 ("openssl" ,openssl)))
789 (synopsis "WebSockets library written in C")
790 (description
791 "Libwebsockets is a library that allows C programs to establish client
792 and server WebSockets connections---a protocol layered above HTTP that allows
793 for efficient socket-like bidirectional reliable communication channels.")
794 (home-page "http://libwebsockets.org/")
795
796 ;; This is LGPLv2.1-only with extra exceptions specified in 'LICENSE'.
797 (license l:lgpl2.1)))
798
799 (define-public libpsl
800 (package
801 (name "libpsl")
802 (version "0.20.1")
803 (source (origin
804 (method url-fetch)
805 (uri (string-append "https://github.com/rockdaboot/libpsl/"
806 "releases/download/libpsl-" version
807 "/libpsl-" version ".tar.gz"))
808 (sha256
809 (base32
810 "17r18y25ka2ck2ykfidbg4a7jpyzmkqwrzplgqjp7mwd2l9rc6cm"))))
811 (build-system gnu-build-system)
812 (native-inputs
813 `(("pkg-config" ,pkg-config)))
814 (inputs
815 `(("libidn2" ,libidn2)
816 ("libunistring" ,libunistring)
817 ("python-2" ,python-2)))
818 (home-page "https://github.com/rockdaboot/libpsl")
819 (synopsis "C library for the Publix Suffix List")
820 (description
821 "A \"public suffix\" is a domain name under which Internet users can
822 directly register own names.
823
824 Browsers and other web clients can use it to avoid privacy-leaking
825 \"supercookies\", avoid privacy-leaking \"super domain\" certificates, domain
826 highlighting parts of the domain in a user interface, and sorting domain lists
827 by site.
828
829 Libpsl has built-in PSL data for fast access, allows to load PSL data from
830 files, checks if a given domain is a public suffix, provides immediate cookie
831 domain verification, finds the longest public part of a given domain, finds
832 the shortest private part of a given domain, works with international
833 domains (UTF-8 and IDNA2008 Punycode), is thread-safe, and handles IDNA2008
834 UTS#46.")
835 (license l:x11)))
836
837 (define-public tidy
838 (package
839 (name "tidy")
840 (version "20091223")
841 (source (origin
842 (method cvs-fetch)
843 (uri (cvs-reference
844 (root-directory
845 ":pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy")
846 (module "tidy")
847 (revision "2009-12-23")))
848 (sha256
849 (base32
850 "14dsnmirjcrvwsffqp3as70qr6bbfaig2fv3zvs5g7005jrsbvpb"))
851 (patches (search-patches "tidy-CVE-2015-5522+5523.patch"))))
852 (build-system gnu-build-system)
853 (arguments
854 '(#:phases (modify-phases %standard-phases
855 (add-after 'unpack 'bootstrap
856 (lambda* (#:key inputs #:allow-other-keys)
857 ;; configure.in and Makefile.am aren't in the root of the
858 ;; source tree.
859 (copy-recursively "build/gnuauto" ".")
860 (setenv "AUTOMAKE" "automake --foreign")
861 (zero? (system* "autoreconf" "-vfi")))))))
862 (native-inputs
863 `(("automake" ,automake)
864 ("autoconf" ,autoconf)
865 ("libtool" ,libtool)))
866 (synopsis "HTML validator and tidier")
867 (description "HTML Tidy is a command-line tool and C library that can be
868 used to validate and fix HTML data.")
869 (home-page "http://tidy.sourceforge.net/")
870 (license (l:x11-style "file:///include/tidy.h"))))
871
872 (define-public tinyproxy
873 (package
874 (name "tinyproxy")
875 (version "1.8.4")
876 (source (origin
877 (method url-fetch)
878 (uri (string-append "https://github.com/tinyproxy/tinyproxy/"
879 "releases/download/" version "/tinyproxy-"
880 version ".tar.xz"))
881 (sha256
882 (base32
883 "002hi97687czhfkwsjkr174yvlp10224qi6gd5s53z230bgls7x4"))))
884 (build-system gnu-build-system)
885 (arguments
886 `(#:configure-flags
887 (list
888 ;; For the log file, etc.
889 "--localstatedir=/var")
890 #:phases
891 (modify-phases %standard-phases
892 (add-before 'build 'pre-build
893 (lambda* (#:key inputs #:allow-other-keys #:rest args)
894 ;; Uncommenting the next two lines may assist in debugging
895 ;; (substitute* "docs/man5/Makefile" (("a2x") "a2x -v"))
896 ;; (setenv "XML_DEBUG_CATALOG" "1")
897 #t)))))
898 ;; All of the below are used to generate the documentation
899 ;; (Should they be propagated inputs of asciidoc ??)
900 (native-inputs `(("asciidoc" ,asciidoc)))
901 (home-page "https://tinyproxy.github.io/")
902 (synopsis "Light-weight HTTP/HTTPS proxy daemon")
903 (description "Tinyproxy is a light-weight HTTP/HTTPS proxy
904 daemon. Designed from the ground up to be fast and yet small, it is an ideal
905 solution for use cases such as embedded deployments where a full featured HTTP
906 proxy is required, but the system resources for a larger proxy are
907 unavailable.")
908 (license l:gpl2+)))
909
910 (define-public polipo
911 (package
912 (name "polipo")
913 (version "1.1.1")
914 (source
915 (origin
916 (method url-fetch)
917 (uri (string-append
918 "http://www.pps.univ-paris-diderot.fr/~jch/software/files/polipo/polipo-"
919 version ".tar.gz"))
920 (sha256
921 (base32
922 "05g09sg9qkkhnc2mxldm1w1xkxzs2ylybkjzs28w8ydbjc3pand2"))))
923 (native-inputs `(("texinfo" ,texinfo)))
924 (build-system gnu-build-system)
925 (arguments
926 `(#:phases (modify-phases %standard-phases
927 (delete 'configure))
928 #:make-flags (let ((out (assoc-ref %outputs "out")))
929 (list (string-append "PREFIX=" out)
930 (string-append "LOCAL_ROOT="
931 out "/share/polipo/www")
932 "CC=gcc"))
933 ;; No 'check' target.
934 #:tests? #f))
935 (home-page "http://www.pps.univ-paris-diderot.fr/~jch/software/polipo/")
936 (synopsis "Small caching web proxy")
937 (description
938 "Polipo is a small caching web proxy (web cache, HTTP proxy, and proxy
939 server). It was primarily designed to be used by one person or a small group
940 of people.")
941 (license l:expat)))
942
943 (define-public websockify
944 (package
945 (name "websockify")
946 (version "0.8.0")
947 (source (origin
948 (method url-fetch)
949 (uri (string-append "https://github.com/novnc/websockify/archive/v"
950 version "/archive.tar.gz"))
951 (file-name (string-append name "-" version ".tar.gz"))
952 (sha256
953 (base32
954 "1kjq6gibsvbb6zx5gi8hgh7110x62pbwcqkwapf3k7s27w5y907h"))))
955 (build-system python-build-system)
956 (arguments
957 `(#:tests? #f)) ; FIXME: 2 out of 6 tests fail with "ImportError: No module
958 ; named 'stubout'". The tests can be run by replacing the check phase with
959 ; the command "python setup.py nosetests --verbosity=3".
960 (native-inputs `(; Required for tests:
961 ("python-mox3", python-mox3)
962 ("python-nose", python-nose)))
963 (propagated-inputs `(("python-numpy", python-numpy)))
964 (home-page "https://github.com/novnc/websockify")
965 (synopsis "WebSockets support for any application/server")
966 (description "Websockify translates WebSockets traffic to normal socket
967 traffic. Websockify accepts the WebSockets handshake, parses it, and then
968 begins forwarding traffic between the client and the target in both
969 directions.")
970 (license l:lgpl3)))
971
972 (define-public wwwoffle
973 (package
974 (name "wwwoffle")
975 (version "2.9j")
976 (source (origin
977 (method url-fetch)
978 (uri (string-append "https://www.gedanken.org.uk/software/"
979 "wwwoffle/download/wwwoffle-"
980 version ".tgz"))
981 (sha256
982 (base32
983 "1ihil1xq9dp21hf108khxbw6f3baq0w5c0j3af038y6lkmad4vdi"))))
984 (build-system gnu-build-system)
985 (arguments
986 `(#:configure-flags '("--with-gnutls")
987 #:tests? #f)) ; no test target
988 (native-inputs `(("flex" ,flex)))
989 (inputs `(("gnutls" ,gnutls)
990 ("libcrypt", libgcrypt)))
991 (home-page "https://www.gedanken.org.uk/software/wwwoffle/")
992 (synopsis "Caching web proxy optimized for intermittent internet links")
993 (description "WWWOFFLE is a proxy web server that is especially good for
994 intermittent internet links. It can cache HTTP, HTTPS, FTP, and finger
995 protocols, and supports browsing and requesting pages while offline, indexing,
996 modifying pages and incoming and outgoing headers, monitoring pages for
997 changes, and much more.")
998 (license l:gpl2+)))
999
1000 (define-public liboauth
1001 (package
1002 (name "liboauth")
1003 (version "1.0.3")
1004 (source (origin
1005 (method url-fetch)
1006 (uri (string-append "mirror://sourceforge/liboauth/liboauth-"
1007 version ".tar.gz"))
1008 (sha256
1009 (base32
1010 "07w1aq8y8wld43wmbk2q8134p3bfkp2vma78mmsfgw2jn1bh3xhd"))))
1011 (build-system gnu-build-system)
1012 (arguments '(#:configure-flags '("--enable-nss")))
1013 (native-inputs `(("pkg-config" ,pkg-config)))
1014 (propagated-inputs
1015 `(("curl" ,curl)
1016 ("nss" ,nss)))
1017 (home-page "https://sourceforge.net/projects/liboauth")
1018 (synopsis "C library implementing the OAuth API")
1019 (description
1020 "liboauth is a collection of C functions implementing the OAuth API.
1021 liboauth provides functions to escape and encode strings according to OAuth
1022 specifications and offers high-level functionality built on top to sign
1023 requests or verify signatures using either NSS or OpenSSL for calculating the
1024 hash/signatures.")
1025 ;; Source code may be distributed under either license.
1026 (license (list l:expat l:gpl2+))))
1027
1028 (define-public libyaml
1029 (package
1030 (name "libyaml")
1031 (version "0.1.6")
1032 (source
1033 (origin
1034 (method url-fetch)
1035 (uri (string-append
1036 "http://pyyaml.org/download/libyaml/yaml-"
1037 version ".tar.gz"))
1038 (patches (search-patches "libyaml-CVE-2014-9130.patch"))
1039 (sha256
1040 (base32
1041 "0j9731s5zjb8mjx7wzf6vh7bsqi38ay564x6s9nri2nh9cdrg9kx"))))
1042 (build-system gnu-build-system)
1043 (home-page "http://pyyaml.org/wiki/LibYAML")
1044 (synopsis "YAML 1.1 parser and emitter written in C")
1045 (description
1046 "LibYAML is a YAML 1.1 parser and emitter written in C.")
1047 (license l:expat)))
1048
1049 (define-public libquvi-scripts
1050 (package
1051 (name "libquvi-scripts")
1052 (version "0.4.21")
1053 (source
1054 (origin
1055 (method url-fetch)
1056 (uri (string-append
1057 "mirror://sourceforge/quvi/" (version-major+minor version) "/"
1058 name "/" name "-" version ".tar.xz"))
1059 (sha256
1060 (base32 "0d0giry6bb57pnidymvdl7i5x9bq3ljk3g4bs294hcr5mj3cq0kw"))))
1061 (build-system gnu-build-system)
1062 (home-page "http://quvi.sourceforge.net/")
1063 (synopsis "Media stream URL parser")
1064 (description "This package contains support scripts called by libquvi to
1065 parse media stream properties.")
1066 (license l:lgpl2.1+)))
1067
1068 (define-public libquvi
1069 (package
1070 (name "libquvi")
1071 (version "0.4.1")
1072 (source
1073 (origin
1074 (method url-fetch)
1075 (uri (string-append
1076 "mirror://sourceforge/quvi/" (version-major+minor version) "/" name "/"
1077 name "-" version ".tar.xz"))
1078 (sha256
1079 (base32 "00x9gbmzc5cns0gnfag0hsphcr3cb33vbbb9s7ppvvd6bxz2z1mm"))))
1080 (build-system gnu-build-system)
1081 (native-inputs `(("pkg-config" ,pkg-config)))
1082 (inputs
1083 `(("curl" ,curl)
1084 ("cyrus-sasl" ,cyrus-sasl)
1085 ("libquvi-scripts" ,libquvi-scripts)
1086 ("lua" ,lua-5.1)
1087 ("openssl" ,openssl)
1088 ("zlib" ,zlib)))
1089 (arguments
1090 ;; Lua provides no .pc file, so add CFLAGS/LIBS manually.
1091 '(#:configure-flags
1092 (let ((lua (assoc-ref %build-inputs "lua")))
1093 (list
1094 (string-append "liblua_CFLAGS=-I" lua "/include")
1095 (string-append "liblua_LIBS=-L" lua "/libs -llua")))))
1096 (home-page "http://quvi.sourceforge.net/")
1097 (synopsis "Media stream URL parser")
1098 (description "libquvi is a library with a C API for parsing media stream
1099 URLs and extracting their actual media files.")
1100 (license l:lgpl2.1+)))
1101
1102 (define-public quvi
1103 (package
1104 (name "quvi")
1105 (version "0.4.2")
1106 (source
1107 (origin
1108 (method url-fetch)
1109 (uri (string-append
1110 "mirror://sourceforge/" name "/" (version-major+minor version)
1111 "/" name "/" name "-" version ".tar.xz"))
1112 (sha256
1113 (base32 "09lhl6dv5zpryasx7yjslfrcdcqlsbwapvd5lg7w6sm5x5n3k8ci"))))
1114 (build-system gnu-build-system)
1115 (native-inputs `(("pkg-config" ,pkg-config)))
1116 (inputs
1117 `(("curl" ,curl)
1118 ("libquvi" ,libquvi)))
1119 (home-page "http://quvi.sourceforge.net/")
1120 (synopsis "Media stream URL parser")
1121 (description "quvi is a command-line-tool suite to extract media files
1122 from streaming URLs. It is a command-line wrapper for the libquvi library.")
1123 (license l:lgpl2.1+)))
1124
1125 (define-public serf
1126 (package
1127 (name "serf")
1128 (version "1.3.9")
1129 (source
1130 (origin
1131 (method url-fetch)
1132 (uri (string-append "https://archive.apache.org/dist/serf/serf-"
1133 version ".tar.bz2"))
1134 (sha256
1135 (base32 "1k47gbgpp52049andr28y28nbwh9m36bbb0g8p0aka3pqlhjv72l"))))
1136 (build-system scons-build-system)
1137 (propagated-inputs
1138 `(("apr" ,apr)
1139 ("apr-util" ,apr-util)
1140 ("openssl" ,openssl)))
1141 (inputs
1142 `(;; TODO: Fix build with gss.
1143 ;;("gss" ,gss)
1144 ("zlib" ,zlib)))
1145 (arguments
1146 `(#:scons ,scons-python2
1147 #:scons-flags (list (string-append "APR=" (assoc-ref %build-inputs "apr"))
1148 (string-append "APU=" (assoc-ref %build-inputs "apr-util"))
1149 (string-append "OPENSSL=" (assoc-ref %build-inputs "openssl"))
1150 ;; (string-append "GSSAPI=" (assoc-ref %build-inputs "gss"))
1151 (string-append "ZLIB=" (assoc-ref %build-inputs "zlib"))
1152 (string-append "PREFIX=" %output))
1153 #:phases
1154 (modify-phases %standard-phases
1155 (add-after 'unpack 'scons-propagate-environment
1156 (lambda _
1157 ;; By design, SCons does not, by default, propagate
1158 ;; environment variables to subprocesses. See:
1159 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
1160 ;; Here, we modify the SConstruct file to arrange for
1161 ;; environment variables to be propagated.
1162 (substitute* "SConstruct"
1163 (("^env = Environment\\(")
1164 "env = Environment(ENV=os.environ, "))))
1165 (add-before 'check 'disable-broken-tests
1166 (lambda _
1167 ;; These tests rely on SSL certificates that expired 2017-04-18.
1168 ;; While there are newer certs available upstream, we don't want
1169 ;; this package to suddenly "expire" some time in the future.
1170 ;; https://bugs.gnu.org/26671
1171 (let ((broken-tests
1172 '("test_ssl_trust_rootca"
1173 "test_ssl_certificate_chain_with_anchor"
1174 "test_ssl_certificate_chain_all_from_server"
1175 "test_ssl_no_servercert_callback_allok"
1176 "test_ssl_large_response"
1177 "test_ssl_large_request"
1178 "test_ssl_client_certificate"
1179 "test_ssl_future_server_cert"
1180 "test_setup_ssltunnel"
1181 "test_ssltunnel_basic_auth"
1182 "test_ssltunnel_basic_auth_server_has_keepalive_off"
1183 "test_ssltunnel_basic_auth_proxy_has_keepalive_off"
1184 "test_ssltunnel_basic_auth_proxy_close_conn_on_200resp"
1185 "test_ssltunnel_digest_auth")))
1186 (for-each
1187 (lambda (test)
1188 (substitute* "test/test_context.c"
1189 (((string-append "SUITE_ADD_TEST\\(suite, " test "\\);")) "")))
1190 broken-tests)
1191 #t))))))
1192 (home-page "https://serf.apache.org/")
1193 (synopsis "High-performance asynchronous HTTP client library")
1194 (description
1195 "serf is a C-based HTTP client library built upon the Apache Portable
1196 Runtime (APR) library. It multiplexes connections, running the read/write
1197 communication asynchronously. Memory copies and transformations are kept to a
1198 minimum to provide high performance operation.")
1199 ;; Most of the code is covered by the Apache License, Version 2.0, but the
1200 ;; bundled CuTest framework uses a different non-copyleft license.
1201 (license (list l:asl2.0 (l:non-copyleft "file://test/CuTest-README.txt")))))
1202
1203 (define-public sassc
1204 ;; libsass must be statically linked and it isn't included in the sassc
1205 ;; release tarballs, hence this odd package recipe.
1206 (let* ((version "3.4.5")
1207 (libsass
1208 (origin
1209 (method url-fetch)
1210 (uri (string-append
1211 "https://github.com/sass/libsass/archive/"
1212 version ".tar.gz"))
1213 (file-name (string-append "libsass-" version ".tar.gz"))
1214 (sha256
1215 (base32
1216 "1j22138l5ymqjfj5zan9d2hipa3ahjmifgpjahqy1smlg5sb837x")))))
1217 (package
1218 (name "sassc")
1219 (version version)
1220 (source (origin
1221 (method url-fetch)
1222 (uri (string-append "https://github.com/sass/sassc/archive/"
1223 version ".tar.gz"))
1224 (file-name (string-append "sassc-" version ".tar.gz"))
1225 (sha256
1226 (base32
1227 "1xk4kmmvziz9sal3swpqa10q0s289xjpcz8aggmly8mvxvmngsi9"))))
1228 (build-system gnu-build-system)
1229 (arguments
1230 `(#:make-flags
1231 (list "CC=gcc"
1232 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1233 #:test-target "test"
1234 ;; FIXME: "make test" rebuilds the application and gets lost in a
1235 ;; non-existing directory.
1236 #:tests? #f
1237 #:phases
1238 (modify-phases %standard-phases
1239 (delete 'configure)
1240 (add-after 'unpack 'unpack-libsass-and-set-path
1241 (lambda* (#:key inputs #:allow-other-keys)
1242 (and (zero? (system* "tar" "xvf" (assoc-ref inputs "libsass")))
1243 (begin
1244 (setenv "SASS_LIBSASS_PATH"
1245 (string-append (getcwd) "/libsass-" ,version))
1246 #t)))))))
1247 (inputs
1248 `(("libsass" ,libsass)))
1249 (synopsis "CSS pre-processor")
1250 (description "SassC is a compiler written in C for the CSS pre-processor
1251 language known as SASS.")
1252 (home-page "http://sass-lang.com/libsass")
1253 (license l:expat))))
1254
1255 \f
1256 (define-public perl-apache-logformat-compiler
1257 (package
1258 (name "perl-apache-logformat-compiler")
1259 (version "0.33")
1260 (source
1261 (origin
1262 (method url-fetch)
1263 (uri (string-append "mirror://cpan/authors/id/K/KA/KAZEBURO/"
1264 "Apache-LogFormat-Compiler-" version ".tar.gz"))
1265 (sha256
1266 (base32
1267 "17blk3zhp05azgypn25ydxf3d7fyfgr9bxyiv7xkchhqma96vwqv"))))
1268 (build-system perl-build-system)
1269 (native-inputs
1270 `(("perl-http-message" ,perl-http-message)
1271 ("perl-module-build" ,perl-module-build)
1272 ("perl-test-mocktime" ,perl-test-mocktime)
1273 ("perl-try-tiny" ,perl-try-tiny)
1274 ("perl-uri" ,perl-uri)))
1275 (propagated-inputs
1276 `(("perl-posix-strftime-compiler" ,perl-posix-strftime-compiler)))
1277 (arguments `(#:tests? #f)) ;TODO: Timezone test failures
1278 (home-page "http://search.cpan.org/dist/Apache-LogFormat-Compiler")
1279 (synopsis "Compile a log format string to perl-code")
1280 (description "This module provides methods to compile a log format string
1281 to perl-code, for faster generation of access_log lines.")
1282 (license l:perl-license)))
1283
1284 (define-public perl-authen-sasl
1285 (package
1286 (name "perl-authen-sasl")
1287 (version "2.16")
1288 (source
1289 (origin
1290 (method url-fetch)
1291 (uri (string-append "mirror://cpan/authors/id/G/GB/GBARR/"
1292 "Authen-SASL-" version ".tar.gz"))
1293 (sha256
1294 (base32
1295 "02afhlrdq5hh5g8b32fa79fqq5i76qzwfqqvfi9zi57h31szl536"))))
1296 (build-system perl-build-system)
1297 (arguments
1298 '(#:phases
1299 (modify-phases %standard-phases
1300 (add-after 'unpack 'set-env
1301 ;; Fix the build with Perl 5.26.0. Try removing this phase for later
1302 ;; versions of perl-authen-sasl.
1303 (lambda _ (setenv "PERL_USE_UNSAFE_INC" "1") #t)))))
1304 (propagated-inputs
1305 `(("perl-digest-hmac" ,perl-digest-hmac)
1306 ("perl-gssapi" ,perl-gssapi)))
1307 (home-page "http://search.cpan.org/dist/Authen-SASL")
1308 (synopsis "SASL authentication framework")
1309 (description "Authen::SASL provides an SASL authentication framework.")
1310 (license l:perl-license)))
1311
1312 (define-public perl-catalyst-action-renderview
1313 (package
1314 (name "perl-catalyst-action-renderview")
1315 (version "0.16")
1316 (source
1317 (origin
1318 (method url-fetch)
1319 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1320 "Catalyst-Action-RenderView-"
1321 version ".tar.gz"))
1322 (sha256
1323 (base32
1324 "0j1rrld13cjk7ks92b5hv3xw4rfm2lvmksb4rlzd8mx0a0wj0rc5"))))
1325 (build-system perl-build-system)
1326 (native-inputs
1327 `(("perl-http-request-ascgi" ,perl-http-request-ascgi)
1328 ("perl-module-install" ,perl-module-install)))
1329 (propagated-inputs
1330 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1331 ("perl-data-visitor" ,perl-data-visitor)
1332 ("perl-mro-compat" ,perl-mro-compat)))
1333 (home-page "http://search.cpan.org/dist/Catalyst-Action-RenderView")
1334 (synopsis "Sensible default Catalyst action")
1335 (description "This Catalyst action implements a sensible default end
1336 action, which will forward to the first available view.")
1337 (license l:perl-license)))
1338
1339 (define-public perl-catalyst-action-rest
1340 (package
1341 (name "perl-catalyst-action-rest")
1342 (version "1.20")
1343 (source (origin
1344 (method url-fetch)
1345 (uri (string-append "mirror://cpan/authors/id/J/JJ/JJNAPIORK/"
1346 "Catalyst-Action-REST-" version ".tar.gz"))
1347 (sha256
1348 (base32
1349 "1mpa64p61f3dp24xnhdraswch4sqj5vyv1iivcvvh5h0xi0haiy0"))))
1350 (build-system perl-build-system)
1351 (native-inputs
1352 `(("perl-test-requires" ,perl-test-requires)
1353 ("perl-module-install" ,perl-module-install)))
1354 (propagated-inputs
1355 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1356 ("perl-class-inspector" ,perl-class-inspector)
1357 ("perl-config-general" ,perl-config-general)
1358 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
1359 ("perl-libwww" ,perl-libwww)
1360 ("perl-moose" ,perl-moose)
1361 ("perl-mro-compat" ,perl-mro-compat)
1362 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1363 ("perl-params-validate" ,perl-params-validate)
1364 ("perl-uri-find" ,perl-uri-find)
1365 ("perl-xml-simple" ,perl-xml-simple)))
1366 (home-page "http://search.cpan.org/dist/Catalyst-Action-REST")
1367 (synopsis "Automated REST Method Dispatching")
1368 (description "This Action handles doing automatic method dispatching for
1369 REST requests. It takes a normal Catalyst action, and changes the dispatch to
1370 append an underscore and method name. First it will try dispatching to an
1371 action with the generated name, and failing that it will try to dispatch to a
1372 regular method.")
1373 (license l:perl-license)))
1374
1375 (define-public perl-catalyst-authentication-store-dbix-class
1376 (package
1377 (name "perl-catalyst-authentication-store-dbix-class")
1378 (version "0.1506")
1379 (source
1380 (origin
1381 (method url-fetch)
1382 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1383 "Catalyst-Authentication-Store-DBIx-Class-"
1384 version ".tar.gz"))
1385 (sha256
1386 (base32
1387 "0i5ja7690fs9nhxcij6lw51j804sm8s06m5mvk1n8pi8jljrymvw"))))
1388 (build-system perl-build-system)
1389 (native-inputs
1390 `(("perl-catalyst-plugin-authorization-roles"
1391 ,perl-catalyst-plugin-authorization-roles)
1392 ("perl-catalyst-plugin-session-state-cookie"
1393 ,perl-catalyst-plugin-session-state-cookie)
1394 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
1395 ("perl-module-install" ,perl-module-install)
1396 ("perl-test-www-mechanize-catalyst" ,perl-test-www-mechanize-catalyst)))
1397 (propagated-inputs
1398 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1399 ("perl-catalyst-plugin-authentication"
1400 ,perl-catalyst-plugin-authentication)
1401 ("perl-dbix-class" ,perl-dbix-class)
1402 ("perl-catalyst-model-dbic-schema" ,perl-catalyst-model-dbic-schema)))
1403 (home-page
1404 "http://search.cpan.org/dist/Catalyst-Authentication-Store-DBIx-Class")
1405 (synopsis "Storage class for Catalyst authentication using DBIx::Class")
1406 (description "The Catalyst::Authentication::Store::DBIx::Class class
1407 provides access to authentication information stored in a database via
1408 DBIx::Class.")
1409 (license l:perl-license)))
1410
1411 (define-public perl-catalyst-component-instancepercontext
1412 (package
1413 (name "perl-catalyst-component-instancepercontext")
1414 (version "0.001001")
1415 (source
1416 (origin
1417 (method url-fetch)
1418 (uri (string-append "mirror://cpan/authors/id/G/GR/GRODITI/"
1419 "Catalyst-Component-InstancePerContext-"
1420 version ".tar.gz"))
1421 (sha256
1422 (base32
1423 "0wfj4vnn2cvk6jh62amwlg050p37fcwdgrn9amcz24z6w4qgjqvz"))))
1424 (build-system perl-build-system)
1425 (native-inputs
1426 `(("perl-module-install" ,perl-module-install)))
1427 (propagated-inputs
1428 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1429 ("perl-moose" ,perl-moose)))
1430 (home-page
1431 "http://search.cpan.org/dist/Catalyst-Component-InstancePerContext")
1432 (synopsis "Create only one instance of Moose component per context")
1433 (description "Catalyst::Component::InstancePerContext returns a new
1434 instance of a component on each request.")
1435 (license l:perl-license)))
1436
1437 (define-public perl-catalyst-devel
1438 (package
1439 (name "perl-catalyst-devel")
1440 (version "1.39")
1441 (source
1442 (origin
1443 (method url-fetch)
1444 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1445 "Catalyst-Devel-" version ".tar.gz"))
1446 (sha256
1447 (base32
1448 "12m50bbkggjmpxihv3wnvr0g2qng0zwhlzi5ygppjz8wh2x73qxw"))))
1449 (build-system perl-build-system)
1450 (native-inputs
1451 `(("perl-test-fatal" ,perl-test-fatal)))
1452 (propagated-inputs
1453 `(("perl-catalyst-action-renderview" ,perl-catalyst-action-renderview)
1454 ("perl-catalyst-plugin-configloader" ,perl-catalyst-plugin-configloader)
1455 ("perl-catalyst-plugin-static-simple" ,perl-catalyst-plugin-static-simple)
1456 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1457 ("perl-config-general" ,perl-config-general)
1458 ("perl-file-changenotify" ,perl-file-changenotify)
1459 ("perl-file-copy-recursive" ,perl-file-copy-recursive)
1460 ("perl-file-sharedir" ,perl-file-sharedir)
1461 ("perl-module-install" ,perl-module-install)
1462 ("perl-moose" ,perl-moose)
1463 ("perl-moosex-emulate-class-accessor-fast"
1464 ,perl-moosex-emulate-class-accessor-fast)
1465 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1466 ("perl-namespace-clean" ,perl-namespace-clean)
1467 ("perl-path-class" ,perl-path-class)
1468 ("perl-template-toolkit" ,perl-template-toolkit)))
1469 (home-page "http://search.cpan.org/dist/Catalyst-Devel")
1470 (synopsis "Catalyst Development Tools")
1471 (description "The Catalyst-Devel distribution includes a variety of
1472 modules useful for the development of Catalyst applications, but not required
1473 to run them. Catalyst-Devel includes the Catalyst::Helper system, which
1474 autogenerates scripts and tests; Module::Install::Catalyst, a Module::Install
1475 extension for Catalyst; and requirements for a variety of development-related
1476 modules.")
1477 (license l:perl-license)))
1478
1479 (define-public perl-catalyst-dispatchtype-regex
1480 (package
1481 (name "perl-catalyst-dispatchtype-regex")
1482 (version "5.90035")
1483 (source
1484 (origin
1485 (method url-fetch)
1486 (uri (string-append "mirror://cpan/authors/id/M/MG/MGRIMES/"
1487 "Catalyst-DispatchType-Regex-" version ".tar.gz"))
1488 (sha256
1489 (base32
1490 "06jq1lmpq88rmp9zik5gqczg234xac0hiyc3l698iif7zsgcyb80"))))
1491 (build-system perl-build-system)
1492 (native-inputs
1493 `(("perl-module-build" ,perl-module-build) ;needs Module::Build >= 0.4004
1494 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1495 ("perl-catalyst-runtime" ,perl-catalyst-runtime)))
1496 (propagated-inputs
1497 `(("perl-moose" ,perl-moose)
1498 ("perl-text-simpletable" ,perl-text-simpletable)))
1499 (home-page "http://search.cpan.org/dist/Catalyst-DispatchType-Regex")
1500 (synopsis "Regex DispatchType for Catalyst")
1501 (description "Dispatch type managing path-matching behaviour using
1502 regexes. Regex dispatch types have been deprecated and removed from Catalyst
1503 core. It is recommend that you use Chained methods or other techniques
1504 instead. As part of the refactoring, the dispatch priority of Regex vs Regexp
1505 vs LocalRegex vs LocalRegexp may have changed. Priority is now influenced by
1506 when the dispatch type is first seen in your application.")
1507 (license l:perl-license)))
1508
1509 (define-public perl-catalyst-model-dbic-schema
1510 (package
1511 (name "perl-catalyst-model-dbic-schema")
1512 (version "0.65")
1513 (source
1514 (origin
1515 (method url-fetch)
1516 (uri (string-append "mirror://cpan/authors/id/G/GB/GBJK/"
1517 "Catalyst-Model-DBIC-Schema-"
1518 version ".tar.gz"))
1519 (sha256
1520 (base32
1521 "1spfjcjc0b9dv3k2gbanqj1m1cqzyxb32p76dhdwizzpbvpi3a96"))))
1522 (build-system perl-build-system)
1523 (native-inputs
1524 `(("perl-dbd-sqlite" ,perl-dbd-sqlite)
1525 ("perl-module-install" ,perl-module-install)
1526 ("perl-test-exception" ,perl-test-exception)
1527 ("perl-test-requires" ,perl-test-requires)))
1528 (propagated-inputs
1529 `(("perl-carp-clan" ,perl-carp-clan)
1530 ("perl-catalyst-component-instancepercontext"
1531 ,perl-catalyst-component-instancepercontext)
1532 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1533 ("perl-catalystx-component-traits" ,perl-catalystx-component-traits)
1534 ("perl-dbix-class" ,perl-dbix-class)
1535 ("perl-dbix-class-cursor-cached" ,perl-dbix-class-cursor-cached)
1536 ("perl-dbix-class-schema-loader" ,perl-dbix-class-schema-loader)
1537 ("perl-hash-merge" ,perl-hash-merge)
1538 ("perl-list-moreutils" ,perl-list-moreutils)
1539 ("perl-module-runtime" ,perl-module-runtime)
1540 ("perl-moose" ,perl-moose)
1541 ("perl-moosex-markasmethods" ,perl-moosex-markasmethods)
1542 ("perl-moosex-nonmoose" ,perl-moosex-nonmoose)
1543 ("perl-moosex-types" ,perl-moosex-types)
1544 ("perl-moosex-types-loadableclass" ,perl-moosex-types-loadableclass)
1545 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1546 ("perl-namespace-clean" ,perl-namespace-clean)
1547 ("perl-tie-ixhash" ,perl-tie-ixhash)
1548 ("perl-try-tiny" ,perl-try-tiny)))
1549 (home-page "http://search.cpan.org/dist/Catalyst-Model-DBIC-Schema")
1550 (synopsis "DBIx::Class::Schema Model Class")
1551 (description "This is a Catalyst Model for DBIx::Class::Schema-based
1552 Models.")
1553 (license l:perl-license)))
1554
1555 (define-public perl-catalyst-plugin-accesslog
1556 (package
1557 (name "perl-catalyst-plugin-accesslog")
1558 (version "1.10")
1559 (source
1560 (origin
1561 (method url-fetch)
1562 (uri (string-append "mirror://cpan/authors/id/A/AR/ARODLAND/"
1563 "Catalyst-Plugin-AccessLog-" version ".tar.gz"))
1564 (sha256
1565 (base32
1566 "0811rj45q4v2y8wka3wb9d5m4vbyhcmkvddf2wz4x69awzjbhgc7"))))
1567 (build-system perl-build-system)
1568 (propagated-inputs
1569 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1570 ("perl-datetime" ,perl-datetime)
1571 ("perl-moose" ,perl-moose)
1572 ("perl-namespace-autoclean" ,perl-namespace-autoclean)))
1573 (home-page "http://search.cpan.org/dist/Catalyst-Plugin-AccessLog")
1574 (synopsis "Request logging from within Catalyst")
1575 (description "This Catalyst plugin enables you to create \"access logs\"
1576 from within a Catalyst application instead of requiring a webserver to do it
1577 for you. It will work even with Catalyst debug logging turned off.")
1578 (license l:perl-license)))
1579
1580 (define-public perl-catalyst-plugin-authentication
1581 (package
1582 (name "perl-catalyst-plugin-authentication")
1583 (version "0.10023")
1584 (source
1585 (origin
1586 (method url-fetch)
1587 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1588 "Catalyst-Plugin-Authentication-"
1589 version ".tar.gz"))
1590 (sha256
1591 (base32
1592 "0v6hb4r1wv3djrnqvnjcn3xx1scgqzx8nyjdg9lfc1ybvamrl0rn"))))
1593 (build-system perl-build-system)
1594 (native-inputs
1595 `(("perl-module-install" ,perl-module-install)))
1596 (propagated-inputs
1597 `(("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
1598 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1599 ("perl-class-inspector" ,perl-class-inspector)
1600 ("perl-moose" ,perl-moose)
1601 ("perl-moosex-emulate-class-accessor-fast"
1602 ,perl-moosex-emulate-class-accessor-fast)
1603 ("perl-mro-compat" ,perl-mro-compat)
1604 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1605 ("perl-string-rewriteprefix" ,perl-string-rewriteprefix)
1606 ("perl-test-exception" ,perl-test-exception)
1607 ("perl-try-tiny" ,perl-try-tiny)))
1608 (home-page "http://search.cpan.org/dist/Catalyst-Plugin-Authentication")
1609 (synopsis "Infrastructure plugin for the Catalyst authentication framework")
1610 (description "The authentication plugin provides generic user support for
1611 Catalyst apps. It is the basis for both authentication (checking the user is
1612 who they claim to be), and authorization (allowing the user to do what the
1613 system authorises them to do).")
1614 (license l:perl-license)))
1615
1616 (define-public perl-catalyst-plugin-authorization-roles
1617 (package
1618 (name "perl-catalyst-plugin-authorization-roles")
1619 (version "0.09")
1620 (source
1621 (origin
1622 (method url-fetch)
1623 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1624 "Catalyst-Plugin-Authorization-Roles-"
1625 version ".tar.gz"))
1626 (sha256
1627 (base32
1628 "0l83lkwmq0lngwh8b1rv3r719pn8w1gdbyhjqm74rnd0wbjl8h7f"))))
1629 (build-system perl-build-system)
1630 (native-inputs
1631 `(("perl-module-install" ,perl-module-install)
1632 ("perl-test-exception" ,perl-test-exception)))
1633 (propagated-inputs
1634 `(("perl-catalyst-plugin-authentication"
1635 ,perl-catalyst-plugin-authentication)
1636 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1637 ("perl-set-object" ,perl-set-object)
1638 ("perl-universal-isa" ,perl-universal-isa)))
1639 (home-page
1640 "http://search.cpan.org/dist/Catalyst-Plugin-Authorization-Roles")
1641 (synopsis "Role-based authorization for Catalyst")
1642 (description "Catalyst::Plugin::Authorization::Roles provides role-based
1643 authorization for Catalyst based on Catalyst::Plugin::Authentication.")
1644 (license l:perl-license)))
1645
1646 (define-public perl-catalyst-plugin-captcha
1647 (package
1648 (name "perl-catalyst-plugin-captcha")
1649 (version "0.04")
1650 (source
1651 (origin
1652 (method url-fetch)
1653 (uri (string-append "mirror://cpan/authors/id/D/DI/DIEGOK/"
1654 "Catalyst-Plugin-Captcha-" version ".tar.gz"))
1655 (sha256
1656 (base32
1657 "0llyj3v5nx9cx46jdbbvxf1lc9s9cxq5ml22xmx3wkb201r5qgaa"))))
1658 (build-system perl-build-system)
1659 (propagated-inputs
1660 `(("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
1661 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1662 ("perl-gd-securityimage" ,perl-gd-securityimage)
1663 ("perl-http-date" ,perl-http-date)))
1664 (home-page "http://search.cpan.org/dist/Catalyst-Plugin-Captcha")
1665 (synopsis "Captchas for Catalyst")
1666 (description "This plugin creates and validates Captcha images for
1667 Catalyst.")
1668 (license l:perl-license)))
1669
1670 (define-public perl-catalyst-plugin-configloader
1671 (package
1672 (name "perl-catalyst-plugin-configloader")
1673 (version "0.34")
1674 (source
1675 (origin
1676 (method url-fetch)
1677 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1678 "Catalyst-Plugin-ConfigLoader-"
1679 version ".tar.gz"))
1680 (sha256
1681 (base32
1682 "19j7p4v7mbx6wrmpvmrnd974apx7hdl2s095ga3b9zcbdrl77h5q"))))
1683 (build-system perl-build-system)
1684 (native-inputs
1685 `(("perl-path-class" ,perl-path-class)
1686 ("perl-module-install" ,perl-module-install)))
1687 (propagated-inputs
1688 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1689 ("perl-config-any" ,perl-config-any)
1690 ("perl-data-visitor" ,perl-data-visitor)
1691 ("perl-mro-compat" ,perl-mro-compat)))
1692 (home-page "http://search.cpan.org/dist/Catalyst-Plugin-ConfigLoader")
1693 (synopsis "Load config files of various types")
1694 (description "This module will attempt to load find and load configuration
1695 files of various types. Currently it supports YAML, JSON, XML, INI and Perl
1696 formats.")
1697 (license l:perl-license)))
1698
1699 (define-public perl-catalyst-plugin-session
1700 (package
1701 (name "perl-catalyst-plugin-session")
1702 (version "0.40")
1703 (source
1704 (origin
1705 (method url-fetch)
1706 (uri (string-append "mirror://cpan/authors/id/J/JJ/JJNAPIORK/"
1707 "Catalyst-Plugin-Session-" version ".tar.gz"))
1708 (sha256
1709 (base32
1710 "171vi9xcl775scjaw4fcfdmqvz0rb1nr0xxg2gb3ng6bjzpslhgv"))))
1711 (build-system perl-build-system)
1712 (native-inputs
1713 `(("perl-module-install" ,perl-module-install)
1714 ("perl-test-deep" ,perl-test-deep)
1715 ("perl-test-exception" ,perl-test-exception)))
1716 (propagated-inputs
1717 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1718 ("perl-moose" ,perl-moose)
1719 ("perl-moosex-emulate-class-accessor-fast"
1720 ,perl-moosex-emulate-class-accessor-fast)
1721 ("perl-mro-compat" ,perl-mro-compat)
1722 ("perl-namespace-clean" ,perl-namespace-clean)
1723 ("perl-object-signature" ,perl-object-signature)
1724 ("perl-test-www-mechanize-psgi" ,perl-test-www-mechanize-psgi)))
1725 (home-page "http://search.cpan.org/dist/Catalyst-Plugin-Session")
1726 (synopsis "Catalyst generic session plugin")
1727 (description "This plugin links the two pieces required for session
1728 management in web applications together: the state, and the store.")
1729 (license l:perl-license)))
1730
1731 (define-public perl-catalyst-plugin-session-state-cookie
1732 (package
1733 (name "perl-catalyst-plugin-session-state-cookie")
1734 (version "0.17")
1735 (source
1736 (origin
1737 (method url-fetch)
1738 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTROUT/"
1739 "Catalyst-Plugin-Session-State-Cookie-"
1740 version ".tar.gz"))
1741 (sha256
1742 (base32
1743 "1rvxbfnpf9x2pc2zgpazlcgdlr2dijmxgmcs0m5nazs0w6xikssb"))))
1744 (build-system perl-build-system)
1745 (native-inputs
1746 `(("perl-module-install" ,perl-module-install)))
1747 (propagated-inputs
1748 `(("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
1749 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1750 ("perl-moose" ,perl-moose)
1751 ("perl-mro-compat" ,perl-mro-compat)
1752 ("perl-namespace-autoclean" ,perl-namespace-autoclean)))
1753 (home-page
1754 "http://search.cpan.org/dist/Catalyst-Plugin-Session-State-Cookie")
1755 (synopsis "Maintain session IDs using cookies")
1756 (description "In order for Catalyst::Plugin::Session to work, the session
1757 ID needs to be stored on the client, and the session data needs to be stored
1758 on the server. This plugin stores the session ID on the client using the
1759 cookie mechanism.")
1760 (license l:perl-license)))
1761
1762 (define-public perl-catalyst-plugin-session-store-fastmmap
1763 (package
1764 (name "perl-catalyst-plugin-session-store-fastmmap")
1765 (version "0.16")
1766 (source
1767 (origin
1768 (method url-fetch)
1769 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1770 "Catalyst-Plugin-Session-Store-FastMmap-"
1771 version ".tar.gz"))
1772 (sha256
1773 (base32
1774 "0x3j6zv3wr41jlwr6yb2jpmcx019ibyn11y8653ffnwhpzbpzsxs"))))
1775 (build-system perl-build-system)
1776 (propagated-inputs
1777 `(("perl-cache-fastmmap" ,perl-cache-fastmmap)
1778 ("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
1779 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1780 ("perl-moosex-emulate-class-accessor-fast"
1781 ,perl-moosex-emulate-class-accessor-fast)
1782 ("perl-mro-compat" ,perl-mro-compat)
1783 ("perl-path-class" ,perl-path-class)))
1784 (home-page
1785 "http://search.cpan.org/dist/Catalyst-Plugin-Session-Store-FastMmap")
1786 (synopsis "FastMmap session storage backend")
1787 (description "Catalyst::Plugin::Session::Store::FastMmap is a fast session
1788 storage plugin for Catalyst that uses an mmap'ed file to act as a shared
1789 memory interprocess cache. It is based on Cache::FastMmap.")
1790 (license l:perl-license)))
1791
1792 (define-public perl-catalyst-plugin-stacktrace
1793 (package
1794 (name "perl-catalyst-plugin-stacktrace")
1795 (version "0.12")
1796 (source
1797 (origin
1798 (method url-fetch)
1799 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1800 "Catalyst-Plugin-StackTrace-" version ".tar.gz"))
1801 (sha256
1802 (base32
1803 "1b2ksz74cpigxqzf63rddar3vfmnbpwpdcbs11v0ml89pb8ar79j"))))
1804 (build-system perl-build-system)
1805 (native-inputs
1806 `(("perl-module-install" ,perl-module-install)))
1807 (propagated-inputs
1808 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1809 ("perl-devel-stacktrace" ,perl-devel-stacktrace)
1810 ("perl-mro-compat" ,perl-mro-compat)))
1811 (home-page "http://search.cpan.org/dist/Catalyst-Plugin-StackTrace")
1812 (synopsis "Stack trace on the Catalyst debug screen")
1813 (description "This plugin enhances the standard Catalyst debug screen by
1814 including a stack trace of your application up to the point where the error
1815 occurred. Each stack frame is displayed along with the package name, line
1816 number, file name, and code context surrounding the line number.")
1817 (license l:perl-license)))
1818
1819 (define-public perl-catalyst-plugin-static-simple
1820 (package
1821 (name "perl-catalyst-plugin-static-simple")
1822 (version "0.33")
1823 (source
1824 (origin
1825 (method url-fetch)
1826 (uri (string-append "mirror://cpan/authors/id/J/JJ/JJNAPIORK/"
1827 "Catalyst-Plugin-Static-Simple-" version ".tar.gz"))
1828 (sha256
1829 (base32
1830 "1h8f12bhzh0ssq9gs8r9g3hqn8zn2k0q944vc1vm8j81bns16msy"))))
1831 (build-system perl-build-system)
1832 (native-inputs
1833 `(("perl-module-install" ,perl-module-install)))
1834 (propagated-inputs
1835 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1836 ("perl-mime-types" ,perl-mime-types)
1837 ("perl-moose" ,perl-moose)
1838 ("perl-moosex-types" ,perl-moosex-types)
1839 ("perl-namespace-autoclean" ,perl-namespace-autoclean)))
1840 (home-page "http://search.cpan.org/dist/Catalyst-Plugin-Static-Simple")
1841 (synopsis "Simple serving of static pages")
1842 (description "The Static::Simple plugin is designed to make serving static
1843 content in your application during development quick and easy, without
1844 requiring a single line of code from you. This plugin detects static files by
1845 looking at the file extension in the URL (such as .css or .png or .js). The
1846 plugin uses the lightweight MIME::Types module to map file extensions to
1847 IANA-registered MIME types, and will serve your static files with the correct
1848 MIME type directly to the browser, without being processed through Catalyst.")
1849 (license l:perl-license)))
1850
1851 (define-public perl-catalyst-runtime
1852 (package
1853 (name "perl-catalyst-runtime")
1854 (version "5.90115")
1855 (source
1856 (origin
1857 (method url-fetch)
1858 (uri (string-append "mirror://cpan/authors/id/J/JJ/JJNAPIORK/"
1859 "Catalyst-Runtime-" version ".tar.gz"))
1860 (sha256
1861 (base32
1862 "0kh3ng6pjpxmndq9vrn515f70x7h44ish5bsgjwj4pjvchcyivzm"))))
1863 (build-system perl-build-system)
1864 (native-inputs
1865 `(("perl-module-install" ,perl-module-install)
1866 ("perl-test-fatal" ,perl-test-fatal)))
1867 (propagated-inputs
1868 `(("perl-cgi-simple" ,perl-cgi-simple)
1869 ("perl-cgi-struct" ,perl-cgi-struct)
1870 ("perl-class-c3-adopt-next" ,perl-class-c3-adopt-next)
1871 ("perl-class-data-inheritable" ,perl-class-data-inheritable)
1872 ("perl-class-date" ,perl-class-date)
1873 ("perl-class-load" ,perl-class-load)
1874 ("perl-data-dump" ,perl-data-dump)
1875 ("perl-http-body" ,perl-http-body)
1876 ("perl-http-message" ,perl-http-message)
1877 ("perl-http-request-ascgi" ,perl-http-request-ascgi)
1878 ("perl-io-stringy" ,perl-io-stringy)
1879 ("perl-json-maybexs" ,perl-json-maybexs)
1880 ("perl-libwww" ,perl-libwww)
1881 ("perl-module-pluggable" ,perl-module-pluggable)
1882 ("perl-moose" ,perl-moose)
1883 ("perl-moosex-emulate-class-accessor-fast"
1884 ,perl-moosex-emulate-class-accessor-fast)
1885 ("perl-moosex-getopt" ,perl-moosex-getopt)
1886 ("perl-moosex-methodattributes" ,perl-moosex-methodattributes)
1887 ("perl-moosex-role-withoverloading" ,perl-moosex-role-withoverloading)
1888 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1889 ("perl-namespace-clean" ,perl-namespace-clean)
1890 ("perl-path-class" ,perl-path-class)
1891 ("perl-plack" ,perl-plack)
1892 ("perl-plack-middleware-fixmissingbodyinredirect"
1893 ,perl-plack-middleware-fixmissingbodyinredirect)
1894 ("perl-plack-middleware-methodoverride"
1895 ,perl-plack-middleware-methodoverride)
1896 ("perl-plack-middleware-removeredundantbody"
1897 ,perl-plack-middleware-removeredundantbody)
1898 ("perl-plack-middleware-reverseproxy"
1899 ,perl-plack-middleware-reverseproxy)
1900 ("perl-plack-test-externalserver" ,perl-plack-test-externalserver)
1901 ("perl-safe-isa" ,perl-safe-isa)
1902 ("perl-string-rewriteprefix" ,perl-string-rewriteprefix)
1903 ("perl-text-simpletable" ,perl-text-simpletable)
1904 ("perl-tree-simple" ,perl-tree-simple)
1905 ("perl-tree-simple-visitorfactory" ,perl-tree-simple-visitorfactory)
1906 ("perl-try-tiny" ,perl-try-tiny)
1907 ("perl-uri" ,perl-uri)
1908 ("perl-uri-ws" ,perl-uri-ws)))
1909 (home-page "http://search.cpan.org/dist/Catalyst-Runtime")
1910 (synopsis "The Catalyst Framework Runtime")
1911 (description "Catalyst is a modern framework for making web applications.
1912 It is designed to make it easy to manage the various tasks you need to do to
1913 run an application on the web, either by doing them itself, or by letting you
1914 \"plug in\" existing Perl modules that do what you need.")
1915 (license l:perl-license)))
1916
1917 (define-public perl-catalyst-traitfor-request-proxybase
1918 (package
1919 (name "perl-catalyst-traitfor-request-proxybase")
1920 (version "0.000005")
1921 (source
1922 (origin
1923 (method url-fetch)
1924 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1925 "Catalyst-TraitFor-Request-ProxyBase-"
1926 version ".tar.gz"))
1927 (sha256
1928 (base32
1929 "02kir63d5cs2ipj3fn1qlmmx3gqi1xqzrxfr4pv5vjhjgsm0zgx7"))))
1930 (build-system perl-build-system)
1931 (native-inputs
1932 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1933 ("perl-catalystx-roleapplicator" ,perl-catalystx-roleapplicator)
1934 ("perl-http-message" ,perl-http-message)
1935 ("perl-module-install" ,perl-module-install)))
1936 (propagated-inputs
1937 `(("perl-moose" ,perl-moose)
1938 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1939 ("perl-uri" ,perl-uri)))
1940 (home-page
1941 "http://search.cpan.org/dist/Catalyst-TraitFor-Request-ProxyBase")
1942 (synopsis "Replace request base with value passed by HTTP proxy")
1943 (description "This module is a Moose::Role which allows you more
1944 flexibility in your application's deployment configurations when deployed
1945 behind a proxy. Using this module, the request base ($c->req->base) is
1946 replaced with the contents of the X-Request-Base header.")
1947 (license l:perl-license)))
1948
1949 (define-public perl-catalyst-view-download
1950 (package
1951 (name "perl-catalyst-view-download")
1952 (version "0.09")
1953 (source
1954 (origin
1955 (method url-fetch)
1956 (uri (string-append "mirror://cpan/authors/id/G/GA/GAUDEON/"
1957 "Catalyst-View-Download-" version ".tar.gz"))
1958 (sha256
1959 (base32
1960 "1qgq6y9iwfbhbkbgpw9czang2ami6z8jk1zlagrzdisy4igqzkvs"))))
1961 (build-system perl-build-system)
1962 (native-inputs
1963 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1964 ("perl-module-install" ,perl-module-install)
1965 ("perl-test-simple" ,perl-test-simple)
1966 ("perl-test-www-mechanize-catalyst" ,perl-test-www-mechanize-catalyst)
1967 ("perl-text-csv" ,perl-text-csv)
1968 ("perl-xml-simple" ,perl-xml-simple)))
1969 (home-page "http://search.cpan.org/dist/Catalyst-View-Download")
1970 (synopsis "Download data in many formats")
1971 (description "The purpose of this module is to provide a method for
1972 downloading data into many supportable formats. For example, downloading a
1973 table based report in a variety of formats (CSV, HTML, etc.).")
1974 (license l:perl-license)))
1975
1976 (define-public perl-catalyst-view-json
1977 (package
1978 (name "perl-catalyst-view-json")
1979 (version "0.36")
1980 (source
1981 (origin
1982 (method url-fetch)
1983 (uri (string-append "mirror://cpan/authors/id/J/JJ/JJNAPIORK/"
1984 "Catalyst-View-JSON-" version ".tar.gz"))
1985 (sha256
1986 (base32
1987 "0x943j1n2r0zqanyzdrs1xsnn8ayn2wqskn7h144xcqa6v6gcisl"))))
1988 (build-system perl-build-system)
1989 (native-inputs
1990 `(("perl-module-install" ,perl-module-install)
1991 ("perl-yaml" ,perl-yaml)))
1992 (inputs
1993 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1994 ("perl-json-maybexs" ,perl-json-maybexs)
1995 ("perl-mro-compat" ,perl-mro-compat)))
1996 (home-page "http://search.cpan.org/dist/Catalyst-View-JSON")
1997 (synopsis "Catalyst JSON view")
1998 (description "Catalyst::View::JSON is a Catalyst View handler that returns
1999 stash data in JSON format.")
2000 (license l:perl-license)))
2001
2002 (define-public perl-catalyst-view-tt
2003 (package
2004 (name "perl-catalyst-view-tt")
2005 (version "0.44")
2006 (source
2007 (origin
2008 (method url-fetch)
2009 (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/"
2010 "Catalyst-View-TT-" version ".tar.gz"))
2011 (sha256
2012 (base32
2013 "06d1zg4nbb6kcyjbnyxrkf8z4zlscxr8650d94f7187jygfl8rvh"))))
2014 (build-system perl-build-system)
2015 (propagated-inputs
2016 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2017 ("perl-class-accessor" ,perl-class-accessor)
2018 ("perl-data-dump" ,perl-data-dump)
2019 ("perl-mro-compat" ,perl-mro-compat)
2020 ("perl-path-class" ,perl-path-class)
2021 ("perl-template-timer" ,perl-template-timer)
2022 ("perl-template-toolkit" ,perl-template-toolkit)))
2023 (home-page "http://search.cpan.org/dist/Catalyst-View-TT")
2024 (synopsis "Template View Class")
2025 (description "This module is a Catalyst view class for the Template
2026 Toolkit.")
2027 (license l:perl-license)))
2028
2029 (define-public perl-catalystx-component-traits
2030 (package
2031 (name "perl-catalystx-component-traits")
2032 (version "0.19")
2033 (source
2034 (origin
2035 (method url-fetch)
2036 (uri (string-append "mirror://cpan/authors/id/R/RK/RKITOVER/"
2037 "CatalystX-Component-Traits-" version ".tar.gz"))
2038 (sha256
2039 (base32
2040 "0iq4ci8m6g2c4g01fvdl568y7pjz28f3widk986v3pyhr7ll8j88"))))
2041 (build-system perl-build-system)
2042 (native-inputs
2043 `(("perl-moose" ,perl-moose)
2044 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
2045 ("perl-moosex-methodattributes" ,perl-moosex-methodattributes)))
2046 (propagated-inputs
2047 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2048 ("perl-class-load" ,perl-class-load)
2049 ("perl-moose" ,perl-moose)
2050 ("perl-moosex-traits-pluggable" ,perl-moosex-traits-pluggable)
2051 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2052 ("perl-list-moreutils" ,perl-list-moreutils)))
2053 (home-page "http://search.cpan.org/dist/CatalystX-Component-Traits")
2054 (synopsis "Trait Loading and Resolution for Catalyst Components")
2055 (description "Adds a \"COMPONENT\" in Catalyst::Component method to your
2056 Catalyst component base class that reads the optional \"traits\" parameter
2057 from app and component config and instantiates the component subclass with
2058 those traits using \"new_with_traits\" in MooseX::Traits from
2059 MooseX::Traits::Pluggable.")
2060 (license l:perl-license)))
2061
2062 (define-public perl-catalystx-roleapplicator
2063 (package
2064 (name "perl-catalystx-roleapplicator")
2065 (version "0.005")
2066 (source
2067 (origin
2068 (method url-fetch)
2069 (uri (string-append "mirror://cpan/authors/id/H/HD/HDP/"
2070 "CatalystX-RoleApplicator-" version ".tar.gz"))
2071 (sha256
2072 (base32
2073 "0vwaapxn8g5hs2xp63c4dwv9jmapmji4272fakssvgc9frklg3p2"))))
2074 (build-system perl-build-system)
2075 (propagated-inputs
2076 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2077 ("perl-moose" ,perl-moose)
2078 ("perl-moosex-relatedclassroles" ,perl-moosex-relatedclassroles)))
2079 (home-page "http://search.cpan.org/dist/CatalystX-RoleApplicator")
2080 (synopsis "Apply roles to Catalyst classes")
2081 (description "CatalystX::RoleApplicator applies roles to Catalyst
2082 application classes.")
2083 (license l:perl-license)))
2084
2085 (define-public perl-catalystx-script-server-starman
2086 (package
2087 (name "perl-catalystx-script-server-starman")
2088 (version "0.02")
2089 (source
2090 (origin
2091 (method url-fetch)
2092 (uri (string-append "mirror://cpan/authors/id/A/AB/ABRAXXA/"
2093 "CatalystX-Script-Server-Starman-"
2094 version ".tar.gz"))
2095 (sha256
2096 (base32
2097 "0h02mpkc4cmi3jpvcd7iw7xyzx55bqvvl1qkf967gqkvpklm0qx5"))))
2098 (build-system perl-build-system)
2099 (native-inputs
2100 `(("perl-module-install" ,perl-module-install)
2101 ("perl-test-www-mechanize-catalyst" ,perl-test-www-mechanize-catalyst)))
2102 (propagated-inputs
2103 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2104 ("perl-moose" ,perl-moose)
2105 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2106 ("starman" ,starman)))
2107 (home-page "http://search.cpan.org/dist/CatalystX-Script-Server-Starman")
2108 (synopsis "Catalyst development server with Starman")
2109 (description "This module provides a Catalyst extension to replace the
2110 development server with Starman.")
2111 (license l:perl-license)))
2112
2113 (define-public perl-cgi
2114 (package
2115 (name "perl-cgi")
2116 (version "4.35")
2117 (source
2118 (origin
2119 (method url-fetch)
2120 (uri (string-append "mirror://cpan/authors/id/L/LE/LEEJO/"
2121 "CGI-" version ".tar.gz"))
2122 (sha256
2123 (base32
2124 "07gwnlc7vq58fjwmfsrv0hfyirqqdrpjhf89caq34rjrkz2wsd0b"))))
2125 (build-system perl-build-system)
2126 (native-inputs
2127 `(("perl-test-deep" ,perl-test-deep)
2128 ("perl-test-nowarnings" ,perl-test-nowarnings)
2129 ("perl-test-warn" ,perl-test-warn)))
2130 (propagated-inputs
2131 `(("perl-html-parser" ,perl-html-parser)))
2132 (home-page "http://search.cpan.org/dist/CGI")
2133 (synopsis "Handle Common Gateway Interface requests and responses")
2134 (description "CGI.pm is a stable, complete and mature solution for
2135 processing and preparing HTTP requests and responses. Major features include
2136 processing form submissions, file uploads, reading and writing cookies, query
2137 string generation and manipulation, and processing and preparing HTTP
2138 headers.")
2139 (license l:perl-license)))
2140
2141 (define-public perl-cgi-session
2142 (package
2143 (name "perl-cgi-session")
2144 (version "4.48")
2145 (source
2146 (origin
2147 (method url-fetch)
2148 (uri (string-append
2149 "mirror://cpan/authors/id/M/MA/MARKSTOS/CGI-Session-"
2150 version
2151 ".tar.gz"))
2152 (sha256
2153 (base32
2154 "1xsl2pz1jrh127pq0b01yffnj4mnp9nvkp88h5mndrscq9hn8xa6"))))
2155 (build-system perl-build-system)
2156 (native-inputs
2157 `(("perl-module-build" ,perl-module-build)))
2158 (inputs `(("perl-cgi" ,perl-cgi)))
2159 (home-page
2160 "http://search.cpan.org/dist/CGI-Session")
2161 (synopsis
2162 "Persistent session data in CGI applications")
2163 (description
2164 "@code{CGI::Session} provides modular session management system across
2165 HTTP requests.")
2166 (license l:perl-license)))
2167
2168 (define-public perl-cgi-simple
2169 (package
2170 (name "perl-cgi-simple")
2171 (version "1.115")
2172 (source
2173 (origin
2174 (method url-fetch)
2175 (uri (string-append "mirror://cpan/authors/id/S/SZ/SZABGAB/"
2176 "CGI-Simple-" version ".tar.gz"))
2177 (sha256
2178 (base32
2179 "1nkyb1m1g5r47xykflf68dplanih5p15njv82frbgbsms34kp1sg"))))
2180 (build-system perl-build-system)
2181 (native-inputs
2182 `(("perl-module-build" ,perl-module-build)
2183 ("perl-io-stringy" ,perl-io-stringy))) ;for IO::Scalar
2184 (home-page "http://search.cpan.org/dist/CGI-Simple")
2185 (synopsis "CGI interface that is CGI.pm compliant")
2186 (description "CGI::Simple provides a relatively lightweight drop in
2187 replacement for CGI.pm. It shares an identical OO interface to CGI.pm for
2188 parameter parsing, file upload, cookie handling and header generation.")
2189 (license l:perl-license)))
2190
2191 (define-public perl-cgi-struct
2192 (package
2193 (name "perl-cgi-struct")
2194 (version "1.21")
2195 (source
2196 (origin
2197 (method url-fetch)
2198 (uri (string-append "mirror://cpan/authors/id/F/FU/FULLERMD/"
2199 "CGI-Struct-" version ".tar.gz"))
2200 (sha256
2201 (base32
2202 "0v4xq2qpryr7i6jngw1wpn8yr2kiib10yxp4aih90vfdznkqsgfi"))))
2203 (build-system perl-build-system)
2204 (native-inputs
2205 `(("perl-test-deep" ,perl-test-deep)))
2206 (home-page "http://search.cpan.org/dist/CGI-Struct")
2207 (synopsis "Build structures from CGI data")
2208 (description "This is a module for building structured data from CGI
2209 inputs, in a manner reminiscent of how PHP does.")
2210 (license l:bsd-2)))
2211
2212 (define-public perl-datetime-format-http
2213 (package
2214 (name "perl-datetime-format-http")
2215 (version "0.42")
2216 (source
2217 (origin
2218 (method url-fetch)
2219 (uri (string-append "mirror://cpan/authors/id/C/CK/CKRAS/"
2220 "DateTime-Format-HTTP-" version ".tar.gz"))
2221 (sha256
2222 (base32
2223 "0h6qqdg1yzqkdxp7hqlp0qa7d1y64nilgimxs79dys2ryjfpcknh"))))
2224 (build-system perl-build-system)
2225 (native-inputs
2226 `(("perl-module-build" ,perl-module-build)))
2227 (propagated-inputs
2228 `(("perl-datetime" ,perl-datetime)
2229 ("perl-http-date" ,perl-http-date)))
2230 (home-page "http://search.cpan.org/dist/DateTime-Format-HTTP")
2231 (synopsis "Date conversion routines")
2232 (description "This module provides functions that deal with the date
2233 formats used by the HTTP protocol.")
2234 (license l:perl-license)))
2235
2236 (define-public perl-digest-md5-file
2237 (package
2238 (name "perl-digest-md5-file")
2239 (version "0.08")
2240 (source
2241 (origin
2242 (method url-fetch)
2243 (uri (string-append "mirror://cpan/authors/id/D/DM/DMUEY/"
2244 "Digest-MD5-File-" version ".tar.gz"))
2245 (sha256
2246 (base32
2247 "060jzf45dlwysw5wsm7av1wvpl06xgk415kwwpvv89r6wda3md5d"))))
2248 (build-system perl-build-system)
2249 (propagated-inputs
2250 `(("perl-libwww" ,perl-libwww)))
2251 (home-page "http://search.cpan.org/dist/Digest-MD5-File")
2252 (synopsis "MD5 sums for files and urls")
2253 (description "Digest::MD5::File is a Perl extension for getting MD5 sums
2254 for files and urls.")
2255 (license l:perl-license)))
2256
2257 (define-public perl-encode-locale
2258 (package
2259 (name "perl-encode-locale")
2260 (version "1.05")
2261 (source (origin
2262 (method url-fetch)
2263 (uri (string-append
2264 "mirror://cpan/authors/id/G/GA/GAAS/Encode-Locale-"
2265 version ".tar.gz"))
2266 (sha256
2267 (base32
2268 "1h8fvcdg3n20c2yp7107yhdkkx78534s9hnvn7ps8hpmf4ks0vqp"))))
2269 (build-system perl-build-system)
2270 (license l:perl-license)
2271 (synopsis "Perl locale encoding determination")
2272 (description
2273 "The POSIX locale system is used to specify both the language
2274 conventions requested by the user and the preferred character set to
2275 consume and output. The Encode::Locale module looks up the charset and
2276 encoding (called a CODESET in the locale jargon) and arranges for the
2277 Encode module to know this encoding under the name \"locale\". It means
2278 bytes obtained from the environment can be converted to Unicode strings
2279 by calling Encode::encode(locale => $bytes) and converted back again
2280 with Encode::decode(locale => $string).")
2281 (home-page "http://search.cpan.org/~gaas/Encode-Locale/")))
2282
2283 (define-public perl-feed-find
2284 (package
2285 (name "perl-feed-find")
2286 (version "0.07")
2287 (source (origin
2288 (method url-fetch)
2289 (uri (string-append "mirror://cpan/authors/id/B/BT/BTROTT/"
2290 "Feed-Find-" version ".tar.gz"))
2291 (sha256
2292 (base32
2293 "0sa33cm8ww55cymnl8j7b5yspi2y5xkkkgqqa4h6fs3wdqylz600"))))
2294 (build-system perl-build-system)
2295 (arguments
2296 ;; Tests expect to query files at http://stupidfool.org/perl/feeds/
2297 `(#:tests? #f
2298 #:phases
2299 (modify-phases %standard-phases
2300 (add-after 'unpack 'set-env
2301 (lambda _ (setenv "PERL_USE_UNSAFE_INC" "1"))))))
2302 (inputs
2303 `(("perl-class-errorhandler" ,perl-class-errorhandler)
2304 ("perl-html-parser" ,perl-html-parser)
2305 ("perl-libwww" ,perl-libwww)
2306 ("perl-uri" ,perl-uri)))
2307 (home-page "http://search.cpan.org/dist/Feed-Find")
2308 (synopsis "Syndication feed auto-discovery")
2309 (description "@code{Feed::Find} implements feed auto-discovery for finding
2310 syndication feeds, given a URI. It will discover the following feed formats:
2311 RSS 0.91, RSS 1.0, RSS 2.0, Atom.")
2312 (license l:perl-license)))
2313
2314 (define-public perl-file-listing
2315 (package
2316 (name "perl-file-listing")
2317 (version "6.04")
2318 (source (origin
2319 (method url-fetch)
2320 (uri (string-append
2321 "mirror://cpan/authors/id/G/GA/GAAS/File-Listing-"
2322 version ".tar.gz"))
2323 (sha256
2324 (base32
2325 "1xcwjlnxaiwwpn41a5yi6nz95ywh3szq5chdxiwj36kqsvy5000y"))))
2326 (build-system perl-build-system)
2327 (propagated-inputs
2328 `(("perl-http-date" ,perl-http-date)))
2329 (license l:perl-license)
2330 (synopsis "Perl directory listing parser")
2331 (description
2332 "The File::Listing module exports a single function called parse_dir(),
2333 which can be used to parse directory listings.")
2334 (home-page "http://search.cpan.org/~gaas/File-Listing/")))
2335
2336 (define-public perl-finance-quote
2337 (package
2338 (name "perl-finance-quote")
2339 (version "1.38")
2340 (source
2341 (origin
2342 (method url-fetch)
2343 (uri (string-append "https://cpan.metacpan.org/authors/id/E/EC/ECOCODE/"
2344 "Finance-Quote-" version ".tar.gz"))
2345 (sha256
2346 (base32
2347 "0zhqb27y4vdxn476s2kwm9zl2f970yjcyyybnjm9b406krr2fm59"))
2348 (patches (search-patches
2349 "perl-finance-quote-unuse-mozilla-ca.patch"))))
2350 (build-system perl-build-system)
2351 (propagated-inputs
2352 `(("perl-cgi" ,perl-cgi)
2353 ("perl-datetime" ,perl-datetime)
2354 ("perl-html-parser" ,perl-html-parser)
2355 ("perl-html-tableextract" ,perl-html-tableextract)
2356 ("perl-html-tree" ,perl-html-tree)
2357 ("perl-http-cookies" ,perl-http-cookies)
2358 ("perl-http-message" ,perl-http-message)
2359 ("perl-json" ,perl-json)
2360 ("perl-libwww" ,perl-libwww)
2361 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2362 ("perl-uri" ,perl-uri)))
2363 (home-page "http://search.cpan.org/dist/Finance-Quote")
2364 (synopsis "Stock and mutual fund quotes")
2365 (description
2366 "Finance::Quote gets stock quotes from various internet sources, including
2367 Yahoo! Finance, Fidelity Investments, and the Australian Stock Exchange.")
2368 (license l:gpl2)))
2369
2370 (define-public perl-gssapi
2371 (package
2372 (name "perl-gssapi")
2373 (version "0.28")
2374 (source
2375 (origin
2376 (method url-fetch)
2377 (uri (string-append "mirror://cpan/authors/id/A/AG/AGROLMS/"
2378 "GSSAPI-" version ".tar.gz"))
2379 (sha256
2380 (base32
2381 "1mkhwxjjlhr58pd770i9gnf7zy7jj092iv6jfbnb8bvnc5xjr3vx"))))
2382 (build-system perl-build-system)
2383 (inputs `(("gssapi" ,mit-krb5)))
2384 (arguments
2385 `(#:make-maker-flags
2386 `(,(string-append "--gssapiimpl=" (assoc-ref %build-inputs "gssapi")))))
2387 (home-page "http://search.cpan.org/dist/GSSAPI")
2388 (synopsis "Perl extension providing access to the GSSAPIv2 library")
2389 (description "This is a Perl extension for using GSSAPI C bindings as
2390 described in RFC 2744.")
2391 (license l:perl-license)))
2392
2393 (define-public perl-html-element-extended
2394 (package
2395 (name "perl-html-element-extended")
2396 (version "1.18")
2397 (source
2398 (origin
2399 (method url-fetch)
2400 (uri (string-append "mirror://cpan/authors/id/M/MS/MSISK/"
2401 "HTML-Element-Extended-" version ".tar.gz"))
2402 (sha256
2403 (base32
2404 "0axknss8c368r5i082yhkfj8mq0w4nglfrpcxcayyzzj13qimvzk"))))
2405 (build-system perl-build-system)
2406 (propagated-inputs
2407 `(("perl-html-tree" ,perl-html-tree)))
2408 (home-page "http://search.cpan.org/dist/HTML-Element-Extended")
2409 (synopsis "Manipulate tables of HTML::Element")
2410 (description
2411 "HTML::Element::Extended is a Perl extension for manipulating a table
2412 composed of HTML::Element style components.")
2413 (license l:perl-license)))
2414
2415 (define-public perl-html-form
2416 (package
2417 (name "perl-html-form")
2418 (version "6.03")
2419 (source
2420 (origin
2421 (method url-fetch)
2422 (uri (string-append "mirror://cpan/authors/id/G/GA/GAAS/"
2423 "HTML-Form-" version ".tar.gz"))
2424 (sha256
2425 (base32
2426 "0dpwr7yz6hjc3bcqgcbdzjjk9l58ycdjmbam9nfcmm85y2a1vh38"))))
2427 (build-system perl-build-system)
2428 (propagated-inputs
2429 `(("perl-html-parser" ,perl-html-parser)
2430 ("perl-html-tagset" ,perl-html-tagset)
2431 ("perl-http-message" ,perl-http-message)
2432 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2433 ("perl-uri" ,perl-uri)))
2434 (home-page "http://search.cpan.org/dist/HTML-Form")
2435 (synopsis "Perl class representing an HTML form element")
2436 (description "Objects of the HTML::Form class represents a single HTML
2437 <form> ... </form> instance.")
2438 (license l:perl-license)))
2439
2440 (define-public perl-html-scrubber
2441 (package
2442 (name "perl-html-scrubber")
2443 (version "0.15")
2444 (source
2445 (origin
2446 (method url-fetch)
2447 (uri (string-append
2448 "mirror://cpan/authors/id/N/NI/NIGELM/HTML-Scrubber-"
2449 version
2450 ".tar.gz"))
2451 (sha256
2452 (base32
2453 "1m1f8gm2jry42zxja05dxp2ck7y66m7i8vc38nj6hccnwlby6cvi"))))
2454 (build-system perl-build-system)
2455 (native-inputs
2456 `(("perl-module-build" ,perl-module-build)
2457 ("perl-test-cpan-meta" ,perl-test-cpan-meta)
2458 ("perl-test-eol" ,perl-test-eol)
2459 ("perl-test-memory-cycle" ,perl-test-memory-cycle)
2460 ("perl-test-notabs" ,perl-test-notabs)))
2461 (inputs
2462 `(("perl-html-parser" ,perl-html-parser)))
2463 (home-page
2464 "http://search.cpan.org/dist/HTML-Scrubber")
2465 (synopsis
2466 "Perl extension for scrubbing/sanitizing html")
2467 (description
2468 "@code{HTML::Scrubber} Perl extension for scrubbing/sanitizing HTML.")
2469 (license l:perl-license)))
2470
2471 (define-public perl-html-lint
2472 (package
2473 (name "perl-html-lint")
2474 (version "2.26")
2475 (source
2476 (origin
2477 (method url-fetch)
2478 (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/"
2479 "HTML-Lint-" version ".tar.gz"))
2480 (sha256
2481 (base32
2482 "02vi1s4sw3hjnndxd6s91cp54iw5pg8n5kl9v0109dfxzn1n9bnl"))))
2483 (build-system perl-build-system)
2484 (propagated-inputs
2485 `(("perl-html-parser" ,perl-html-parser)
2486 ("perl-html-tagset" ,perl-html-tagset)
2487 ("perl-libwww" ,perl-libwww)))
2488 (home-page "http://search.cpan.org/dist/HTML-Lint")
2489 (synopsis "Check for HTML errors in a string or file")
2490 (description "HTML::Lint is a pure-Perl HTML parser and checker for
2491 syntactic legitmacy.")
2492 (license l:artistic2.0)))
2493
2494 (define-public perl-html-tableextract
2495 (package
2496 (name "perl-html-tableextract")
2497 (version "2.13")
2498 (source
2499 (origin
2500 (method url-fetch)
2501 (uri (string-append "https://cpan.metacpan.org/authors/id/M/MS/MSISK/"
2502 "HTML-TableExtract-" version ".tar.gz"))
2503 (sha256
2504 (base32
2505 "01jimmss3q68a89696wmclvqwb2ybz6xgabpnbp6mm6jcni82z8a"))))
2506 (build-system perl-build-system)
2507 (propagated-inputs
2508 `(("perl-html-element-extended" ,perl-html-element-extended)
2509 ("perl-html-parser" ,perl-html-parser)))
2510 (home-page "http://search.cpan.org/dist/HTML-TableExtract")
2511 (synopsis "Extract contents from HTML tables")
2512 (description
2513 "HTML::TableExtract is a Perl module for extracting the content contained
2514 in tables within an HTML document, either as text or encoded element trees.")
2515 (license l:perl-license)))
2516
2517 (define-public perl-html-tree
2518 (package
2519 (name "perl-html-tree")
2520 (version "5.07")
2521 (source
2522 (origin
2523 (method url-fetch)
2524 (uri (string-append "mirror://cpan/authors/id/K/KE/KENTNL/"
2525 "HTML-Tree-" version ".tar.gz"))
2526 (sha256
2527 (base32
2528 "1gyvm4qlwm9y6hczkpnrdfl303ggbybr0nqxdjw09hii8yw4sdzh"))))
2529 (build-system perl-build-system)
2530 (native-inputs
2531 `(("perl-module-build" ,perl-module-build)
2532 ("perl-test-fatal" ,perl-test-fatal)))
2533 (propagated-inputs
2534 `(("perl-html-parser" ,perl-html-parser)
2535 ("perl-html-tagset" ,perl-html-tagset)
2536 ("perl-libwww" ,perl-libwww)))
2537 (home-page "http://search.cpan.org/dist/HTML-Tree")
2538 (synopsis "Work with HTML in a DOM-like tree structure")
2539 (description "This distribution contains a suite of modules for
2540 representing, creating, and extracting information from HTML syntax trees.")
2541 (license l:perl-license)))
2542
2543 (define-public perl-html-parser
2544 (package
2545 (name "perl-html-parser")
2546 (version "3.72")
2547 (source (origin
2548 (method url-fetch)
2549 (uri (string-append
2550 "mirror://cpan/authors/id/G/GA/GAAS/HTML-Parser-"
2551 version ".tar.gz"))
2552 (sha256
2553 (base32
2554 "12v05ywlnsi9lc17z32k9jxx3sj1viy7y1wpl7n4az76v7hwfa7c"))))
2555 (build-system perl-build-system)
2556 (inputs
2557 `(("perl-html-tagset" ,perl-html-tagset)
2558 ("perl-http-message" ,perl-http-message)))
2559 (license l:perl-license)
2560 (synopsis "Perl HTML parser class")
2561 (description
2562 "Objects of the HTML::Parser class will recognize markup and separate
2563 it from plain text (alias data content) in HTML documents. As different
2564 kinds of markup and text are recognized, the corresponding event handlers
2565 are invoked.")
2566 (home-page "http://search.cpan.org/~gaas/HTML-Parser/")))
2567
2568 (define-public perl-html-tagset
2569 (package
2570 (name "perl-html-tagset")
2571 (version "3.20")
2572 (source (origin
2573 (method url-fetch)
2574 (uri (string-append
2575 "mirror://cpan/authors/id/P/PE/PETDANCE/HTML-Tagset-"
2576 version ".tar.gz"))
2577 (sha256
2578 (base32
2579 "1qh8249wgr4v9vgghq77zh1d2zs176bir223a8gh3k9nksn7vcdd"))))
2580 (build-system perl-build-system)
2581 (license l:perl-license)
2582 (synopsis "Perl data tables useful in parsing HTML")
2583 (description
2584 "The HTML::Tagset module contains several data tables useful in various
2585 kinds of HTML parsing operations.")
2586 (home-page "http://search.cpan.org/dist/HTML-Tagset/")))
2587
2588 (define-public perl-html-template
2589 (package
2590 (name "perl-html-template")
2591 (version "2.97")
2592 (source (origin
2593 (method url-fetch)
2594 (uri (string-append "mirror://cpan/authors/id/S/SA/SAMTREGAR/"
2595 "HTML-Template-" version ".tar.gz"))
2596 (sha256
2597 (base32
2598 "17qjw8swj2q4b1ic285pndgrkmvpsqw0j68nhqzpk1daydhsyiv5"))))
2599 (build-system perl-build-system)
2600 (propagated-inputs
2601 `(("perl-cgi" ,perl-cgi)))
2602 (home-page "http://search.cpan.org/dist/HTML-Template")
2603 (synopsis "HTML-like templates")
2604 (description
2605 "This module attempts to make using HTML templates simple and natural.
2606 It extends standard HTML with a few new HTML-esque tags: @code{<TMPL_VAR>},
2607 @code{<TMPL_LOOP>}, @code{<TMPL_INCLUDE>}, @code{<TMPL_IF>},
2608 @code{<TMPL_ELSE>} and @code{<TMPL_UNLESS>}. The file written with HTML and
2609 these new tags is called a template. Using this module you fill in the values
2610 for the variables, loops and branches declared in the template. This allows
2611 you to separate design from the data.")
2612 (license l:perl-license)))
2613
2614 (define-public perl-http-body
2615 (package
2616 (name "perl-http-body")
2617 (version "1.22")
2618 (source
2619 (origin
2620 (method url-fetch)
2621 (uri (string-append "mirror://cpan/authors/id/G/GE/GETTY/"
2622 "HTTP-Body-" version ".tar.gz"))
2623 (sha256
2624 (base32
2625 "15vj488i62mdp4ps9k77h39prj70i7anb6b0j8nm7l9vbdc2q3gw"))))
2626 (build-system perl-build-system)
2627 (native-inputs
2628 `(("perl-test-deep" ,perl-test-deep)))
2629 (propagated-inputs
2630 `(("perl-file-temp" ,perl-file-temp)
2631 ("perl-http-message" ,perl-http-message))) ;For HTTP::Headers
2632 (home-page "http://search.cpan.org/dist/HTTP-Body")
2633 (synopsis "HTTP Body Parser")
2634 (description "HTTP::Body parses chunks of HTTP POST data and supports
2635 application/octet-stream, application/json, application/x-www-form-urlencoded,
2636 and multipart/form-data.")
2637 (license l:perl-license)))
2638
2639 (define-public perl-http-cookiejar
2640 (package
2641 (name "perl-http-cookiejar")
2642 (version "0.008")
2643 (source
2644 (origin
2645 (method url-fetch)
2646 (uri (string-append "mirror://cpan/authors/id/D/DA/DAGOLDEN/"
2647 "HTTP-CookieJar-" version ".tar.gz"))
2648 (sha256
2649 (base32
2650 "0rfw6avcralggs7bf7n86flvhaahxjnqzvpwszp0sk4z4wwy01wm"))))
2651 (build-system perl-build-system)
2652 (native-inputs
2653 `(("perl-test-deep" ,perl-test-deep)
2654 ("perl-test-requires" ,perl-test-requires)
2655 ("perl-time-mock" ,perl-time-mock)
2656 ("perl-uri" ,perl-uri)))
2657 (inputs
2658 `(("perl-time-local" ,perl-time-local)
2659 ("perl-http-date" ,perl-http-date)))
2660 (home-page "http://search.cpan.org/dist/HTTP-CookieJar")
2661 (synopsis "Minimalist HTTP user agent cookie jar")
2662 (description "This module implements a minimalist HTTP user agent cookie
2663 jar in conformance with RFC 6265 <http://tools.ietf.org/html/rfc6265>.")
2664 (license l:asl2.0)))
2665
2666 (define-public perl-http-cookies
2667 (package
2668 (name "perl-http-cookies")
2669 (version "6.04")
2670 (source (origin
2671 (method url-fetch)
2672 (uri (string-append
2673 "mirror://cpan/authors/id/O/OA/OALDERS/HTTP-Cookies-"
2674 version ".tar.gz"))
2675 (sha256
2676 (base32
2677 "1m0kxcirbvbkrm2c59p1bkbvzlcdymg8fdpa7wlxijlx0xwz1iqc"))))
2678 (build-system perl-build-system)
2679 (propagated-inputs
2680 `(("perl-http-message" ,perl-http-message)))
2681 (license l:perl-license)
2682 (synopsis "Perl HTTP cookie jars")
2683 (description
2684 "The HTTP::Cookies class is for objects that represent a cookie jar,
2685 that is, a database of all the HTTP cookies that a given LWP::UserAgent
2686 object knows about.")
2687 (home-page "http://search.cpan.org/~gaas/HTTP-Cookies/")))
2688
2689 (define-public perl-http-daemon
2690 (package
2691 (name "perl-http-daemon")
2692 (version "6.01")
2693 (source (origin
2694 (method url-fetch)
2695 (uri (string-append
2696 "mirror://cpan/authors/id/G/GA/GAAS/HTTP-Daemon-"
2697 version ".tar.gz"))
2698 (sha256
2699 (base32
2700 "1hmd2isrkilf0q0nkxms1q64kikjmcw9imbvrjgky6kh89vqdza3"))))
2701 (build-system perl-build-system)
2702 (propagated-inputs
2703 `(("perl-http-message" ,perl-http-message)
2704 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)))
2705 (license l:perl-license)
2706 (synopsis "Perl simple http server class")
2707 (description
2708 "Instances of the HTTP::Daemon class are HTTP/1.1 servers that listen
2709 on a socket for incoming requests. The HTTP::Daemon is a subclass of
2710 IO::Socket::INET, so you can perform socket operations directly on it too.")
2711 (home-page "http://search.cpan.org/~gaas/HTTP-Daemon/")))
2712
2713 (define-public perl-http-date
2714 (package
2715 (name "perl-http-date")
2716 (version "6.02")
2717 (source (origin
2718 (method url-fetch)
2719 (uri (string-append
2720 "mirror://cpan/authors/id/G/GA/GAAS/HTTP-Date-"
2721 version ".tar.gz"))
2722 (sha256
2723 (base32
2724 "0cz357kafhhzw7w59iyi0wvhw7rlh5g1lh38230ckw7rl0fr9fg8"))))
2725 (build-system perl-build-system)
2726 (license l:perl-license)
2727 (synopsis "Perl date conversion routines")
2728 (description
2729 "The HTTP::Date module provides functions that deal with date formats
2730 used by the HTTP protocol (and then some more).")
2731 (home-page "http://search.cpan.org/~gaas/HTTP-Date/")))
2732
2733 (define-public perl-http-message
2734 (package
2735 (name "perl-http-message")
2736 (version "6.11")
2737 (source (origin
2738 (method url-fetch)
2739 (uri (string-append
2740 "mirror://cpan/authors/id/E/ET/ETHER/HTTP-Message-"
2741 version ".tar.gz"))
2742 (sha256
2743 (base32
2744 "06yq6cjx4vzl4if4ykap77xsrrd8aa7ish90k7cqi8g6g83nicz7"))))
2745 (build-system perl-build-system)
2746 (propagated-inputs
2747 `(("perl-encode-locale" ,perl-encode-locale)
2748 ("perl-http-date" ,perl-http-date)
2749 ("perl-io-html" ,perl-io-html)
2750 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2751 ("perl-uri" ,perl-uri)))
2752 (license l:perl-license)
2753 (synopsis "Perl HTTP style message")
2754 (description
2755 "An HTTP::Message object contains some headers and a content body.")
2756 (home-page "http://search.cpan.org/~ether/HTTP-Message/")))
2757
2758 (define-public perl-http-negotiate
2759 (package
2760 (name "perl-http-negotiate")
2761 (version "6.01")
2762 (source (origin
2763 (method url-fetch)
2764 (uri (string-append
2765 "mirror://cpan/authors/id/G/GA/GAAS/HTTP-Negotiate-"
2766 version ".tar.gz"))
2767 (sha256
2768 (base32
2769 "05p053vjs5g91v5cmjnny7a3xzddz5k7vnjw81wfh01ilqg9qwhw"))))
2770 (build-system perl-build-system)
2771 (propagated-inputs
2772 `(("perl-http-message" ,perl-http-message)))
2773 (license l:perl-license)
2774 (synopsis "Perl http content negotiation")
2775 (description
2776 "The HTTP::Negotiate module provides a complete implementation of the
2777 HTTP content negotiation algorithm specified in
2778 draft-ietf-http-v11-spec-00.ps chapter 12. Content negotiation allows for
2779 the selection of a preferred content representation based upon attributes
2780 of the negotiable variants and the value of the various Accept* header
2781 fields in the request.")
2782 (home-page "http://search.cpan.org/~gaas/HTTP-Negotiate/")))
2783
2784 (define-public perl-http-parser
2785 (package
2786 (name "perl-http-parser")
2787 (version "0.06")
2788 (source
2789 (origin
2790 (method url-fetch)
2791 (uri (string-append "mirror://cpan/authors/id/E/ED/EDECA/"
2792 "HTTP-Parser-" version ".tar.gz"))
2793 (sha256
2794 (base32
2795 "0idwq3jk595xil65lmxz128ha7s3r2n5zknisddpgwnqrghs3igq"))))
2796 (build-system perl-build-system)
2797 (propagated-inputs
2798 `(("perl-http-message" ,perl-http-message)
2799 ("perl-uri" ,perl-uri)))
2800 (home-page "http://search.cpan.org/dist/HTTP-Parser")
2801 (synopsis "Parse HTTP/1.1 requests")
2802 (description "This is an HTTP request parser. It takes chunks of text as
2803 received and returns a 'hint' as to what is required, or returns the
2804 HTTP::Request when a complete request has been read. HTTP/1.1 chunking is
2805 supported.")
2806 (license l:perl-license)))
2807
2808 (define-public perl-http-parser-xs
2809 (package
2810 (name "perl-http-parser-xs")
2811 (version "0.17")
2812 (source
2813 (origin
2814 (method url-fetch)
2815 (uri (string-append "mirror://cpan/authors/id/K/KA/KAZUHO/"
2816 "HTTP-Parser-XS-" version ".tar.gz"))
2817 (sha256
2818 (base32
2819 "02d84xq1mm53c7jl33qyb7v5w4372vydp74z6qj0vc96wcrnhkkr"))))
2820 (build-system perl-build-system)
2821 (native-inputs
2822 `(("perl-module-install" ,perl-module-install)))
2823 (home-page "http://search.cpan.org/dist/HTTP-Parser-XS")
2824 (synopsis "Fast HTTP request parser")
2825 (description "HTTP::Parser::XS is a fast, primitive HTTP request/response
2826 parser.")
2827 (license l:perl-license)))
2828
2829 (define-public perl-http-request-ascgi
2830 (package
2831 (name "perl-http-request-ascgi")
2832 (version "1.2")
2833 (source
2834 (origin
2835 (method url-fetch)
2836 (uri (string-append "mirror://cpan/authors/id/F/FL/FLORA/"
2837 "HTTP-Request-AsCGI-" version ".tar.gz"))
2838 (sha256
2839 (base32
2840 "1smwmiarwcgq7vjdblnb6ldi2x1s5sk5p15p7xvm5byiqq3znnwl"))))
2841 (build-system perl-build-system)
2842 (propagated-inputs
2843 `(("perl-class-accessor" ,perl-class-accessor)
2844 ("perl-http-message" ,perl-http-message)))
2845 (home-page "http://search.cpan.org/dist/HTTP-Request-AsCGI")
2846 (synopsis "Set up a CGI environment from an HTTP::Request")
2847 (description "This module provides a convenient way to set up a CGI
2848 environment from an HTTP::Request.")
2849 (license l:perl-license)))
2850
2851 (define-public perl-http-server-simple
2852 (package
2853 (name "perl-http-server-simple")
2854 (version "0.52")
2855 (source
2856 (origin
2857 (method url-fetch)
2858 (uri (string-append "mirror://cpan/authors/id/B/BP/BPS/"
2859 "HTTP-Server-Simple-" version ".tar.gz"))
2860 (sha256
2861 (base32
2862 "0k6bg7k6mjixfzxdkkdrhqvaqmdhjszx0zsk8g0bimiby6j9z4yq"))))
2863 (build-system perl-build-system)
2864 (propagated-inputs
2865 `(("perl-cgi" ,perl-cgi)))
2866 (arguments
2867 ;; See the discussion of a related tests issue at
2868 ;; https://lists.gnu.org/archive/html/guix-devel/2015-01/msg00346.html
2869 `(#:tests? #f
2870
2871 #:phases (modify-phases %standard-phases
2872 (add-before 'configure 'set-search-path
2873 (lambda _
2874 ;; Work around "dotless @INC" build failure.
2875 (setenv "PERL5LIB"
2876 (string-append (getcwd) ":"
2877 (getenv "PERL5LIB")))
2878 #t)))))
2879 (home-page "http://search.cpan.org/dist/HTTP-Server-Simple")
2880 (synopsis "Lightweight HTTP server")
2881 (description "HTTP::Server::Simple is a simple standalone HTTP daemon with
2882 no non-core module dependencies. It can be used for building a standalone
2883 http-based UI to your existing tools.")
2884 (license l:perl-license)))
2885
2886 (define-public perl-http-tiny
2887 (package
2888 (name "perl-http-tiny")
2889 (version "0.070")
2890 (source
2891 (origin
2892 (method url-fetch)
2893 (uri (string-append "mirror://cpan/authors/id/D/DA/DAGOLDEN/"
2894 "HTTP-Tiny-" version ".tar.gz"))
2895 (sha256
2896 (base32
2897 "0cvp5yqrni6qydpsa8fpkbm82zfwmy9js8jsvyj8gs3dx78qbwvl"))))
2898 (build-system perl-build-system)
2899 (inputs
2900 `(("perl-http-cookiejar" ,perl-http-cookiejar)
2901 ("perl-io-socket-ip" ,perl-io-socket-ip)
2902 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
2903 ("perl-mozilla-ca" ,perl-mozilla-ca)
2904 ("perl-net-ssleay" ,perl-net-ssleay)))
2905 (home-page "http://search.cpan.org/dist/HTTP-Tiny")
2906 (synopsis "HTTP/1.1 client")
2907 (description "This is a very simple HTTP/1.1 client, designed for doing
2908 simple requests without the overhead of a large framework like LWP::UserAgent.
2909 It supports proxies and redirection. It also correctly resumes after EINTR.")
2910 (license l:perl-license)))
2911
2912 (define-public perl-io-html
2913 (package
2914 (name "perl-io-html")
2915 (version "1.00")
2916 (source (origin
2917 (method url-fetch)
2918 (uri (string-append
2919 "mirror://cpan/authors/id/C/CJ/CJM/IO-HTML-"
2920 version ".tar.gz"))
2921 (sha256
2922 (base32
2923 "06nj3a0xgp5jxwxx6ayglfk2v7npf5a7gwkqsjlkapjkybarzqh4"))))
2924 (build-system perl-build-system)
2925 (license l:perl-license)
2926 (synopsis "Perl module to open an HTML file with automatic charset detection")
2927 (description
2928 "IO::HTML provides an easy way to open a file containing HTML while
2929 automatically determining its encoding. It uses the HTML5 encoding sniffing
2930 algorithm specified in section 8.2.2.1 of the draft standard.")
2931 (home-page "http://search.cpan.org/~cjm/IO-HTML/")))
2932
2933 (define-public perl-io-socket-ip
2934 (package
2935 (name "perl-io-socket-ip")
2936 (version "0.39")
2937 (source
2938 (origin
2939 (method url-fetch)
2940 (uri (string-append "mirror://cpan/authors/id/P/PE/PEVANS/"
2941 "IO-Socket-IP-" version ".tar.gz"))
2942 (sha256
2943 (base32
2944 "15kv5g1yb4a345sk3r5wfr99f868lhfqkddzsgpqddvccfkhv58i"))))
2945 (build-system perl-build-system)
2946 (native-inputs `(("perl-module-build" ,perl-module-build)))
2947 (home-page "http://search.cpan.org/dist/IO-Socket-IP")
2948 (synopsis "Family-neutral IP socket supporting both IPv4 and IPv6")
2949 (description "This module provides a protocol-independent way to use IPv4
2950 and IPv6 sockets, intended as a replacement for IO::Socket::INET.")
2951 (license l:perl-license)))
2952
2953 (define-public perl-io-socket-ssl
2954 (package
2955 (name "perl-io-socket-ssl")
2956 (version "2.038")
2957 (source (origin
2958 (method url-fetch)
2959 (uri (string-append "mirror://cpan/authors/id/S/SU/SULLR/"
2960 "IO-Socket-SSL-" version ".tar.gz"))
2961 (sha256
2962 (base32
2963 "11fiifxyvn7njc9p52wgygyw24jz7rh7gnz2ikjphr4l4x9f03rx"))
2964 (patches (search-patches
2965 "perl-io-socket-ssl-openssl-1.0.2f-fix.patch"))))
2966 (build-system perl-build-system)
2967 (propagated-inputs
2968 `(("perl-net-ssleay" ,perl-net-ssleay)
2969 ;; for IDN support
2970 ("perl-uri" ,perl-uri)))
2971 (synopsis "Nearly transparent SSL encapsulation for IO::Socket::INET")
2972 (description
2973 "IO::Socket::SSL makes using SSL/TLS much easier by wrapping the
2974 necessary functionality into the familiar IO::Socket interface and providing
2975 secure defaults whenever possible. This way existing applications can be made
2976 SSL-aware without much effort, at least if you do blocking I/O and don't use
2977 select or poll.")
2978 (license l:perl-license)
2979 (home-page "https://github.com/noxxi/p5-io-socket-ssl")))
2980
2981 (define-public perl-libwww
2982 (package
2983 (name "perl-libwww")
2984 (version "6.15")
2985 (source (origin
2986 (method url-fetch)
2987 (uri (string-append
2988 "mirror://cpan/authors/id/E/ET/ETHER/libwww-perl-"
2989 version ".tar.gz"))
2990 (sha256
2991 (base32
2992 "08l3mpgcvm4ipn1zggymqgk402apf35xyds43i8c07hvq92rsd3g"))))
2993 (build-system perl-build-system)
2994 (propagated-inputs
2995 `(("perl-encode-locale" ,perl-encode-locale)
2996 ("perl-file-listing" ,perl-file-listing)
2997 ("perl-html-parser" ,perl-html-parser)
2998 ("perl-http-cookies" ,perl-http-cookies)
2999 ("perl-http-daemon" ,perl-http-daemon)
3000 ("perl-http-date" ,perl-http-date)
3001 ("perl-http-message" ,perl-http-message)
3002 ("perl-http-negotiate" ,perl-http-negotiate)
3003 ("perl-net-http" ,perl-net-http)
3004 ("perl-uri" ,perl-uri)
3005 ("perl-www-robotrules" ,perl-www-robotrules)))
3006 (license l:perl-license)
3007 (synopsis "Perl modules for the WWW")
3008 (description
3009 "The libwww-perl collection is a set of Perl modules which provides a
3010 simple and consistent application programming interface to the
3011 World-Wide Web. The main focus of the library is to provide classes
3012 and functions that allow you to write WWW clients. The library also
3013 contains modules that are of more general use and even classes that
3014 help you implement simple HTTP servers.")
3015 (home-page "http://search.cpan.org/dist/libwww-perl/")))
3016
3017 (define-public perl-lwp-online
3018 (package
3019 (name "perl-lwp-online")
3020 (version "1.08")
3021 (source
3022 (origin
3023 (method url-fetch)
3024 (uri (string-append
3025 "mirror://cpan/authors/id/A/AD/ADAMK/LWP-Online-"
3026 version ".tar.gz"))
3027 (sha256
3028 (base32
3029 "176f6vbk1018i0y7xj9d406ndbjgwzan2j9nihxnsahzg2vr2vz2"))))
3030 (build-system perl-build-system)
3031 (propagated-inputs
3032 `(("perl-libwww" ,perl-libwww)
3033 ("perl-uri" ,perl-uri)))
3034 (native-inputs
3035 `(("perl-module-install" ,perl-module-install)))
3036 (home-page "http://search.cpan.org/dist/LWP-Online/")
3037 (synopsis "Checks whether your process has access to the web")
3038 (description "This module attempts to answer, as accurately as it can, one
3039 of the nastiest technical questions there is: am I on the internet?
3040
3041 A host of networking and security issues make this problem very difficult.
3042 There are firewalls, proxies (both well behaved and badly behaved). We might
3043 not have DNS. We might not have a network card at all!")
3044 (license l:perl-license)))
3045
3046 (define-public perl-lwp-mediatypes
3047 (package
3048 (name "perl-lwp-mediatypes")
3049 (version "6.02")
3050 (source (origin
3051 (method url-fetch)
3052 (uri (string-append
3053 "mirror://cpan/authors/id/G/GA/GAAS/LWP-MediaTypes-"
3054 version ".tar.gz"))
3055 (sha256
3056 (base32
3057 "0xmnblp962qy02akah30sji8bxrqcyqlff2w95l199ghql60ny8q"))))
3058 (build-system perl-build-system)
3059 (license l:perl-license)
3060 (synopsis "Perl module to guess the media type for a file or a URL")
3061 (description
3062 "The LWP::MediaTypes module provides functions for handling media (also
3063 known as MIME) types and encodings. The mapping from file extensions to
3064 media types is defined by the media.types file. If the ~/.media.types file
3065 exists it is used instead.")
3066 (home-page "http://search.cpan.org/~gaas/LWP-MediaTypes/")))
3067
3068 (define-public perl-lwp-protocol-https
3069 (package
3070 (name "perl-lwp-protocol-https")
3071 (version "6.06")
3072 (source
3073 (origin
3074 (method url-fetch)
3075 (uri (string-append "mirror://cpan/authors/id/M/MS/MSCHILLI/"
3076 "LWP-Protocol-https-" version ".tar.gz"))
3077 (sha256
3078 (base32
3079 "1vxdjqj4bwq56m9h1bqqwkk3c6jr76f2zqzvwa26yjng3p686v5q"))))
3080 (build-system perl-build-system)
3081 (propagated-inputs
3082 `(("perl-io-socket-ssl" ,perl-io-socket-ssl)
3083 ("perl-libwww" ,perl-libwww)
3084 ;; Users should instead make sure SSL_ca_path is set properly.
3085 ;; ("perl-mozilla-ca" ,perl-mozilla-ca)
3086 ("perl-net-http" ,perl-net-http)))
3087 (home-page "http://search.cpan.org/dist/LWP-Protocol-https")
3088 (synopsis "HTTPS support for LWP::UserAgent")
3089 (description "The LWP::Protocol::https module provides support for using
3090 https schemed URLs with LWP.")
3091 (license l:perl-license)))
3092
3093 (define-public perl-lwp-useragent-determined
3094 (package
3095 (name "perl-lwp-useragent-determined")
3096 (version "1.07")
3097 (source
3098 (origin
3099 (method url-fetch)
3100 (uri (string-append "mirror://cpan/authors/id/A/AL/ALEXMV/"
3101 "LWP-UserAgent-Determined-" version ".tar.gz"))
3102 (sha256
3103 (base32
3104 "0lyvbpjng7yfvyha9rp2y2c6liz5hhplmd2grc8jlsfkih7dbn06"))))
3105 (build-system perl-build-system)
3106 (propagated-inputs
3107 `(("perl-libwww" ,perl-libwww)))
3108 (home-page "http://search.cpan.org/dist/LWP-UserAgent-Determined")
3109 (synopsis "Virtual browser that retries errors")
3110 (description "LWP::UserAgent::Determined works just like LWP::UserAgent,
3111 except that when you use it to get a web page but run into a
3112 possibly-temporary error (like a DNS lookup timeout), it'll wait a few seconds
3113 and retry a few times.")
3114 (license l:perl-license)))
3115
3116 (define-public perl-net-amazon-s3
3117 (package
3118 (name "perl-net-amazon-s3")
3119 (version "0.60")
3120 (source
3121 (origin
3122 (method url-fetch)
3123 (uri (string-append "mirror://cpan/authors/id/P/PF/PFIG/"
3124 "Net-Amazon-S3-" version ".tar.gz"))
3125 (sha256
3126 (base32
3127 "10dcsq4s2kc9cb1vccx17r187c81drirc3s1hbxh3rb8489kg2b2"))
3128 (patches (search-patches
3129 "perl-net-amazon-s3-moose-warning.patch"))))
3130 (build-system perl-build-system)
3131 (native-inputs
3132 `(("perl-libwww" ,perl-libwww)
3133 ("perl-test-exception" ,perl-test-exception)))
3134 (propagated-inputs
3135 `(("perl-data-stream-bulk" ,perl-data-stream-bulk)
3136 ("perl-datetime-format-http" ,perl-datetime-format-http)
3137 ("perl-digest-hmac" ,perl-digest-hmac)
3138 ("perl-digest-md5-file" ,perl-digest-md5-file)
3139 ("perl-file-find-rule" ,perl-file-find-rule)
3140 ("perl-http-date" ,perl-http-date)
3141 ("perl-http-message" ,perl-http-message)
3142 ("perl-lwp-useragent-determined" ,perl-lwp-useragent-determined)
3143 ("perl-mime-types" ,perl-mime-types)
3144 ("perl-moose" ,perl-moose)
3145 ("perl-moosex-strictconstructor" ,perl-moosex-strictconstructor)
3146 ("perl-moosex-types-datetime-morecoercions"
3147 ,perl-moosex-types-datetime-morecoercions)
3148 ("perl-path-class" ,perl-path-class)
3149 ("perl-regexp-common" ,perl-regexp-common)
3150 ("perl-term-encoding" ,perl-term-encoding)
3151 ("perl-term-progressbar-simple" ,perl-term-progressbar-simple)
3152 ("perl-uri" ,perl-uri)
3153 ("perl-xml-libxml" ,perl-xml-libxml)))
3154 (home-page "http://search.cpan.org/dist/Net-Amazon-S3")
3155 (synopsis "Perl interface to Amazon S3")
3156 (description "This module provides a Perlish interface to Amazon S3.")
3157 (license l:perl-license)))
3158
3159 (define-public perl-net-http
3160 (package
3161 (name "perl-net-http")
3162 (version "6.07")
3163 (source (origin
3164 (method url-fetch)
3165 (uri (string-append
3166 "mirror://cpan/authors/id/M/MS/MSCHILLI/Net-HTTP-"
3167 version ".tar.gz"))
3168 (sha256
3169 (base32
3170 "0r034hhci0yqbrkrh1gv6vi5g3i0kpd1k84z62nk02asb8rf0ccz"))))
3171 (build-system perl-build-system)
3172 (propagated-inputs
3173 `(("perl-io-socket-ssl" ,perl-io-socket-ssl)
3174 ("perl-uri" ,perl-uri)))
3175 (license l:perl-license)
3176 (synopsis "Perl low-level HTTP connection (client)")
3177 (description
3178 "The Net::HTTP class is a low-level HTTP client. An instance of the
3179 Net::HTTP class represents a connection to an HTTP server. The HTTP protocol
3180 is described in RFC 2616. The Net::HTTP class supports HTTP/1.0 and
3181 HTTP/1.1.")
3182 (home-page "http://search.cpan.org/dist/Net-HTTP")))
3183
3184 (define-public perl-net-server
3185 (package
3186 (name "perl-net-server")
3187 (version "2.009")
3188 (source
3189 (origin
3190 (method url-fetch)
3191 (uri (string-append "mirror://cpan/authors/id/R/RH/RHANDOM/"
3192 "Net-Server-" version ".tar.gz"))
3193 (sha256
3194 (base32
3195 "0gw1k9gcw7habbkxvsfa2gz34brlbwcidk6khgsf1qjm0dbccrw2"))))
3196 (build-system perl-build-system)
3197 (home-page "http://search.cpan.org/dist/Net-Server")
3198 (synopsis "Extensible Perl server engine")
3199 (description "Net::Server is an extensible, generic Perl server engine.
3200 It attempts to be a generic server as in Net::Daemon and NetServer::Generic.
3201 It includes with it the ability to run as an inetd
3202 process (Net::Server::INET), a single connection server (Net::Server or
3203 Net::Server::Single), a forking server (Net::Server::Fork), a preforking
3204 server which maintains a constant number of preforked
3205 children (Net::Server::PreForkSimple), or as a managed preforking server which
3206 maintains the number of children based on server load (Net::Server::PreFork).
3207 In all but the inetd type, the server provides the ability to connect to one
3208 or to multiple server ports.")
3209 (license l:perl-license)))
3210
3211 (define-public perl-net-smtp-ssl
3212 (package
3213 (name "perl-net-smtp-ssl")
3214 (version "1.04")
3215 (source
3216 (origin
3217 (method url-fetch)
3218 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
3219 "Net-SMTP-SSL-" version ".tar.gz"))
3220 (sha256
3221 (base32
3222 "001a6dcfahf7kkyirqkc8jd4fh4fkal7n7vm9c4dblqrvmdc8abv"))))
3223 (build-system perl-build-system)
3224 (propagated-inputs
3225 `(("perl-io-socket-ssl" ,perl-io-socket-ssl)))
3226 (home-page "http://search.cpan.org/dist/Net-SMTP-SSL")
3227 (synopsis "SSL support for Net::SMTP")
3228 (description "SSL support for Net::SMTP.")
3229 (license l:perl-license)))
3230
3231 (define-public perl-plack
3232 (package
3233 (name "perl-plack")
3234 (version "1.0033")
3235 (source
3236 (origin
3237 (method url-fetch)
3238 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
3239 "Plack-" version ".tar.gz"))
3240 (sha256
3241 (base32
3242 "081jg0xddzpg2anmqi9i6d7vs6c8z7k557bf8xl6vgb3h95pin5w"))))
3243 (build-system perl-build-system)
3244 (native-inputs
3245 `(("perl-test-requires" ,perl-test-requires)
3246 ("perl-file-sharedir-install" ,perl-file-sharedir-install)))
3247 (propagated-inputs
3248 `(("perl-apache-logformat-compiler" ,perl-apache-logformat-compiler)
3249 ("perl-devel-stacktrace" ,perl-devel-stacktrace)
3250 ("perl-devel-stacktrace-ashtml" ,perl-devel-stacktrace-ashtml)
3251 ("perl-file-sharedir" ,perl-file-sharedir)
3252 ("perl-hash-multivalue" ,perl-hash-multivalue)
3253 ("perl-http-body" ,perl-http-body)
3254 ("perl-http-message" ,perl-http-message)
3255 ("perl-http-tiny" ,perl-http-tiny)
3256 ("perl-libwww" ,perl-libwww)
3257 ("perl-stream-buffered" ,perl-stream-buffered)
3258 ("perl-test-tcp" ,perl-test-tcp)
3259 ("perl-try-tiny" ,perl-try-tiny)
3260 ("perl-uri" ,perl-uri)))
3261 (home-page "http://search.cpan.org/dist/Plack")
3262 (synopsis "Perl Superglue for Web frameworks and servers (PSGI toolkit)")
3263 (description "Plack is a set of tools for using the PSGI stack. It
3264 contains middleware components, a reference server, and utilities for Web
3265 application frameworks. Plack is like Ruby's Rack or Python's Paste for
3266 WSGI.")
3267 (license l:perl-license)))
3268
3269 (define-public perl-plack-middleware-fixmissingbodyinredirect
3270 (package
3271 (name "perl-plack-middleware-fixmissingbodyinredirect")
3272 (version "0.12")
3273 (source
3274 (origin
3275 (method url-fetch)
3276 (uri (string-append "mirror://cpan/authors/id/S/SW/SWEETKID/"
3277 "Plack-Middleware-FixMissingBodyInRedirect-"
3278 version ".tar.gz"))
3279 (sha256
3280 (base32
3281 "14dkrmccq7a5vpymx5dv8032gfcvhsw2i6v5sh3c4ym5ymlx08kc"))))
3282 (build-system perl-build-system)
3283 (native-inputs
3284 `(("perl-html-parser" ,perl-html-parser) ;for HTML::Entities
3285 ("perl-http-message" ,perl-http-message)
3286 ("perl-plack" ,perl-plack))) ;for Plack::Test
3287 (home-page
3288 "http://search.cpan.org/dist/Plack-Middleware-FixMissingBodyInRedirect")
3289 (synopsis "Plack::Middleware which sets body for redirect response")
3290 (description "This module sets the body in redirect response, if it's not
3291 already set.")
3292 (license l:perl-license)))
3293
3294 (define-public perl-plack-middleware-methodoverride
3295 (package
3296 (name "perl-plack-middleware-methodoverride")
3297 (version "0.11")
3298 (source
3299 (origin
3300 (method url-fetch)
3301 (uri (string-append "mirror://cpan/authors/id/D/DW/DWHEELER/"
3302 "Plack-Middleware-MethodOverride-"
3303 version ".tar.gz"))
3304 (sha256
3305 (base32
3306 "1hb8dx7i4vs74n0p737wrvpdnnw6argxrjpr6kj6432zabp8325z"))))
3307 (build-system perl-build-system)
3308 (native-inputs
3309 `(("perl-module-build" ,perl-module-build)))
3310 (propagated-inputs
3311 `(("perl-plack" ,perl-plack)))
3312 (home-page "http://search.cpan.org/dist/Plack-Middleware-MethodOverride")
3313 (synopsis "Override REST methods to Plack apps via POST")
3314 (description "This middleware allows for POST requests that pretend to be
3315 something else: by adding either a header named X-HTTP-Method-Override to the
3316 request, or a query parameter named x-tunneled-method to the URI, the client
3317 can say what method it actually meant.")
3318 (license l:perl-license)))
3319
3320 (define-public perl-plack-middleware-removeredundantbody
3321 (package
3322 (name "perl-plack-middleware-removeredundantbody")
3323 (version "0.05")
3324 (source
3325 (origin
3326 (method url-fetch)
3327 (uri (string-append "mirror://cpan/authors/id/S/SW/SWEETKID/"
3328 "Plack-Middleware-RemoveRedundantBody-"
3329 version ".tar.gz"))
3330 (sha256
3331 (base32
3332 "1n3wm0zi8dnk54jx937asl951lslj3jvw0fry4jpzsibg4f6wrx0"))))
3333 (build-system perl-build-system)
3334 (propagated-inputs
3335 `(("perl-plack" ,perl-plack)))
3336 (home-page
3337 "http://search.cpan.org/dist/Plack-Middleware-RemoveRedundantBody")
3338 (synopsis "Plack::Middleware which removes body for HTTP response")
3339 (description "This module removes the body in an HTTP response if it's not
3340 required.")
3341 (license l:perl-license)))
3342
3343 (define-public perl-plack-middleware-reverseproxy
3344 (package
3345 (name "perl-plack-middleware-reverseproxy")
3346 (version "0.15")
3347 (source
3348 (origin
3349 (method url-fetch)
3350 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
3351 "Plack-Middleware-ReverseProxy-"
3352 version ".tar.gz"))
3353 (sha256
3354 (base32
3355 "1zmsccdy6wr5hxzj07r1nsmaymyibk87p95z0wzknjw10lwmqs9f"))))
3356 (build-system perl-build-system)
3357 (native-inputs
3358 `(("perl-module-install" ,perl-module-install)))
3359 (propagated-inputs
3360 `(("perl-plack" ,perl-plack)))
3361 (home-page "http://search.cpan.org/dist/Plack-Middleware-ReverseProxy")
3362 (synopsis "Supports app to run as a reverse proxy backend")
3363 (description "Plack::Middleware::ReverseProxy resets some HTTP headers,
3364 which are changed by reverse-proxy. You can specify the reverse proxy address
3365 and stop fake requests using 'enable_if' directive in your app.psgi.")
3366 (license l:perl-license)))
3367
3368 (define-public perl-plack-test-externalserver
3369 (package
3370 (name "perl-plack-test-externalserver")
3371 (version "0.01")
3372 (source
3373 (origin
3374 (method url-fetch)
3375 (uri (string-append "mirror://cpan/authors/id/F/FL/FLORA/"
3376 "Plack-Test-ExternalServer-" version ".tar.gz"))
3377 (sha256
3378 (base32
3379 "1dbg1p3rgvvbkkpvca5jlc2mzx8iqyiybk88al93pvbca65h1g7h"))))
3380 (build-system perl-build-system)
3381 (propagated-inputs
3382 `(("perl-plack" ,perl-plack)))
3383 (home-page "http://search.cpan.org/dist/Plack-Test-ExternalServer")
3384 (synopsis "Run HTTP tests on external live servers")
3385 (description "This module allows your to run your Plack::Test tests
3386 against an external server instead of just against a local application through
3387 either mocked HTTP or a locally spawned server.")
3388 (license l:perl-license)))
3389
3390 (define-public perl-test-tcp
3391 (package
3392 (name "perl-test-tcp")
3393 (version "2.06")
3394 (source
3395 (origin
3396 (method url-fetch)
3397 (uri (string-append "mirror://cpan/authors/id/T/TO/TOKUHIROM/"
3398 "Test-TCP-" version ".tar.gz"))
3399 (sha256
3400 (base32
3401 "0acjwm21y2an4f3fasci9qa0isakh9cgp74fk0bzcdi506xmcjbi"))))
3402 (build-system perl-build-system)
3403 (propagated-inputs
3404 `(("perl-test-sharedfork" ,perl-test-sharedfork)))
3405 (arguments `(#:tests? #f)) ;related to signaling in t/05_sigint.t
3406 (home-page "http://search.cpan.org/dist/Test-TCP")
3407 (synopsis "Testing TCP programs")
3408 (description "Test::TCP is test utilities for TCP/IP programs.")
3409 (license l:perl-license)))
3410
3411 (define-public perl-test-www-mechanize
3412 (package
3413 (name "perl-test-www-mechanize")
3414 (version "1.48")
3415 (source
3416 (origin
3417 (method url-fetch)
3418 (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/"
3419 "Test-WWW-Mechanize-" version ".tar.gz"))
3420 (sha256
3421 (base32
3422 "1d11fx9155d5v17d5w7q3kj37b01l8yj2yb0g6b0z1vh938rrlcr"))))
3423 (build-system perl-build-system)
3424 (native-inputs
3425 `(("perl-test-exception" ,perl-test-exception)))
3426 (native-inputs
3427 `(("perl-module-install" ,perl-module-install)))
3428 (propagated-inputs
3429 `(("perl-carp-assert-more" ,perl-carp-assert-more)
3430 ("perl-html-form" ,perl-html-form)
3431 ("perl-html-lint" ,perl-html-lint)
3432 ("perl-html-tree" ,perl-html-tree)
3433 ("perl-http-server-simple" ,perl-http-server-simple)
3434 ("perl-libwww" ,perl-libwww)
3435 ("perl-test-longstring" ,perl-test-longstring)
3436 ("perl-www-mechanize" ,perl-www-mechanize)))
3437 (home-page "http://search.cpan.org/dist/Test-WWW-Mechanize")
3438 (synopsis "Testing-specific WWW::Mechanize subclass")
3439 (description "Test::WWW::Mechanize is a subclass of the Perl module
3440 WWW::Mechanize that incorporates features for web application testing.")
3441 (license l:artistic2.0)))
3442
3443 (define-public perl-test-www-mechanize-catalyst
3444 (package
3445 (name "perl-test-www-mechanize-catalyst")
3446 (version "0.60")
3447 (source
3448 (origin
3449 (method url-fetch)
3450 (uri (string-append "mirror://cpan/authors/id/J/JJ/JJNAPIORK/"
3451 "Test-WWW-Mechanize-Catalyst-" version ".tar.gz"))
3452 (sha256
3453 (base32
3454 "0nhhfrrai3ndziz873vpa1j0vljjnib4wqafd6yyvkf58ad7v0lv"))))
3455 (build-system perl-build-system)
3456 (native-inputs
3457 `(("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
3458 ("perl-catalyst-plugin-session-state-cookie"
3459 ,perl-catalyst-plugin-session-state-cookie)
3460 ("perl-module-install" ,perl-module-install)
3461 ("perl-test-exception" ,perl-test-exception)
3462 ("perl-test-pod" ,perl-test-pod)
3463 ("perl-test-utf8" ,perl-test-utf8)))
3464 (propagated-inputs
3465 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
3466 ("perl-class-load" ,perl-class-load)
3467 ("perl-libwww" ,perl-libwww)
3468 ("perl-moose" ,perl-moose)
3469 ("perl-namespace-clean" ,perl-namespace-clean)
3470 ("perl-test-www-mechanize" ,perl-test-www-mechanize)
3471 ("perl-www-mechanize" ,perl-www-mechanize)))
3472 (home-page "http://search.cpan.org/dist/Test-WWW-Mechanize-Catalyst")
3473 (synopsis "Test::WWW::Mechanize for Catalyst")
3474 (description "The Test::WWW::Mechanize::Catalyst module meshes the
3475 Test::WWW:Mechanize module and the Catalyst web application framework to allow
3476 testing of Catalyst applications without needing to start up a web server.")
3477 (license l:perl-license)))
3478
3479 (define-public perl-test-www-mechanize-psgi
3480 (package
3481 (name "perl-test-www-mechanize-psgi")
3482 (version "0.37")
3483 (source
3484 (origin
3485 (method url-fetch)
3486 (uri (string-append "mirror://cpan/authors/id/O/OA/OALDERS/"
3487 "Test-WWW-Mechanize-PSGI-" version ".tar.gz"))
3488 (sha256
3489 (base32
3490 "0c9a9w0d2whadnrich7f09w37fgq5hws4gq04zgz4jsdjcvr3qv2"))))
3491 (build-system perl-build-system)
3492 (native-inputs
3493 `(("perl-test-pod" ,perl-test-pod)))
3494 (propagated-inputs
3495 `(("perl-plack" ,perl-plack)
3496 ("perl-test-www-mechanize" ,perl-test-www-mechanize)))
3497 (home-page "http://search.cpan.org/dist/Test-WWW-Mechanize-PSGI")
3498 (synopsis "Test PSGI programs using WWW::Mechanize")
3499 (description "PSGI is a specification to decouple web server environments
3500 from web application framework code. Test::WWW::Mechanize is a subclass of
3501 WWW::Mechanize that incorporates features for web application testing. The
3502 Test::WWW::Mechanize::PSGI module meshes the two to allow easy testing of PSGI
3503 applications.")
3504 (license l:perl-license)))
3505
3506 (define-public perl-uri
3507 (package
3508 (name "perl-uri")
3509 (version "1.73")
3510 (source (origin
3511 (method url-fetch)
3512 (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/"
3513 "URI-" version ".tar.gz"))
3514 (sha256
3515 (base32
3516 "04z4xwiryrbxxi48bwbkgq9q9pwfgqry3wp0ramcrwv3dx5ap9yc"))))
3517 (build-system perl-build-system)
3518 (native-inputs
3519 ;; For tests.
3520 `(("perl-test-needs" ,perl-test-needs)))
3521 (license l:perl-license)
3522 (synopsis "Perl Uniform Resource Identifiers (absolute and relative)")
3523 (description
3524 "The URI module implements the URI class. Objects of this class
3525 represent \"Uniform Resource Identifier references\" as specified in RFC 2396
3526 and updated by RFC 2732.")
3527 (home-page "http://search.cpan.org/dist/URI/")))
3528
3529 (define-public perl-uri-fetch
3530 (package
3531 (name "perl-uri-fetch")
3532 (version "0.13")
3533 (source (origin
3534 (method url-fetch)
3535 (uri (string-append "mirror://cpan/authors/id/N/NE/NEILB/"
3536 "URI-Fetch-" version ".tar.gz"))
3537 (sha256
3538 (base32
3539 "0rw6xiqm70s218aii9id3hf8j3pz6n22xnwd8v9m1ff2bnh63c0d"))))
3540 (build-system perl-build-system)
3541 (arguments
3542 `(#:tests? #f)) ; Tests require internet connection to succeed
3543 (inputs
3544 `(("perl-class-errorhandler" ,perl-class-errorhandler)
3545 ("perl-libwww" ,perl-libwww)
3546 ("perl-uri" ,perl-uri)))
3547 (home-page "http://search.cpan.org/dist/URI-Fetch")
3548 (synopsis "Smart URI fetching/caching")
3549 (description "@code{URI::Fetch} is a smart client for fetching HTTP pages,
3550 notably syndication feeds (RSS, Atom, and others), in an intelligent, bandwidth-
3551 and time-saving way.")
3552 (license l:perl-license)))
3553
3554 (define-public perl-uri-find
3555 (package
3556 (name "perl-uri-find")
3557 (version "20160806")
3558 (source
3559 (origin
3560 (method url-fetch)
3561 (uri (string-append "mirror://cpan/authors/id/M/MS/MSCHWERN/"
3562 "URI-Find-" version ".tar.gz"))
3563 (sha256
3564 (base32
3565 "1mk3jv8x0mcq3ajrn9garnxd0jc7sw4pkwqi88r5apqvlljs84z2"))))
3566 (build-system perl-build-system)
3567 (native-inputs
3568 `(("perl-module-build" ,perl-module-build)))
3569 (propagated-inputs
3570 `(("perl-uri" ,perl-uri)))
3571 (home-page "http://search.cpan.org/dist/URI-Find")
3572 (synopsis "Find URIs in arbitrary text")
3573 (description "This module finds URIs and URLs (according to what URI.pm
3574 considers a URI) in plain text. It only finds URIs which include a
3575 scheme (http:// or the like), for something a bit less strict, consider
3576 URI::Find::Schemeless. For a command-line interface, urifind is provided.")
3577 (license l:perl-license)))
3578
3579 (define-public perl-uri-ws
3580 (package
3581 (name "perl-uri-ws")
3582 (version "0.03")
3583 (source
3584 (origin
3585 (method url-fetch)
3586 (uri (string-append "mirror://cpan/authors/id/P/PL/PLICEASE/"
3587 "URI-ws-" version ".tar.gz"))
3588 (sha256
3589 (base32
3590 "1vs1wm80sq685944g1l4a0fxcbccc00c0f9648yabdmcf90hwsvf"))))
3591 (build-system perl-build-system)
3592 (propagated-inputs
3593 `(("perl-uri" ,perl-uri)))
3594 (home-page "http://search.cpan.org/dist/URI-ws")
3595 (synopsis "WebSocket support for URI package")
3596 (description "With this module, the URI package provides the same set of
3597 methods for WebSocket URIs as it does for HTTP URIs.")
3598 (license l:perl-license)))
3599
3600 (define-public perl-uri-template
3601 (package
3602 (name "perl-uri-template")
3603 (version "0.22")
3604 (source (origin
3605 (method url-fetch)
3606 (uri (string-append "mirror://cpan/authors/id/B/BR/BRICAS/URI-Template-"
3607 version ".tar.gz"))
3608 (sha256
3609 (base32
3610 "08kjjb4c0v9gqfrfnj1wkivylxl05finn11ra64dj136fhmnyrbg"))))
3611 (build-system perl-build-system)
3612 (inputs
3613 `(("perl-uri" ,perl-uri)))
3614 (native-inputs
3615 `(("perl-test-pod-coverage" ,perl-test-pod-coverage)
3616 ("perl-test-pod" ,perl-test-pod)
3617 ("perl-module-install" ,perl-module-install)
3618 ("perl-json" ,perl-json)))
3619 (home-page "http://search.cpan.org/dist/URI-Template")
3620 (synopsis "Object for handling URI templates")
3621 (description "This perl module provides a wrapper around URI templates as described in
3622 RFC 6570.")
3623 (license l:perl-license)))
3624
3625 (define-public perl-www-curl
3626 (package
3627 (name "perl-www-curl")
3628 (version "4.17")
3629 (source (origin
3630 (method url-fetch)
3631 (uri (string-append
3632 "mirror://cpan/authors/id/S/SZ/SZBALINT/WWW-Curl-"
3633 version".tar.gz"))
3634 (patches (search-patches "perl-www-curl-remove-symbol.patch"))
3635 (sha256
3636 (base32
3637 "1fmp9aib1kaps9vhs4dwxn7b15kgnlz9f714bxvqsd1j1q8spzsj"))))
3638 (build-system perl-build-system)
3639 (arguments
3640 '(#:tests? #f ;XXX: tests require network access
3641
3642 #:phases (modify-phases %standard-phases
3643 (add-before 'configure 'set-search-path
3644 (lambda _
3645 ;; Work around "dotless @INC" build failure.
3646 (setenv "PERL5LIB"
3647 (string-append (getcwd) ":"
3648 (getenv "PERL5LIB")))
3649 #t)))))
3650 (native-inputs
3651 `(("perl-module-install" ,perl-module-install)))
3652 (inputs `(("curl" ,curl)))
3653 (synopsis "Perl extension interface for libcurl")
3654 (description
3655 "This is a Perl extension interface for the libcurl file downloading
3656 library.")
3657 (license l:perl-license)
3658 (home-page "http://search.cpan.org/~szbalint/WWW-Curl-4.17/lib/WWW/Curl.pm")))
3659
3660 (define-public perl-www-mechanize
3661 (package
3662 (name "perl-www-mechanize")
3663 (version "1.87")
3664 (source
3665 (origin
3666 (method url-fetch)
3667 (uri (string-append "mirror://cpan/authors/id/O/OA/OALDERS/"
3668 "WWW-Mechanize-" version ".tar.gz"))
3669 (sha256
3670 (base32
3671 "1kxrydhl7nxlyjv0xvyiyj4igdv4fwnggv0ihlp79bysbjjl54w1"))))
3672 (build-system perl-build-system)
3673 (native-inputs ;only for tests
3674 `(("perl-cgi" ,perl-cgi)
3675 ("perl-test-deep" ,perl-test-deep)
3676 ("perl-test-fatal" ,perl-test-fatal)
3677 ("perl-test-output" ,perl-test-output)
3678 ("perl-test-warnings" ,perl-test-warnings)))
3679 (propagated-inputs
3680 `(("perl-html-form" ,perl-html-form)
3681 ("perl-html-parser" ,perl-html-parser)
3682 ("perl-html-tree" ,perl-html-tree)
3683 ("perl-http-message" ,perl-http-message)
3684 ("perl-http-server-simple" ,perl-http-server-simple)
3685 ("perl-libwww" ,perl-libwww)
3686 ("perl-test-warn" ,perl-test-warn)
3687 ("perl-uri" ,perl-uri)))
3688 (home-page "http://search.cpan.org/dist/WWW-Mechanize")
3689 (synopsis "Web browsing in a Perl object")
3690 (description "WWW::Mechanize is a Perl module for stateful programmatic
3691 web browsing, used for automating interaction with websites.")
3692 (license l:perl-license)))
3693
3694 (define-public perl-www-opensearch
3695 (package
3696 (name "perl-www-opensearch")
3697 (version "0.17")
3698 (source (origin
3699 (method url-fetch)
3700 (uri (string-append "mirror://cpan/authors/id/B/BR/BRICAS/"
3701 "WWW-OpenSearch-" version ".tar.gz"))
3702 (sha256
3703 (base32
3704 "1yxplx1q1qk2fvnzqrbk01lz26fy1lyhay51a3ky7q3jgh9p01rb"))))
3705 (build-system perl-build-system)
3706 (native-inputs
3707 `(("perl-class-errorhandler" ,perl-class-errorhandler)
3708 ("perl-datetime" ,perl-datetime)
3709 ("perl-datetime-format-mail" ,perl-datetime-format-mail)
3710 ("perl-datetime-format-w3cdtf" ,perl-datetime-format-w3cdtf)
3711 ("perl-feed-find" ,perl-feed-find)
3712 ("perl-module-install" ,perl-module-install)
3713 ("perl-module-pluggable" ,perl-module-pluggable)
3714 ("perl-uri-fetch" ,perl-uri-fetch)
3715 ("perl-test-simple" ,perl-test-simple)
3716 ("perl-xml-atom" ,perl-xml-atom)
3717 ("perl-xml-rss" ,perl-xml-rss)))
3718 (inputs
3719 `(("perl-data-page" ,perl-data-page)
3720 ("perl-libwww" ,perl-libwww)
3721 ("perl-uri" ,perl-uri)
3722 ("perl-uri-template" ,perl-uri-template)
3723 ("perl-xml-feed" ,perl-xml-feed)
3724 ("perl-xml-libxml" ,perl-xml-libxml)))
3725 (home-page "http://search.cpan.org/dist/WWW-OpenSearch")
3726 (synopsis "Search A9 OpenSearch compatible engines")
3727 (description
3728 "@code{WWW::OpenSearch} is a module to search @url{A9's OpenSearch,
3729 http://opensearch.a9.com} compatible search engines.")
3730 (license l:perl-license)))
3731
3732 (define-public perl-www-robotrules
3733 (package
3734 (name "perl-www-robotrules")
3735 (version "6.02")
3736 (source (origin
3737 (method url-fetch)
3738 (uri (string-append
3739 "mirror://cpan/authors/id/G/GA/GAAS/WWW-RobotRules-"
3740 version ".tar.gz"))
3741 (sha256
3742 (base32
3743 "07m50dp5n5jxv3m93i55qvnd67a6g7cvbvlik115kmc8lbkh5da6"))))
3744 (build-system perl-build-system)
3745 (propagated-inputs
3746 `(("perl-uri" ,perl-uri)))
3747 (license l:perl-license)
3748 (synopsis "Perl database of robots.txt-derived permissions")
3749 (description
3750 "The WWW::RobotRules module parses /robots.txt files as specified in
3751 \"A Standard for Robot Exclusion\", at
3752 <http://www.robotstxt.org/wc/norobots.html>. Webmasters can use the
3753 /robots.txt file to forbid conforming robots from accessing parts of
3754 their web site.")
3755 (home-page "http://search.cpan.org/~gaas/WWW-RobotRules/")))
3756
3757 (define-public python-feedparser
3758 (package
3759 (name "python-feedparser")
3760 (version "5.2.1")
3761 (source
3762 (origin
3763 (method url-fetch)
3764 (uri (pypi-uri "feedparser" version ".tar.bz2"))
3765 (sha256
3766 (base32
3767 "00hb4qg2am06g81mygfi1jsbx8830024jm45g6qp9g8fr6am91yf"))))
3768 (build-system python-build-system)
3769 (arguments
3770 '(#:tests? #f))
3771 (home-page
3772 "https://github.com/kurtmckee/feedparser")
3773 (synopsis "Parse feeds in Python")
3774 (description
3775 "Universal feed parser which handles RSS 0.9x, RSS 1.0, RSS 2.0,
3776 CDF, Atom 0.3, and Atom 1.0 feeds.")
3777 (license (list l:bsd-2 ; source code
3778 l:freebsd-doc)))) ; documentation
3779
3780 (define-public python2-feedparser
3781 (package-with-python2 python-feedparser))
3782
3783 (define-public r-httpuv
3784 (package
3785 (name "r-httpuv")
3786 (version "1.3.6.2")
3787 (source (origin
3788 (method url-fetch)
3789 (uri (cran-uri "httpuv" version))
3790 (sha256
3791 (base32
3792 "0h3hkw575b211bxma23inbq1565wkhiapgasd539h219apqs534f"))))
3793 (build-system r-build-system)
3794 (native-inputs `(("r-rcpp" ,r-rcpp)))
3795 (home-page "https://github.com/rstudio/httpuv")
3796 (synopsis "HTTP and WebSocket server library for R")
3797 (description
3798 "The httpuv package provides low-level socket and protocol support for
3799 handling HTTP and WebSocket requests directly from within R. It is primarily
3800 intended as a building block for other packages, rather than making it
3801 particularly easy to create complete web applications using httpuv alone.")
3802 ;; This package includes third-party code that was originally released
3803 ;; under various non-copyleft licenses. Full licensing information can be
3804 ;; obtained here: https://github.com/rstudio/httpuv/blob/master/LICENSE
3805 (license l:gpl3+)))
3806
3807 (define-public r-jsonlite
3808 (package
3809 (name "r-jsonlite")
3810 (version "1.5")
3811 (source (origin
3812 (method url-fetch)
3813 (uri (cran-uri "jsonlite" version))
3814 (sha256
3815 (base32
3816 "00lfg464jhf7k01bal9pcjvbdf5cxk6xi2h46hccp1x3h883g434"))))
3817 (build-system r-build-system)
3818 (home-page "http://arxiv.org/abs/1403.2805")
3819 (synopsis "Robust, high performance JSON parser and generator for R")
3820 (description
3821 "The jsonlite package provides a fast JSON parser and generator optimized
3822 for statistical data and the web. It offers flexible, robust, high
3823 performance tools for working with JSON in R and is particularly powerful for
3824 building pipelines and interacting with a web API. In addition to converting
3825 JSON data from/to R objects, jsonlite contains functions to stream, validate,
3826 and prettify JSON data. The unit tests included with the package verify that
3827 all edge cases are encoded and decoded consistently for use with dynamic data
3828 in systems and applications.")
3829 (license l:expat)))
3830
3831 (define-public r-servr
3832 (package
3833 (name "r-servr")
3834 (version "0.8")
3835 (source (origin
3836 (method url-fetch)
3837 (uri (cran-uri "servr" version))
3838 (sha256
3839 (base32
3840 "05pz4ychqp4cqywcdavdi8jj3y09gmam097d2idjnlcg9x61h2s9"))))
3841 (build-system r-build-system)
3842 (propagated-inputs
3843 `(("r-httpuv" ,r-httpuv)
3844 ("r-jsonlite" ,r-jsonlite)
3845 ("r-mime" ,r-mime)))
3846 (native-inputs
3847 `(("r-rcpp" ,r-rcpp)))
3848 (home-page "https://github.com/yihui/servr")
3849 (synopsis "Simple HTTP server to serve static files or dynamic documents")
3850 (description
3851 "Servr provides an HTTP server in R to serve static files, or dynamic
3852 documents that can be converted to HTML files (e.g., R Markdown) under a given
3853 directory.")
3854 (license l:expat)))
3855
3856 (define-public r-htmltools
3857 (package
3858 (name "r-htmltools")
3859 (version "0.3.6")
3860 (source (origin
3861 (method url-fetch)
3862 (uri (cran-uri "htmltools" version))
3863 (sha256
3864 (base32
3865 "18k8r1s8sz1jy7dkz35n69wj20xhmllr53xmwb4pdzf2z61gpbs4"))))
3866 (build-system r-build-system)
3867 (arguments
3868 `(#:phases
3869 (modify-phases %standard-phases
3870 ;; See https://github.com/rstudio/htmltools/pull/68
3871 ;; The resource files are in the store and have mode 444. After
3872 ;; copying the files R fails to remove them again because it doesn't
3873 ;; have write access to them.
3874 (add-after 'unpack 'copy-files-without-mode
3875 (lambda _
3876 (substitute* "R/html_dependency.R"
3877 (("file.copy\\(from, to, " prefix)
3878 (string-append prefix
3879 "copy.mode = FALSE, ")))
3880 #t)))))
3881 (propagated-inputs
3882 `(("r-digest" ,r-digest)
3883 ("r-rcpp" ,r-rcpp)))
3884 (home-page "https://cran.r-project.org/web/packages/htmltools")
3885 (synopsis "R tools for HTML")
3886 (description
3887 "This package provides tools for HTML generation and output in R.")
3888 (license l:expat)))
3889
3890 (define-public r-htmlwidgets
3891 (package
3892 (name "r-htmlwidgets")
3893 (version "1.0")
3894 (source (origin
3895 (method url-fetch)
3896 (uri (cran-uri "htmlwidgets" version))
3897 (sha256
3898 (base32
3899 "09lkmzh35l1420sg0dyh4vgyishqx3g8xmgs2y9z7lbi09xgwwwr"))))
3900 (build-system r-build-system)
3901 (propagated-inputs
3902 `(("r-htmltools" ,r-htmltools)
3903 ("r-jsonlite" ,r-jsonlite)
3904 ("r-yaml" ,r-yaml)))
3905 (home-page "https://github.com/ramnathv/htmlwidgets")
3906 (synopsis "HTML Widgets for R")
3907 (description
3908 "HTML widgets is a framework for creating HTML widgets that render in
3909 various contexts including the R console, R Markdown documents, and Shiny web
3910 applications.")
3911 (license l:expat)))
3912
3913 (define-public r-htmltable
3914 (package
3915 (name "r-htmltable")
3916 (version "1.11.2")
3917 (source
3918 (origin
3919 (method url-fetch)
3920 (uri (cran-uri "htmlTable" version))
3921 (sha256
3922 (base32
3923 "1lbpi0kkk8b41w10scmlf27dg5azcv51a4q3p5bpqyphrnqp78k4"))))
3924 (properties `((upstream-name . "htmlTable")))
3925 (build-system r-build-system)
3926 (propagated-inputs
3927 `(("r-checkmate" ,r-checkmate)
3928 ("r-htmltools" ,r-htmltools)
3929 ("r-htmlwidgets" ,r-htmlwidgets)
3930 ("r-knitr" ,r-knitr)
3931 ("r-magrittr" ,r-magrittr)
3932 ("r-rstudioapi" ,r-rstudioapi)
3933 ("r-stringr" ,r-stringr)))
3934 (home-page "http://gforge.se/packages/")
3935 (synopsis "Advanced tables for Markdown/HTML")
3936 (description
3937 "This package provides functions to build tables with advanced layout
3938 elements such as row spanners, column spanners, table spanners, zebra
3939 striping, and more. While allowing advanced layout, the underlying
3940 CSS-structure is simple in order to maximize compatibility with word
3941 processors such as LibreOffice. The package also contains a few text
3942 formatting functions that help outputting text compatible with HTML or
3943 LaTeX.")
3944 (license l:gpl3+)))
3945
3946 (define-public r-curl
3947 (package
3948 (name "r-curl")
3949 (version "3.1")
3950 (source (origin
3951 (method url-fetch)
3952 (uri (cran-uri "curl" version))
3953 (sha256
3954 (base32
3955 "15fbjya2xrf2k9hhvg3frisrram4yk5wlfz67zj1z8ahpsb2a3r7"))))
3956 (build-system r-build-system)
3957 (arguments
3958 `(#:phases
3959 (modify-phases %standard-phases
3960 ;; The environment variable CURL_CA_BUNDLE is only respected when
3961 ;; running Windows, so we disable the platform checks.
3962 ;; This can be removed once the libcurl has been patched.
3963 (add-after 'unpack 'allow-CURL_CA_BUNDLE
3964 (lambda _
3965 (substitute* "R/onload.R"
3966 (("if \\(!grepl\\(\"mingw\".*")
3967 "if (FALSE)\n"))
3968 (substitute* "src/handle.c"
3969 (("#ifdef _WIN32") "#if 1"))
3970 #t)))))
3971 (inputs
3972 `(("libcurl" ,curl)))
3973 (home-page "https://github.com/jeroenooms/curl")
3974 (synopsis "HTTP client for R")
3975 (description
3976 "The @code{curl()} and @code{curl_download()} functions provide highly
3977 configurable drop-in replacements for base @code{url()} and
3978 @code{download.file()} with better performance, support for encryption, gzip
3979 compression, authentication, and other @code{libcurl} goodies. The core of
3980 the package implements a framework for performing fully customized requests
3981 where data can be processed either in memory, on disk, or streaming via the
3982 callback or connection interfaces.")
3983 (license l:expat)))
3984
3985 (define-public r-hwriter
3986 (package
3987 (name "r-hwriter")
3988 (version "1.3.2")
3989 (source
3990 (origin
3991 (method url-fetch)
3992 (uri (cran-uri "hwriter" version))
3993 (sha256
3994 (base32
3995 "0arjsz854rfkfqhgvpqbm9lfni97dcjs66isdsfvwfd2wz932dbb"))))
3996 (build-system r-build-system)
3997 (home-page "https://cran.r-project.org/web/packages/hwriter")
3998 (synopsis "Output R objects in HTML format")
3999 (description
4000 "This package provides easy-to-use and versatile functions to output R
4001 objects in HTML format.")
4002 (license l:lgpl2.1+)))
4003
4004 (define-public r-rjson
4005 (package
4006 (name "r-rjson")
4007 (version "0.2.15")
4008 (source
4009 (origin
4010 (method url-fetch)
4011 (uri (cran-uri "rjson" version))
4012 (sha256
4013 (base32
4014 "1vzjyvf57k1fjizlk28rby65y5lsww5qnfvgnhln74qwda7hvl3p"))))
4015 (build-system r-build-system)
4016 (home-page "https://cran.r-project.org/web/packages/rjson")
4017 (synopsis "JSON library for R")
4018 (description
4019 "This package provides functions to convert R objects into JSON objects
4020 and vice-versa.")
4021 (license l:gpl2+)))
4022
4023 (define-public gumbo-parser
4024 (package
4025 (name "gumbo-parser")
4026 (version "0.10.1")
4027 (source (origin
4028 (method url-fetch)
4029 (uri (string-append "https://github.com/google/"
4030 "gumbo-parser/archive/v" version ".tar.gz"))
4031 (file-name (string-append name "-" version ".tar.gz"))
4032 (sha256
4033 (base32
4034 "1bgg2kbj311pqdzw2v33za7k66g1rv44kkvvnz2gnpaasi9k0ii8"))))
4035 (build-system gnu-build-system)
4036 (arguments
4037 `(#:tests? #f ; tests require bundling googletest sources
4038 #:phases
4039 (modify-phases %standard-phases
4040 (add-after 'unpack 'bootstrap
4041 (lambda _ (zero? (system* "sh" "autogen.sh")))))))
4042 ;; The release tarball lacks the generated files.
4043 (native-inputs
4044 `(("autoconf" ,autoconf)
4045 ("automake" ,automake)
4046 ("libtool" ,libtool)))
4047 (home-page "https://github.com/google/gumbo-parser")
4048 (synopsis "HTML5 parsing library")
4049 (description
4050 "Gumbo is an implementation of the HTML5 parsing algorithm implemented as
4051 a pure C99 library.")
4052 (license l:asl2.0)))
4053
4054 (define-public uwsgi
4055 (package
4056 (name "uwsgi")
4057 (version "2.0.15")
4058 (source (origin
4059 (method url-fetch)
4060 (uri (string-append "http://projects.unbit.it/downloads/uwsgi-"
4061 version ".tar.gz"))
4062 (sha256
4063 (base32
4064 "1zvj28wp3c1hacpd4c6ra5ilwvvfq3l8y6gn8i7mnncpddlzjbjp"))))
4065 (build-system gnu-build-system)
4066 (outputs '("out" "python"))
4067 (arguments
4068 '(;; XXX: The 'check' target runs cppcheck to do static code analysis.
4069 ;; But there is no obvious way to run the real tests.
4070 #:tests? #f
4071 #:phases
4072 (modify-phases %standard-phases
4073 (replace 'configure
4074 ;; Configuration is done by writing an ini file.
4075 (lambda* (#:key outputs #:allow-other-keys)
4076 (let* ((out (assoc-ref outputs "out"))
4077 (bindir (string-append out "/bin"))
4078 (plugindir (string-append out "/lib/uwsgi")))
4079 ;; The build phase outputs files to these directories directly.
4080 (mkdir-p bindir)
4081 (mkdir-p plugindir)
4082 ;; XXX: Enable other plugins.
4083 (call-with-output-file "buildconf/guix.ini"
4084 (lambda (port)
4085 (format port "[uwsgi]
4086 yaml = libyaml
4087 bin_name = ~a/uwsgi
4088 plugin_dir = ~a
4089
4090 inherit = base
4091 plugins = cgi,python
4092 embedded_plugins =
4093 " bindir plugindir))))
4094 (setenv "PROFILE" "guix")
4095 #t))
4096 (replace 'install
4097 ;; Move plugins into their own output.
4098 (lambda* (#:key outputs #:allow-other-keys)
4099 (let* ((out (assoc-ref outputs "out"))
4100 (plugindir (string-append out "/lib/uwsgi"))
4101 (python-plugin (string-append
4102 plugindir "/python_plugin.so")))
4103 (install-file python-plugin
4104 (string-append
4105 (assoc-ref outputs "python") "/lib/uwsgi"))
4106 (delete-file python-plugin)
4107 #t))))))
4108 (native-inputs
4109 `(("pkg-config" ,pkg-config)
4110 ("python" ,python-wrapper)))
4111 (inputs
4112 `(("jansson" ,jansson)
4113 ("libxml2" ,libxml2)
4114 ("libyaml" ,libyaml)
4115 ("openssl" ,openssl)
4116 ("pcre" ,pcre)
4117 ("zlib" ,zlib)
4118 ;; For plugins.
4119 ("python" ,python)))
4120 (home-page "https://uwsgi-docs.readthedocs.org/")
4121 (synopsis "Application container server")
4122 (description
4123 "uWSGI presents a complete stack for networked/clustered web applications,
4124 implementing message/object passing, caching, RPC and process management.
4125 It uses the uwsgi protocol for all the networking/interprocess communications.")
4126 (license l:gpl2+))) ; with linking exception
4127
4128 (define-public jq
4129 (package
4130 (name "jq")
4131 (version "1.5")
4132 (source (origin
4133 (method url-fetch)
4134 (uri (string-append "https://github.com/stedolan/" name
4135 "/releases/download/" name "-" version
4136 "/" name "-" version ".tar.gz"))
4137 (sha256
4138 (base32
4139 "0g29kyz4ykasdcrb0zmbrp2jqs9kv1wz9swx849i2d1ncknbzln4"))
4140 ;; This patch has been pushed and the vulnerability will be
4141 ;; fixed in the next release after 1.5.
4142 ;; https://github.com/stedolan/jq/issues/995
4143 (patches (search-patches "jq-CVE-2015-8863.patch"))))
4144 (inputs
4145 `(("oniguruma" ,oniguruma)))
4146 (native-inputs
4147 `(;; TODO fix gems to generate documentation
4148 ;;("ruby" ,ruby)
4149 ;;("bundler" ,bundler)
4150 ("valgrind" ,valgrind)))
4151 (build-system gnu-build-system)
4152 (home-page "http://stedolan.github.io/jq/")
4153 (synopsis "Command-line JSON processor")
4154 (description "jq is like sed for JSON data – you can use it to slice and
4155 filter and map and transform structured data with the same ease that sed, awk,
4156 grep and friends let you play with text. It is written in portable C. jq can
4157 mangle the data format that you have into the one that you want with very
4158 little effort, and the program to do so is often shorter and simpler than
4159 you'd expect.")
4160 (license (list l:expat l:cc-by3.0))))
4161
4162 (define-public uhttpmock
4163 (package
4164 (name "uhttpmock")
4165 (version "0.5.1")
4166 (source
4167 (origin
4168 (method url-fetch)
4169 (uri (string-append "http://tecnocode.co.uk/downloads/uhttpmock/"
4170 name "-" version ".tar.xz"))
4171 (sha256
4172 (base32
4173 "163py4klka423x7li2b685gmg3a6hjf074mlff2ajhmi3l0lm8x6"))))
4174 (build-system glib-or-gtk-build-system)
4175 (arguments
4176 `(#:phases
4177 (modify-phases %standard-phases
4178 (add-before 'check 'use-empty-ssl-cert-file
4179 (lambda _
4180 ;; Search for ca-certificates.crt files
4181 ;; during the check phase.
4182 (setenv "SSL_CERT_FILE" "/dev/null")
4183 #t)))))
4184 (native-inputs
4185 `(("gobject-introspection" ,gobject-introspection)
4186 ;; For check phase.
4187 ("glib-networking" ,glib-networking)
4188 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4189 ("pkg-config" ,pkg-config)))
4190 (inputs
4191 `(("libsoup" ,libsoup)))
4192 (home-page "https://gitlab.com/groups/uhttpmock")
4193 (synopsis "Library for mocking web service APIs which use HTTP or HTTPS")
4194 (description
4195 "Uhttpmock is a project for mocking web service APIs which use HTTP or
4196 HTTPS. It provides a library, libuhttpmock, which implements recording and
4197 playback of HTTP request/response traces.")
4198 (license l:lgpl2.1+)))
4199
4200 (define-public woof
4201 (package
4202 (name "woof")
4203 (version "2012-05-31")
4204 (source (origin
4205 (method url-fetch)
4206 (uri (string-append
4207 "http://www.home.unix-ag.org/simon/woof-"
4208 version ".py"))
4209 (sha256
4210 (base32
4211 "0wjmjhpg6xlid33yi59j47q2qadz20sijrqsjahj30vngz856hyq"))))
4212 (build-system trivial-build-system)
4213 (arguments
4214 '(#:modules ((guix build utils))
4215 #:builder
4216 (begin
4217 (use-modules (guix build utils))
4218 (let* ((source (assoc-ref %build-inputs "source"))
4219 (out (assoc-ref %outputs "out"))
4220 (bin (string-append out "/bin"))
4221 (python (assoc-ref %build-inputs "python")))
4222 (mkdir-p bin)
4223 (with-directory-excursion bin
4224 (copy-file source "woof")
4225 (patch-shebang "woof" (list (string-append python "/bin")))
4226 (chmod "woof" #o555))
4227 #t))))
4228 (inputs `(("python" ,python-2)))
4229 (home-page "http://www.home.unix-ag.org/simon/woof.html")
4230 (synopsis "Single file web server")
4231 (description "Woof (Web Offer One File) is a small simple web server that
4232 can easily be invoked on a single file. Your partner can access the file with
4233 tools they trust (e.g. wget).")
4234 (license l:gpl2+)))
4235
4236 (define netsurf-buildsystem
4237 (package
4238 (name "netsurf-buildsystem")
4239 (version "1.6")
4240 (source
4241 (origin
4242 (method url-fetch)
4243 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4244 "buildsystem-" version ".tar.gz"))
4245 (sha256
4246 (base32
4247 "0p5k708lcq8dip9xxck6hml32bjrbyipprm22bbsvdnsc0pqm71x"))))
4248 (build-system gnu-build-system)
4249 (inputs `(("perl" ,perl)))
4250 (arguments
4251 '(#:make-flags (list (string-append "PREFIX=" %output))
4252 #:tests? #f ;no tests
4253 #:phases (modify-phases %standard-phases
4254 (delete 'configure)
4255 (delete 'build))))
4256 (home-page "http://www.netsurf-browser.org")
4257 (synopsis "Build system for the Netsurf project")
4258 (description
4259 "This package provides the shared build system for Netsurf project
4260 libraries.")
4261 (license l:expat)))
4262
4263 (define netsurf-buildsystem-arguments
4264 `(#:make-flags `("COMPONENT_TYPE=lib-shared"
4265 "CC=gcc" "BUILD_CC=gcc"
4266 ,(string-append "PREFIX=" %output)
4267 ,(string-append "NSSHARED="
4268 (assoc-ref %build-inputs
4269 "netsurf-buildsystem")
4270 "/share/netsurf-buildsystem"))
4271 #:test-target "test"
4272 #:phases (modify-phases %standard-phases
4273 (delete 'configure))))
4274
4275 (define-public libparserutils
4276 (package
4277 (name "libparserutils")
4278 (version "0.2.3")
4279 (source
4280 (origin
4281 (method url-fetch)
4282 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4283 name "-" version "-src.tar.gz"))
4284 (sha256
4285 (base32
4286 "01gzlsabgl6x0icd8758d9jqs8rrf9574bdkjainn04w3fs3znf5"))))
4287 (build-system gnu-build-system)
4288 (native-inputs
4289 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4290 ("pkg-config" ,pkg-config)
4291 ("perl" ,perl))) ;for test harness
4292 (arguments netsurf-buildsystem-arguments)
4293 (home-page "http://www.netsurf-browser.org/projects/libparserutils/")
4294 (synopsis "Parser building library")
4295 (description
4296 "LibParserUtils is a library for building efficient parsers, written in
4297 C. It is developed as part of the NetSurf project.")
4298 (license l:expat)))
4299
4300 (define-public hubbub
4301 (package
4302 (name "hubbub")
4303 (version "0.3.4")
4304 (source
4305 (origin
4306 (method url-fetch)
4307 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4308 "lib" name "-" version "-src.tar.gz"))
4309 (sha256
4310 (base32
4311 "1shi4hv8drn9zy8f2f6yhnz2dqnpg5jkybvqhzggfjx1q35fbxz3"))
4312 (patches (search-patches "hubbub-sort-entities.patch"))))
4313 (build-system gnu-build-system)
4314 (native-inputs
4315 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4316 ("pkg-config" ,pkg-config)
4317 ("doxygen" ,doxygen)
4318 ("json-c" ,json-c-0.12) ; check whether json-c-0.12 can be removed
4319 ("perl" ,perl)))
4320 (propagated-inputs
4321 `(("libparserutils" ,libparserutils))) ;for libhubbub.pc
4322 (arguments netsurf-buildsystem-arguments)
4323 (home-page "http://www.netsurf-browser.org/projects/hubbub/")
4324 (synopsis "HTML5 compliant parsing library")
4325 (description
4326 "Hubbub is an HTML5 compliant parsing library, written in C, which can
4327 parse both valid and invalid web content. It is developed as part of the
4328 NetSurf project.")
4329 (license l:expat)))
4330
4331 (define-public ikiwiki
4332 (package
4333 (name "ikiwiki")
4334 (version "3.20170111")
4335 (source
4336 (origin
4337 (method url-fetch)
4338 (uri (string-append "http://snapshot.debian.org/archive/debian/"
4339 "20170111T215449Z/pool/main/i/ikiwiki/ikiwiki_"
4340 version ".tar.xz"))
4341 (sha256
4342 (base32
4343 "00d7yzv426fvqbhvzyafddv7fa6b4j2647b0wi371wd5yjj9j3sz"))))
4344 (build-system perl-build-system)
4345 (arguments
4346 `(;; Image tests fail
4347 ;;
4348 ;; Test Summary Report
4349 ;; -------------------
4350 ;; t/img.t (Wstat: 2304 Tests: 62 Failed: 9)
4351 ;; Failed tests: 21, 27-28, 30-35
4352 ;; Non-zero exit status: 9
4353 #:tests? #f
4354 #:phases
4355 (modify-phases %standard-phases
4356 (add-after 'unpack 'include-PERL5LIB-in-wrapper
4357 (lambda _
4358 (substitute* "IkiWiki/Wrapper.pm"
4359 (("^@wrapper\\_hooks")
4360 (string-append
4361 "@wrapper_hooks\n"
4362 " addenv(\"PERL5LIB\", \""
4363 (getenv "PERL5LIB")
4364 "\");")))))
4365 (add-after 'install 'wrap-programs
4366 (lambda* (#:key outputs #:allow-other-keys)
4367 (let* ((out (assoc-ref outputs "out"))
4368 (bin (string-append out "/bin/"))
4369 (path (getenv "PERL5LIB")))
4370 (for-each (lambda (file)
4371 (wrap-program file
4372 `("PERL5LIB" ":" prefix (,path))))
4373 (find-files bin))
4374 #t))))))
4375 (native-inputs
4376 `(("which" ,which)
4377 ("perl-html-tagset" ,perl-html-tagset)
4378 ("perl-timedate" ,perl-timedate)
4379 ("perl-xml-sax" ,perl-xml-sax)
4380 ("perl-xml-simple" ,perl-xml-simple)
4381 ("gettext" ,gettext-minimal)
4382 ("subversion" ,subversion)
4383 ("git" ,git)
4384 ("bazaar" ,bazaar)
4385 ("cvs" ,cvs)
4386 ("mercurial" ,mercurial)))
4387 (inputs
4388 `(("python" ,python-wrapper)
4389 ("perl-cgi-session" ,perl-cgi-session)
4390 ("perl-cgi-simple" ,perl-cgi-simple)
4391 ("perl-json" ,perl-json)
4392 ("perl-image-magick" ,perl-image-magick)
4393 ("perl-uri" ,perl-uri)
4394 ("perl-html-parser" ,perl-html-parser)
4395 ("perl-uri" ,perl-uri)
4396 ("perl-text-markdown-discount" ,perl-text-markdown-discount)
4397 ("perl-html-scrubber" ,perl-html-scrubber)
4398 ("perl-html-template" ,perl-html-template)
4399 ("perl-yaml-libyaml" ,perl-yaml-libyaml)))
4400 (home-page "https://ikiwiki.info/")
4401 (synopsis "Wiki compiler, capable of generating HTML")
4402 (description
4403 "Ikiwiki is a wiki compiler, capable of generating a static set of web
4404 pages, but also incorporating dynamic features like a web based editor and
4405 commenting.")
4406 (license l:gpl2+)))
4407
4408 (define-public libwapcaplet
4409 (package
4410 (name "libwapcaplet")
4411 (version "0.4.0")
4412 (source
4413 (origin
4414 (method url-fetch)
4415 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4416 name "-" version "-src.tar.gz"))
4417 (sha256
4418 (base32
4419 "15yr0pl6qa6biy36qkmd949ydbjzpqiaccpx3sprh4jknabsk1vv"))))
4420 (build-system gnu-build-system)
4421 (native-inputs
4422 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4423 ("pkg-config" ,pkg-config)
4424 ("check" ,check))) ;for tests
4425 (arguments netsurf-buildsystem-arguments)
4426 (home-page "http://www.netsurf-browser.org/projects/libwapcaplet/")
4427 (synopsis "String internment library")
4428 (description
4429 "LibWapcaplet provides a reference counted string internment system
4430 designed to store small strings and allow rapid comparison of them. It is
4431 developed as part of the Netsurf project.")
4432 (license l:expat)))
4433
4434 (define-public libcss
4435 (package
4436 (name "libcss")
4437 (version "0.7.0")
4438 (source
4439 (origin
4440 (method url-fetch)
4441 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4442 name "-" version "-src.tar.gz"))
4443 (sha256
4444 (base32
4445 "16mns3h8vj7iw8myvgnw58q84irvbjlvfkxh8mdw6fbkjvaa7cnz"))))
4446 (build-system gnu-build-system)
4447 (native-inputs
4448 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4449 ("pkg-config" ,pkg-config)
4450 ("perl" ,perl)))
4451 (propagated-inputs ;needed for libcss.pc
4452 `(("libparserutils" ,libparserutils)
4453 ("libwapcaplet" ,libwapcaplet)))
4454 (arguments netsurf-buildsystem-arguments)
4455 (home-page "http://www.netsurf-browser.org/projects/libcss/")
4456 (synopsis "CSS parser and selection library")
4457 (description
4458 "LibCSS is a CSS (Cascading Style Sheet) parser and selection engine,
4459 written in C. It is developed as part of the NetSurf project.")
4460 (license l:expat)))
4461
4462 (define-public libdom
4463 (package
4464 (name "libdom")
4465 (version "0.3.2")
4466 (source
4467 (origin
4468 (method url-fetch)
4469 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4470 name "-" version "-src.tar.gz"))
4471 (sha256
4472 (base32
4473 "1zb7x2qwm6p11lph6j2vcyp4a0a8i1klkqilnk5vb4qmlzzpcv7i"))))
4474 (build-system gnu-build-system)
4475 (native-inputs
4476 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4477 ("pkg-config" ,pkg-config)
4478 ("perl" ,perl) ;for test harness
4479 ("perl-libxml" ,perl-libxml)
4480 ("perl-switch" ,perl-switch)
4481 ("perl-xml-xpath" ,perl-xml-xpath)))
4482 (inputs
4483 `(("libparserutils" ,libparserutils)
4484 ("libwapcaplet" ,libwapcaplet)))
4485 (propagated-inputs
4486 `(("expat" ,expat) ;needed for headers and linking
4487 ("hubbub" ,hubbub))) ;for libdom.pc
4488 (arguments
4489 `(#:tests? #f ;TODO: re-enable. tests take a looong time.
4490 ,@netsurf-buildsystem-arguments))
4491 (home-page "http://www.netsurf-browser.org/projects/libdom/")
4492 (synopsis "Implementation of the W3C DOM")
4493 (description
4494 "LibDOM is an implementation of the W3C DOM, written in C. It is
4495 developed as part of the NetSurf project.")
4496 (license l:expat)))
4497
4498 (define-public libsvgtiny
4499 (package
4500 (name "libsvgtiny")
4501 (version "0.1.6")
4502 (source
4503 (origin
4504 (method url-fetch)
4505 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4506 name "-" version "-src.tar.gz"))
4507 (sha256
4508 (base32
4509 "12ppy2r7m21ykrjgbf067cgi6dn48fkj7i4b7m64xl4dc13y0ah6"))))
4510 (build-system gnu-build-system)
4511 (native-inputs
4512 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4513 ("pkg-config" ,pkg-config)
4514 ("gperf" ,gperf-3.0)))
4515 (inputs
4516 `(("libwapcaplet" ,libwapcaplet)))
4517 (propagated-inputs
4518 `(("libdom" ,libdom))) ;for libsvgtiny.pc
4519 (arguments netsurf-buildsystem-arguments)
4520 (home-page "http://www.netsurf-browser.org/projects/libsvgtiny/")
4521 (synopsis "Library for parsing SVG files")
4522 (description
4523 "Libsvgtiny takes some SVG as input and returns a list of paths and texts
4524 which can be rendered easily, as defined in
4525 @url{http://www.w3.org/TR/SVGMobile/}. It is developed as part of the NetSurf
4526 project.")
4527 (license l:expat)))
4528
4529 (define-public libnsbmp
4530 (package
4531 (name "libnsbmp")
4532 (version "0.1.4")
4533 (source
4534 (origin
4535 (method url-fetch)
4536 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4537 name "-" version "-src.tar.gz"))
4538 (sha256
4539 (base32
4540 "0y4a0gn4l6lq4z9183wix0mdsgalqyw24k19k8jr8sz4h3lb7jrb"))))
4541 (build-system gnu-build-system)
4542 (native-inputs
4543 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
4544 (arguments netsurf-buildsystem-arguments)
4545 (home-page "http://www.netsurf-browser.org/projects/libnsbmp/")
4546 (synopsis "Decoding library for BMP and ICO files")
4547 (description
4548 "Libnsbmp is a decoding library for BMP and ICO image file formats,
4549 written in C. It is developed as part of the NetSurf project.")
4550 (license l:expat)))
4551
4552 (define-public libnsgif
4553 (package
4554 (name "libnsgif")
4555 (version "0.2.0")
4556 (source
4557 (origin
4558 (method url-fetch)
4559 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4560 name "-" version "-src.tar.gz"))
4561 (sha256
4562 (base32
4563 "1phwf0m24m6nd7096fw14hanl4f8gr9bcppi834lbik04agxk38a"))))
4564 (build-system gnu-build-system)
4565 (native-inputs
4566 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
4567 (arguments netsurf-buildsystem-arguments)
4568 (home-page "http://www.netsurf-browser.org/projects/libnsgif/")
4569 (synopsis "Decoding library for GIF files")
4570 (description
4571 "Libnsgif is a decoding library for the GIF image file format, written in
4572 C. It is developed as part of the NetSurf project.")
4573 (license l:expat)))
4574
4575 (define-public libnsutils
4576 (package
4577 (name "libnsutils")
4578 (version "0.0.3")
4579 (source
4580 (origin
4581 (method url-fetch)
4582 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4583 name "-" version "-src.tar.gz"))
4584 (sha256
4585 (base32
4586 "0wrxn4rcn7xrfnkmf60jafqn3n1kicgsdpnakd821q56bmqvzf0m"))))
4587 (build-system gnu-build-system)
4588 (native-inputs
4589 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
4590 (arguments netsurf-buildsystem-arguments)
4591 (home-page "http://www.netsurf-browser.org/")
4592 (synopsis "Utility library for NetSurf")
4593 (description
4594 "Libnsutils provides a small number of useful utility routines. It is
4595 developed as part of the NetSurf project.")
4596 (license l:expat)))
4597
4598 (define-public libnspsl
4599 (package
4600 (name "libnspsl")
4601 (version "0.1.2")
4602 (source
4603 (origin
4604 (method url-fetch)
4605 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4606 name "-" version "-src.tar.gz"))
4607 (sha256
4608 (base32
4609 "0wim5hwzwrfrvvap096whf79m2mnfivbqhqlh03ci9d89xb1w0y9"))))
4610 (build-system gnu-build-system)
4611 (native-inputs
4612 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
4613 (arguments netsurf-buildsystem-arguments)
4614 (home-page "http://www.netsurf-browser.org/")
4615 (synopsis "Library to generate a static Public Suffix List")
4616 (description
4617 "Libnspsl is a library to generate a static code representation of the
4618 Public Suffix List. It is developed as part of the NetSurf project.")
4619 (license l:expat)))
4620
4621 (define-public nsgenbind
4622 (package
4623 (name "nsgenbind")
4624 (version "0.5")
4625 (source
4626 (origin
4627 (method url-fetch)
4628 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4629 name "-" version "-src.tar.gz"))
4630 (sha256
4631 (base32
4632 "1iwjpdaan0njlhb9ir6a2q5vpxfmkqfldkvnqszqdz50b44vd1jv"))))
4633 (build-system gnu-build-system)
4634 (native-inputs
4635 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4636 ("bison" ,bison)
4637 ("flex" ,flex)))
4638 (arguments
4639 (substitute-keyword-arguments netsurf-buildsystem-arguments
4640 ((#:make-flags flags)
4641 `(delete "COMPONENT_TYPE=lib-shared" ,flags))))
4642 (home-page "http://www.netsurf-browser.org/")
4643 (synopsis "Generate JavaScript to DOM bindings")
4644 (description
4645 "@code{nsgenbind} is a tool to generate JavaScript to DOM bindings from
4646 w3c webidl files and a binding configuration file.")
4647 (license l:expat)))
4648
4649 (define-public netsurf
4650 (package
4651 (name "netsurf")
4652 (version "3.7")
4653 (source
4654 (origin
4655 (method url-fetch)
4656 (uri (string-append "http://download.netsurf-browser.org/netsurf/"
4657 "releases/source/netsurf-" version "-src.tar.gz"))
4658 (sha256
4659 (base32
4660 "05kynfzzwd4fc03vbqdjpghh5xnk2yrh43w7vikak89vla30mhpg"))
4661 (patches (search-patches "netsurf-system-utf8proc.patch"
4662 "netsurf-y2038-tests.patch"
4663 "netsurf-longer-test-timeout.patch"))))
4664 (build-system glib-or-gtk-build-system)
4665 (native-inputs
4666 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4667 ("nsgenbind" ,nsgenbind)
4668 ("libidn" ,libidn) ;only for tests
4669 ("check" ,check)
4670 ("perl" ,perl)
4671 ("perl-html-parser" ,perl-html-parser)
4672 ("pkg-config" ,pkg-config)))
4673 (inputs
4674 `(("curl" ,curl)
4675 ("gtk+" ,gtk+-2)
4676 ("openssl" ,openssl)
4677 ("utf8proc" ,utf8proc)
4678 ("libpng" ,libpng)
4679 ("libjpeg" ,libjpeg)
4680 ("libcss" ,libcss)
4681 ("libdom" ,libdom)
4682 ("libnsbmp" ,libnsbmp)
4683 ("libnsgif" ,libnsgif)
4684 ("libnspsl" ,libnspsl)
4685 ("libnsutils" ,libnsutils)
4686 ("libsvgtiny" ,libsvgtiny)
4687 ("miscfiles" ,miscfiles)))
4688 (arguments
4689 `(#:make-flags `("CC=gcc" "BUILD_CC=gcc"
4690 ,(string-append "PREFIX=" %output)
4691 ,(string-append "NSSHARED="
4692 (assoc-ref %build-inputs
4693 "netsurf-buildsystem")
4694 "/share/netsurf-buildsystem"))
4695 #:test-target "test"
4696 #:modules ((ice-9 rdelim)
4697 (ice-9 match)
4698 (srfi srfi-1)
4699 (sxml simple)
4700 ,@%glib-or-gtk-build-system-modules)
4701 #:phases
4702 (modify-phases %standard-phases
4703 (delete 'configure)
4704 (add-after 'build 'adjust-welcome
4705 (lambda _
4706 ;; First, fix some unended tags and simple substitutions
4707 (substitute* "frontends/gtk/res/welcome.html"
4708 (("<(img|input)([^>]*)>" _ tag contents)
4709 (string-append "<" tag contents " />"))
4710 (("Licence") "License") ;prefer GNU spelling
4711 ((" open source") ", free software")
4712 (("web&nbsp;site") "website")
4713 ;; Prefer privacy-respecting default search engine
4714 (("www.google.co.uk") "www.duckduckgo.com/html")
4715 (("Google Search") "DuckDuckGo Search")
4716 (("name=\"btnG\"") ""))
4717 ;; Remove default links so it doesn't seem we're endorsing them
4718 (with-atomic-file-replacement "frontends/gtk/res/welcome.html"
4719 (lambda (in out)
4720 ;; Leave the DOCTYPE header as is
4721 (display (read-line in 'concat) out)
4722 (sxml->xml
4723 (let rec ((sxml (xml->sxml in)))
4724 ;; We'd like to use sxml-match here, but it can't
4725 ;; match against generic tag symbols...
4726 (match sxml
4727 (`(div (@ (class "links")) . ,rest)
4728 '())
4729 ((x ...)
4730 (map rec x))
4731 (x x)))
4732 out)))
4733 #t))
4734 (add-before 'check 'patch-check
4735 (lambda* (#:key inputs #:allow-other-keys)
4736 (substitute* '("test/bloom.c" "test/hashtable.c")
4737 (("/usr/share/dict/words")
4738 (string-append (assoc-ref inputs "miscfiles") "/share/web2")))
4739 #t))
4740 (add-after 'install 'install-more
4741 (lambda* (#:key outputs #:allow-other-keys)
4742 (let* ((out (assoc-ref outputs "out"))
4743 (desktop (string-append out "/share/applications/"
4744 "netsurf.desktop")))
4745 (mkdir-p (dirname desktop))
4746 (copy-file "frontends/gtk/res/netsurf-gtk.desktop"
4747 desktop)
4748 (substitute* desktop
4749 (("netsurf-gtk") (string-append out "/bin/netsurf-gtk"))
4750 (("netsurf.png") (string-append out "/share/netsurf/"
4751 "netsurf.xpm")))
4752 (install-file "docs/netsurf-gtk.1"
4753 (string-append out "/share/man/man1/"))
4754 #t))))))
4755 (home-page "http://www.netsurf-browser.org")
4756 (synopsis "Web browser")
4757 (description
4758 "NetSurf is a lightweight web browser that has its own layout and
4759 rendering engine entirely written from scratch. It is small and capable of
4760 handling many of the web standards in use today.")
4761 (license l:gpl2+)))
4762
4763 (define-public surfraw
4764 (package
4765 (name "surfraw")
4766 (version "2.2.9")
4767 (source (origin
4768 (method url-fetch)
4769 (uri (string-append "https://surfraw.alioth.debian.org/dist/"
4770 name "-" version ".tar.gz"))
4771 (sha256
4772 (base32
4773 "1fy4ph5h9kp0jzj1m6pfylxnnmgdk0mmdppw76z9jhna4jndk5xa"))))
4774 (build-system gnu-build-system)
4775 (arguments
4776 `(#:phases
4777 (modify-phases %standard-phases
4778 (add-before 'configure 'patch-perl
4779 (lambda* (#:key inputs #:allow-other-keys)
4780 (let ((perl (assoc-ref inputs "perl")))
4781 (substitute* "surfraw.IN"
4782 (("perl -e")
4783 (string-append perl "/bin/perl -e")))
4784 #t)))
4785 (add-after 'install 'compress-elvi.1sr
4786 (lambda* (#:key outputs #:allow-other-keys)
4787 ;; The manpages of the elvis are symlinks to elvi.1sr.gz
4788 ;; but elvi.1sr does not get compressed by our manpage phase.
4789 (let* ((out (assoc-ref %outputs "out"))
4790 (man (string-append out "/share/man/man1")))
4791 (with-directory-excursion man
4792 (zero? (system* "gzip" "elvi.1sr")))))))))
4793 (inputs
4794 `(("perl" ,perl)
4795 ("perl-www-opensearch" ,perl-www-opensearch)
4796 ("perl-html-parser" ,perl-html-parser)
4797 ("perl-libwww" ,perl-libwww)))
4798 (synopsis "Unix command line interface to the www")
4799 (description "Surfraw (Shell Users' Revolutionary Front Rage Against the Web)
4800 provides a unix command line interface to a variety of popular www search engines
4801 and similar services.")
4802 (home-page "https://surfraw.alioth.debian.org/")
4803 (license l:public-domain)))
4804
4805 (define-public darkhttpd
4806 (package
4807 (name "darkhttpd")
4808 (version "1.12")
4809 (source
4810 (origin
4811 (method url-fetch)
4812 (uri (string-append "https://unix4lyfe.org/darkhttpd/darkhttpd-"
4813 version ".tar.bz2"))
4814 (sha256
4815 (base32
4816 "0185wlyx4iqiwfigp1zvql14zw7gxfacncii3d15yaxk4av1f155"))))
4817 (build-system gnu-build-system)
4818 (arguments
4819 `(#:make-flags '("CC=gcc")
4820 #:tests? #f ; No test suite
4821 #:phases
4822 (modify-phases %standard-phases
4823 (delete 'configure)
4824 (replace 'install
4825 (lambda* (#:key outputs #:allow-other-keys)
4826 (install-file "darkhttpd"
4827 (string-append (assoc-ref outputs "out")
4828 "/bin"))
4829 #t)))))
4830 (synopsis "Simple static web server")
4831 (description "darkhttpd is a simple static web server. It is
4832 standalone and does not need inetd or ucspi-tcp. It does not need any
4833 config files---you only have to specify the www root.")
4834 (home-page "https://unix4lyfe.org/darkhttpd/")
4835 (license l:isc)))
4836
4837 (define-public goaccess
4838 (package
4839 (name "goaccess")
4840 (version "1.0.2")
4841 (source (origin
4842 (method url-fetch)
4843 (uri (string-append "http://tar.goaccess.io/goaccess-"
4844 version ".tar.gz"))
4845 (sha256
4846 (base32
4847 "1w84y61f3ldg2f28q6qlyr1scn3mcx0bsbq3i5xi5w193wh3xa2q"))
4848 (modules '((guix build utils)))
4849 (snippet
4850 '(substitute* "src/error.h"
4851 (("__DATE__") "\"1970-01-01\"")
4852 (("__TIME__") "\"00:00:00\"")))))
4853 (build-system gnu-build-system)
4854 (inputs
4855 ;; TODO: Add dependency on geoip-tools.
4856 `(("glib" ,glib)
4857 ("ncurses" ,ncurses)))
4858 (native-inputs
4859 `(("pkg-config" ,pkg-config)))
4860 (home-page "https://goaccess.io")
4861 (synopsis "Analyze Web server logs in real time")
4862 (description
4863 "GoAccess is a real-time web log analyzer and interactive viewer that
4864 runs in a terminal or through your browser. It provides fast and valuable
4865 HTTP statistics for system administrators that require a visual server report
4866 on the fly.")
4867 (license l:x11)))
4868
4869 (define-public httptunnel
4870 (package
4871 (name "httptunnel")
4872 (version "3.3")
4873 (source
4874 (origin
4875 (method url-fetch)
4876 (uri (string-append "http://www.nocrew.org/software/httptunnel/"
4877 name "-" version ".tar.gz"))
4878 (sha256
4879 (base32
4880 "0mn5s6p68n32xzadz6ds5i6bp44dyxzkq68r1yljlv470jr84bql"))
4881 (modules '((guix build utils)))
4882 (snippet
4883 ;; Remove non-free IETF RFC documentation.
4884 '(delete-file-recursively "doc"))))
4885 (build-system gnu-build-system)
4886 (arguments
4887 `(#:phases
4888 (modify-phases %standard-phases
4889 ;; The default configure phase tries to pass environment variables as
4890 ;; command-line arguments, which confuses the ./configure script.
4891 (replace 'configure
4892 (lambda* (#:key outputs #:allow-other-keys)
4893 (let* ((out (assoc-ref outputs "out")))
4894 (setenv "CONFIG_SHELL" (which "bash"))
4895 (zero? (system* "./configure"
4896 (string-append "--prefix=" out)))))))))
4897 (home-page "http://www.nocrew.org/software/httptunnel.html")
4898 (synopsis "Tunnel data connections through HTTP requests")
4899 (description "httptunnel creates a bidirectional virtual data connection
4900 tunnelled through HTTP (HyperText Transfer Protocol) requests. This can be
4901 useful for users behind restrictive firewalls. As long as Web traffic is
4902 allowed, even through a HTTP-only proxy, httptunnel can be combined with other
4903 tools like SSH (Secure Shell) to reach the outside world.")
4904 (license l:gpl2+)))
4905
4906 (define-public stunnel
4907 (package
4908 (name "stunnel")
4909 (version "5.44")
4910 (source
4911 (origin
4912 (method url-fetch)
4913 (uri (string-append "https://www.stunnel.org/downloads/stunnel-"
4914 version ".tar.gz"))
4915 (sha256
4916 (base32
4917 "1692y69wl7j6yjgnrrzclgzb34bxsaxjzl1dfy47vms7pdfk42lr"))))
4918 (build-system gnu-build-system)
4919 (inputs `(("openssl" ,openssl)))
4920 (arguments
4921 `(#:configure-flags
4922 (list (string-append "--with-ssl=" (assoc-ref %build-inputs "openssl")))))
4923 (home-page "https://www.stunnel.org")
4924 (synopsis "TLS proxy for clients or servers")
4925 (description "Stunnel is a proxy designed to add TLS encryption
4926 functionality to existing clients and servers without any changes in the
4927 programs' code. Its architecture is optimized for security, portability, and
4928 scalability (including load-balancing), making it suitable for large
4929 deployments.")
4930 (license l:gpl2+)))
4931
4932 (define-public xinetd
4933 (package
4934 (name "xinetd")
4935 (version "2.3.15")
4936 (source
4937 (origin
4938 (method url-fetch)
4939 (uri
4940 (string-append "https://github.com/xinetd-org/xinetd/archive/xinetd-"
4941 (string-join (string-split version #\.) "-") ".tar.gz"))
4942 (patches (search-patches "xinetd-CVE-2013-4342.patch"
4943 "xinetd-fix-fd-leak.patch"))
4944 (sha256
4945 (base32
4946 "0k59x52cbzp5fw0n8zn0y54j1ps0x9b72y8k5grzswjdmgs2a2v2"))))
4947 (build-system gnu-build-system)
4948 (arguments
4949 `(#:configure-flags '("--with-loadavg")
4950 #:tests? #f)) ; no tests
4951 (home-page "https://github.com/xinetd-org/xinetd")
4952 (synopsis "Internet services daemon")
4953 (description "@code{xinetd}, a more secure replacement for @code{inetd},
4954 listens for incoming requests over a network and launches the appropriate
4955 service for that request. Requests are made using port numbers as identifiers
4956 and xinetd usually launches another daemon to handle the request. It can be
4957 used to start services with both privileged and non-privileged port numbers.")
4958 (license (l:fsf-free "file://COPYRIGHT"))))
4959
4960 (define-public tidy-html
4961 (package
4962 (name "tidy-html")
4963 (version "5.6.0")
4964 (source
4965 (origin
4966 (method url-fetch)
4967 (uri (string-append "https://github.com/htacg/tidy-html5/archive/"
4968 version ".tar.gz"))
4969 (file-name (string-append name "-" version ".tar.gz"))
4970 (sha256
4971 (base32
4972 "0n29wcgw32rhnraj9j21ibhwi0xagmmcskhbaz8ihxly7nx3p9h8"))))
4973 (build-system cmake-build-system)
4974 (outputs '("out"
4975 "static")) ; 1.0MiB of .a files
4976 (arguments
4977 `(#:tests? #f ; No tests available
4978 #:configure-flags (list "-DCMAKE_BUILD_TYPE=Release")
4979 #:phases
4980 (modify-phases %standard-phases
4981 (add-after 'install 'move-static-libraries
4982 (lambda* (#:key outputs #:allow-other-keys)
4983 ;; Move static libraries to the "static" output.
4984 (let* ((out (assoc-ref outputs "out"))
4985 (lib (string-append out "/lib"))
4986 (static (assoc-ref outputs "static"))
4987 (slib (string-append static "/lib")))
4988 (mkdir-p slib)
4989 (for-each (lambda (file)
4990 (install-file file slib)
4991 (delete-file file))
4992 (find-files lib "\\.a$"))
4993 #t))))))
4994 (native-inputs
4995 `(("libxslt" ,libxslt)))
4996 (home-page "http://www.html-tidy.org/")
4997 (synopsis "HTML Tidy with HTML5 support")
4998 (description
4999 "Tidy is a console application which corrects and cleans up
5000 HTML and XML documents by fixing markup errors and upgrading
5001 legacy code to modern standards.
5002
5003 Tidy also provides @code{libtidy}, a C static and dynamic library that
5004 developers can integrate into their applications to make use of the
5005 functions of Tidy.")
5006 (license l:bsd-3)))
5007
5008 (define-public hiawatha
5009 (package
5010 (name "hiawatha")
5011 (version "10.7")
5012 (source
5013 (origin
5014 (method url-fetch)
5015 (uri (string-append "https://www.hiawatha-webserver.org/files/"
5016 "hiawatha-" version ".tar.gz"))
5017 (modules '((guix build utils)))
5018 (snippet
5019 ;; We use our packaged mbedtls, so delete the included copy.
5020 '(delete-file-recursively "mbedtls"))
5021 (sha256
5022 (base32
5023 "0x2zfc8kc6c7rl4gwymwmg13w1c60biv6c6c9fvzpnl59bc9jgin"))))
5024 (build-system cmake-build-system)
5025 (arguments
5026 `(#:tests? #f ; No tests included
5027 #:configure-flags (list (string-append "-DUSE_SYSTEM_MBEDTLS=on")
5028 (string-append "-DENABLE_TOMAHAWK=on")
5029 (string-append "-DWEBROOT_DIR="
5030 (assoc-ref %outputs "out")
5031 "/share/hiawatha/html"))
5032 #:phases
5033 (modify-phases %standard-phases
5034 (add-after 'install 'remove-empty-dirs
5035 (lambda* (#:key outputs #:allow-other-keys)
5036 (let* ((out (assoc-ref outputs "out")))
5037 ;; The directories in "var" are empty, remove them.
5038 (delete-file-recursively (string-append out "/var"))
5039 #t)))
5040 (add-after 'install 'wrap
5041 (lambda* (#:key inputs outputs #:allow-other-keys)
5042 ;; Make sure 'hiawatha' finds 'mbedtls'.
5043 (let* ((out (assoc-ref outputs "out"))
5044 (sbin (string-append out "/sbin"))
5045 (mbed (assoc-ref inputs "mbedtls-apache")))
5046 (wrap-program (string-append sbin "/hiawatha")
5047 `("PATH" ":" prefix (,mbed)))))))))
5048 (inputs
5049 ;; TODO: package "hiawatha-monitor", an optional dependency of "hiawatha"
5050 `(("mbedtls-apache" ,mbedtls-apache) ;Hiawatha includes this version.
5051 ("zlib" ,zlib)
5052 ("libxslt" ,libxslt)
5053 ("libxml2" ,libxml2)))
5054 (home-page "https://www.hiawatha-webserver.org")
5055 (synopsis "Webserver with focus on security")
5056 (description
5057 "Hiawatha has been written with security in mind.
5058 Features include the ability to stop SQL injections, XSS and CSRF attacks and
5059 exploit attempts.")
5060 (license l:gpl2)))
5061
5062 (define-public python-httpbin
5063 (package
5064 (name "python-httpbin")
5065 (version "0.5.0")
5066 (source
5067 (origin
5068 (method url-fetch)
5069 (uri (pypi-uri "httpbin" version))
5070 (sha256
5071 (base32
5072 "1dc92lnk846hpilslrqnr63x55cxll4qx88gif8fm521gv9cbyvr"))))
5073 (build-system python-build-system)
5074 (propagated-inputs
5075 `(("python-decorator" ,python-decorator)
5076 ("python-flask" ,python-flask)
5077 ("python-itsdangerous" ,python-itsdangerous)
5078 ("python-markupsafe" ,python-markupsafe)
5079 ("python-six" ,python-six)))
5080 (home-page "https://github.com/Runscope/httpbin")
5081 (synopsis "HTTP request and response service")
5082 (description "Testing an HTTP Library can become difficult sometimes.
5083 @code{RequestBin} is fantastic for testing POST requests, but doesn't let you control the
5084 response. This exists to cover all kinds of HTTP scenarios. All endpoint responses are
5085 JSON-encoded.")
5086 (license l:isc)))
5087
5088 (define-public python2-httpbin
5089 (package-with-python2 python-httpbin))
5090
5091 (define-public python-pytest-httpbin
5092 (package
5093 (name "python-pytest-httpbin")
5094 (version "0.2.3")
5095 (source
5096 (origin
5097 (method url-fetch)
5098 (uri (pypi-uri "pytest-httpbin" version))
5099 (sha256
5100 (base32
5101 "1y0v2v7xpzpyd4djwp7ad8ifnlxp8r1y6dfbxg5ckzvllkgridn5"))))
5102 (build-system python-build-system)
5103 (propagated-inputs
5104 `(("python-six" ,python-six)
5105 ("python-httpbin" ,python-httpbin)
5106 ("python-pytest" ,python-pytest)))
5107 (home-page
5108 "https://github.com/kevin1024/pytest-httpbin")
5109 (synopsis
5110 "Test your HTTP library against a local copy of httpbin")
5111 (description
5112 "@code{Pytest-httpbin} creates a @code{pytest} fixture that is dependency-injected
5113 into your tests. It automatically starts up a HTTP server in a separate thread running
5114 @code{httpbin} and provides your test with the URL in the fixture.")
5115 (license l:expat)))
5116
5117 (define-public python2-pytest-httpbin
5118 (package-with-python2 python-pytest-httpbin))
5119
5120 (define-public http-parser
5121 (package
5122 (name "http-parser")
5123 (version "2.7.1")
5124 (source (origin
5125 (method url-fetch)
5126 (uri (string-append "https://github.com/nodejs/http-parser/"
5127 "archive/v" version ".tar.gz"))
5128 (file-name (string-append name "-" version ".tar.gz"))
5129 (sha256
5130 (base32
5131 "1cw6nf8xy4jhib1w0jd2y0gpqjbdasg8b7pkl2k2vpp54k9rlh3h"))))
5132 (build-system gnu-build-system)
5133 (arguments
5134 `(#:test-target "test"
5135 #:make-flags
5136 (list (string-append "PREFIX="
5137 (assoc-ref %outputs "out"))
5138 "CC=gcc" "library")
5139 #:phases
5140 (modify-phases %standard-phases
5141 (delete 'configure))))
5142 (home-page "https://github.com/nodejs/http-parser")
5143 (synopsis "HTTP request/response parser for C")
5144 (description "This is a parser for HTTP messages written in C. It parses
5145 both requests and responses. The parser is designed to be used in
5146 high-performance HTTP applications. It does not make any syscalls nor
5147 allocations, it does not buffer data, it can be interrupted at anytime.
5148 Depending on your architecture, it only requires about 40 bytes of data per
5149 message stream (in a web server that is per connection).")
5150 (license l:expat)))
5151
5152 (define-public python2-httpretty
5153 (package
5154 (name "python2-httpretty")
5155 (version "0.8.14")
5156 (source
5157 (origin
5158 (method url-fetch)
5159 (uri (pypi-uri "httpretty" version))
5160 (sha256
5161 (base32
5162 "0vlp5qkyw3pxwwsg7xmdcfh1csvypvaz4m6abida8s4xmjxpdhc3"))))
5163 (build-system python-build-system)
5164 (native-inputs
5165 `(("python-sphinx-rtd-theme" ,python2-sphinx-rtd-theme)
5166 ("python-sphinx" ,python2-sphinx)
5167 ("python-coverage" ,python2-coverage)
5168 ("python-tornado" ,python2-tornado)
5169 ("python-urllib3" ,python2-urllib3)
5170 ("python-sure" ,python2-sure)
5171 ("python-steadymark" ,python2-steadymark)
5172 ("python-requests" ,python2-requests)
5173 ("python-rednose" ,python2-rednose)
5174 ("python-nose-randomly" ,python2-nose-randomly)
5175 ("python-misaka" ,python2-misaka)
5176 ("python-pytest-httpbin" ,python2-pytest-httpbin)
5177 ("python-nose" ,python2-nose)))
5178 (arguments
5179 `(#:tests? #f
5180 ;; Requires mock>=1.3.0 which requires a more up-to-date
5181 ;; python-pbr. After updating these trying to build the
5182 ;; package leads to failures in python-flake8 and other
5183 ;; packages. The cascade of updates and failures this
5184 ;; leads to, seems to not be worth having the test run.
5185 #:python ,python-2
5186 #:phases
5187 (modify-phases %standard-phases
5188 (add-before 'build 'patch-test-requirements
5189 (lambda* (#:key inputs #:allow-other-keys)
5190 ;; Update requirements from dependecy==version
5191 ;; to dependency>=version
5192 (substitute* "development.txt"
5193 (("==") ">="))
5194 #t)))))
5195 (home-page "http://github.com/gabrielfalcao/httpretty")
5196 (synopsis "HTTP client mock for Python")
5197 (description "@code{httpretty} is a helper for faking web requests,
5198 inspired by Ruby's @code{fakeweb}.")
5199 (license l:expat)))
5200
5201 (define-public jo
5202 (package
5203 (name "jo")
5204 (version "1.1")
5205 (source
5206 (origin
5207 (method url-fetch)
5208 (uri (string-append "https://github.com/jpmens/jo/releases/download/v"
5209 version "/jo-" version ".tar.gz"))
5210 (sha256
5211 (base32
5212 "0pysickpxrbl53c122h6swvz8sck68q3j0ql38wvbz70q9k4gvb3"))))
5213 (build-system gnu-build-system)
5214 (home-page "https://github.com/jpmens/jo")
5215 (synopsis "Output JSON from a shell")
5216 (description "jo is a command-line utility to create JSON objects or
5217 arrays. It creates a JSON string on stdout from words provided as
5218 command-line arguments or read from stdin.")
5219 (license (list l:gpl2+
5220 l:expat)))) ; json.c, json.h
5221
5222 (define-public python-internetarchive
5223 (package
5224 (name "python-internetarchive")
5225 (version "1.7.4")
5226 (source
5227 (origin
5228 (method url-fetch)
5229 (uri (string-append "https://github.com/jjjake/internetarchive/archive/"
5230 "v" version ".tar.gz"))
5231 (file-name (string-append name "-" version ".tar.gz"))
5232 (sha256
5233 (base32
5234 "0sdbb2ag6vmybi8zmbjszi492a587giaaqxyy1p6gy03cb8mc512"))))
5235 (build-system python-build-system)
5236 (arguments
5237 `(#:phases
5238 (modify-phases %standard-phases
5239 (delete 'check)
5240 (add-after 'install 'check
5241 (lambda* (#:key inputs outputs #:allow-other-keys)
5242 (add-installed-pythonpath inputs outputs)
5243 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
5244 ":" (getenv "PATH")))
5245 (zero? (system* "py.test" "-v" "-k"
5246 (string-append
5247 ;; These tests attempt to make a connection to
5248 ;; an external web service.
5249 "not test_get_item_with_kwargs"
5250 " and not test_ia"))))))))
5251 (propagated-inputs
5252 `(("python-requests" ,python-requests)
5253 ("python-jsonpatch" ,python-jsonpatch-0.4)
5254 ("python-docopt" ,python-docopt)
5255 ("python-clint" ,python-clint)
5256 ("python-six" ,python-six)
5257 ("python-schema" ,python-schema-0.5)
5258 ("python-backports-csv" ,python-backports-csv)))
5259 (native-inputs
5260 `(("python-pytest" ,python-pytest)
5261 ("python-pytest-capturelog" ,python-pytest-capturelog)
5262 ("python-responses" ,python-responses)))
5263 (home-page "https://github.com/jjjake/internetarchive")
5264 (synopsis "Command-line interface to archive.org")
5265 (description "@code{ia} is a command-line tool for using
5266 @url{archive.org} from the command-line. It also emplements the
5267 internetarchive python module for programatic access to archive.org.")
5268 (properties
5269 `((python2-variant . ,(delay python2-internetarchive))))
5270 (license l:agpl3+)))
5271
5272 (define-public python2-internetarchive
5273 (package-with-python2
5274 (strip-python2-variant python-internetarchive)))
5275
5276 (define-public python-clf
5277 (let ((commit-test-clf "d01d25923c599d3261910f79fb948825b4270d07")) ; 0.5.7
5278 (package
5279 (name "python-clf")
5280 (version "0.5.7")
5281 (source
5282 (origin
5283 (method url-fetch)
5284 (uri (pypi-uri "clf" version))
5285 (sha256
5286 (base32
5287 "0zlkzqnpz7a4iavsq5vaz0nf5nr7qm5znpg1vlpz6rwnx6hikjdb"))))
5288 (build-system python-build-system)
5289 (propagated-inputs
5290 `(("python-docopt" ,python-docopt)
5291 ("python-pygments" ,python-pygments)
5292 ("python-requests" ,python-requests)
5293 ("python-nose" ,python-nose)
5294 ("python-lxml" ,python-lxml)
5295 ("python-pyaml" ,python-pyaml)))
5296 (inputs
5297 `(("test-clf"
5298 ,(origin
5299 (method url-fetch)
5300 (uri (string-append "https://raw.githubusercontent.com"
5301 "/ncrocfer/clf/" commit-test-clf
5302 "/test_clf.py"))
5303 (sha256
5304 (base32
5305 "19lr5zdzsmxgkg7wrjq1yzkiahd03wi4k3dskssyhmjls8c10nqd"))))))
5306 (arguments
5307 '(#:phases
5308 (modify-phases %standard-phases
5309 (add-after 'unpack 'get-tests
5310 (lambda _
5311 (copy-file (assoc-ref %build-inputs "test-clf") "test_clf.py")))
5312 (replace 'check
5313 (lambda _
5314 (zero? (system* "nosetests"
5315 ;; These tests require internet connection
5316 "--exclude=test_browse"
5317 "--exclude=test_command"
5318 "--exclude=test_search")))))))
5319 (home-page "https://github.com/ncrocfer/clf")
5320 (synopsis "Search code snippets on @url{https://commandlinefu.com}")
5321 (description "@code{clf} is a command line tool for searching code
5322 snippets on @url{https://commandlinefu.com}.")
5323 (license l:expat))))
5324
5325 (define-public python2-clf
5326 (package-with-python2 python-clf))
5327
5328 (define-public r-shiny
5329 (package
5330 (name "r-shiny")
5331 (version "1.0.3")
5332 (source
5333 (origin
5334 (method url-fetch)
5335 (uri (string-append "https://github.com/rstudio/shiny/"
5336 "archive/v" version ".tar.gz"))
5337 (file-name (string-append name "-" version ".tar.gz"))
5338 (sha256
5339 (base32
5340 "0z2v2s4hd44mvzjn7r70549kdzkrrch9nxhp27r6x2cy6micizm3"))))
5341 (build-system r-build-system)
5342 (arguments
5343 `(#:modules ((guix build r-build-system)
5344 (guix build minify-build-system)
5345 (guix build utils)
5346 (ice-9 match))
5347 #:imported-modules (,@%r-build-system-modules
5348 (guix build minify-build-system))
5349 #:phases
5350 (modify-phases (@ (guix build r-build-system) %standard-phases)
5351 (add-after 'unpack 'replace-bundled-minified-JavaScript
5352 (lambda* (#:key inputs #:allow-other-keys)
5353 (let ((replace-file (lambda (old new)
5354 (format #t "replacing ~a with ~a\n" old new)
5355 (delete-file old)
5356 (symlink new old))))
5357 ;; NOTE: Files in ./inst/www/shared/datepicker/js/locales/
5358 ;; contain just data. They are not minified code, so we don't
5359 ;; replace them.
5360 (with-directory-excursion "inst/www/shared"
5361 (replace-file "bootstrap/shim/respond.min.js"
5362 (string-append (assoc-ref inputs "js-respond")
5363 "/share/javascript/respond.min.js"))
5364 (replace-file "bootstrap/shim/html5shiv.min.js"
5365 (string-append (assoc-ref inputs "js-html5shiv")
5366 "/share/javascript/html5shiv.min.js"))
5367 (replace-file "json2-min.js"
5368 (string-append (assoc-ref inputs "js-json2")
5369 "/share/javascript/json2.min.js"))
5370 (replace-file "strftime/strftime-min.js"
5371 (string-append (assoc-ref inputs "js-strftime")
5372 "/share/javascript/strftime.min.js"))
5373 (replace-file "highlight/highlight.pack.js"
5374 (string-append (assoc-ref inputs "js-highlight")
5375 "/share/javascript/highlight.min.js"))
5376 (replace-file "datatables/js/jquery.dataTables.min.js"
5377 (string-append (assoc-ref inputs "js-datatables")
5378 "/share/javascript/jquery.dataTables.min.js"))
5379 (replace-file "selectize/js/selectize.min.js"
5380 (string-append (assoc-ref inputs "js-selectize")
5381 "/share/javascript/selectize.min.js"))
5382 (replace-file "selectize/js/es5-shim.min.js"
5383 (string-append (assoc-ref inputs "js-es5-shim")
5384 "/share/javascript/es5-shim.min.js"))
5385 (for-each (match-lambda
5386 ((source . target)
5387 (delete-file target)
5388 (minify source #:target target)))
5389 '(("jqueryui/jquery-ui.js" .
5390 "jqueryui/jquery-ui.min.js")
5391 ("showdown/src/showdown.js" .
5392 "showdown/compressed/showdown.js")
5393 ("datepicker/js/bootstrap-datepicker.js" .
5394 "datepicker/js/bootstrap-datepicker.min.js")
5395 ("ionrangeslider/js/ion.rangeSlider.js" .
5396 "ionrangeslider/js/ion.rangeSlider.min.js")
5397 ("bootstrap/js/bootstrap.js" .
5398 "bootstrap/js/bootstrap.min.js")
5399 ("shiny.js" .
5400 "shiny.min.js")
5401 ("jquery.js" .
5402 "jquery.min.js")))))
5403 #t)))))
5404 (propagated-inputs
5405 `(("r-httpuv" ,r-httpuv)
5406 ("r-mime" ,r-mime)
5407 ("r-jsonlite" ,r-jsonlite)
5408 ("r-xtable" ,r-xtable)
5409 ("r-digest" ,r-digest)
5410 ("r-htmltools" ,r-htmltools)
5411 ("r-r6" ,r-r6)
5412 ("r-sourcetools" ,r-sourcetools)))
5413 (inputs
5414 `(("js-datatables" ,js-datatables)
5415 ("js-html5shiv" ,js-html5shiv)
5416 ("js-json2" ,js-json2)
5417 ("js-respond" ,js-respond)
5418 ("js-selectize" ,js-selectize)
5419 ("js-strftime" ,js-strftime)
5420 ("js-highlight" ,js-highlight)
5421 ("js-es5-shim" ,js-es5-shim)))
5422 (home-page "http://shiny.rstudio.com")
5423 (synopsis "Easy interactive web applications with R")
5424 (description
5425 "Makes it incredibly easy to build interactive web applications
5426 with R. Automatic \"reactive\" binding between inputs and outputs and
5427 extensive prebuilt widgets make it possible to build beautiful,
5428 responsive, and powerful applications with minimal effort.")
5429 (license l:artistic2.0)))
5430
5431 (define-public r-shinydashboard
5432 (package
5433 (name "r-shinydashboard")
5434 (version "0.6.1")
5435 (source (origin
5436 (method url-fetch)
5437 (uri (cran-uri "shinydashboard" version))
5438 (sha256
5439 (base32
5440 "14zi7g5wrngy6lwi9xpvaid7727m6rfdijbb89al9likfhjqzqqy"))))
5441 (build-system r-build-system)
5442 ;; The directory inst/AdminLTE/ contains a minified JavaScript file.
5443 ;; Regenerate it from the included sources.
5444 (arguments
5445 `(#:modules ((guix build utils)
5446 (guix build r-build-system)
5447 (ice-9 popen))
5448 #:phases
5449 (modify-phases %standard-phases
5450 (add-after 'unpack 'generate-minified-javascript
5451 (lambda _
5452 (with-directory-excursion "inst/AdminLTE"
5453 (delete-file "app.min.js")
5454 (let ((minified (open-pipe* OPEN_READ "uglify-js" "app.js")))
5455 (call-with-output-file "app.min.js"
5456 (lambda (port)
5457 (dump-port minified port))))))))))
5458 (propagated-inputs
5459 `(("r-htmltools" ,r-htmltools)
5460 ("r-shiny" ,r-shiny)))
5461 (native-inputs
5462 `(("uglify-js" ,uglify-js)))
5463 (home-page "http://rstudio.github.io/shinydashboard/")
5464 (synopsis "Create dashboards with shiny")
5465 (description "This package provides an extension to the Shiny web
5466 application framework for R, making it easy to create attractive dashboards.")
5467 ;; This package includes software that was released under the Expat
5468 ;; license, but the whole package is released under GPL version 2 or
5469 ;; later.
5470 (license l:gpl2+)))
5471
5472 (define-public r-crosstalk
5473 (package
5474 (name "r-crosstalk")
5475 (version "1.0.0")
5476 (source
5477 (origin
5478 (method url-fetch)
5479 (uri (cran-uri "crosstalk" version))
5480 (sha256
5481 (base32
5482 "0lfa89vhrzi7a1rghmygcjr8gzddw35sinb3jx6g49mc9jias7mk"))))
5483 (build-system r-build-system)
5484 (propagated-inputs
5485 `(("r-ggplot2" ,r-ggplot2)
5486 ("r-htmltools" ,r-htmltools)
5487 ("r-jsonlite" ,r-jsonlite)
5488 ("r-lazyeval" ,r-lazyeval)
5489 ("r-r6" ,r-r6)
5490 ("r-shiny" ,r-shiny)))
5491 (home-page "https://rstudio.github.io/crosstalk/")
5492 (synopsis "Inter-widget interactivity for HTML widgets")
5493 (description
5494 "This package provides building blocks for allowing HTML widgets to
5495 communicate with each other, with Shiny or without (i.e. static @code{.html}
5496 files). It currently supports linked brushing and filtering.")
5497 (license l:expat)))
5498
5499 (define-public r-rook
5500 (package
5501 (name "r-rook")
5502 (version "1.1-1")
5503 (source
5504 (origin
5505 (method url-fetch)
5506 (uri (cran-uri "Rook" version))
5507 (sha256
5508 (base32
5509 "00s9a0kr9rwxvlq433daxjk4ji8m0w60hjdprf502msw9kxfrx00"))))
5510 (properties `((upstream-name . "Rook")))
5511 (build-system r-build-system)
5512 (propagated-inputs `(("r-brew" ,r-brew)))
5513 (home-page "https://cran.r-project.org/web/packages/Rook")
5514 (synopsis "Web server interface for R")
5515 (description
5516 "This package contains the Rook specification and convenience software
5517 for building and running Rook applications. A Rook application is an R
5518 reference class object that implements a @code{call} method or an R closure
5519 that takes exactly one argument, an environment, and returns a list with three
5520 named elements: the @code{status}, the @code{headers}, and the @code{body}.")
5521 (license l:gpl2)))
5522
5523 (define-public rss-bridge
5524 (package
5525 (name "rss-bridge")
5526 (version "2017-08-03")
5527 (source
5528 (origin
5529 (method url-fetch)
5530 (uri (string-append "https://github.com/RSS-Bridge/rss-bridge/archive/"
5531 version ".tar.gz"))
5532 (file-name (string-append name "-" version ".tar.gz"))
5533 (sha256
5534 (base32
5535 "05s16y552hbyj91s7bnlkx1bi64s6aw0fjy29az8via3i3b21yhl"))))
5536 (build-system trivial-build-system)
5537 (native-inputs
5538 `(("gzip" ,gzip)
5539 ("tar" ,tar)))
5540 (arguments
5541 '(#:modules ((guix build utils))
5542 #:builder
5543 (begin
5544 (use-modules (guix build utils)
5545 (ice-9 match))
5546 (let* ((out (assoc-ref %outputs "out"))
5547 (share-rss-bridge (string-append out "/share/rss-bridge")))
5548 (set-path-environment-variable
5549 "PATH" '("bin") (map (match-lambda ((_ . input) input))
5550 %build-inputs))
5551 (mkdir-p share-rss-bridge)
5552 (system* "tar" "xvf" (assoc-ref %build-inputs "source")
5553 "--strip-components" "1" "-C" share-rss-bridge)
5554 #t))))
5555 (home-page "https://github.com/RSS-Bridge/rss-bridge")
5556 (synopsis "Generate Atom feeds for social networking websites")
5557 (description "rss-bridge generates Atom feeds for social networking
5558 websites lacking feeds. Supported websites include Facebook, Twitter,
5559 Instagram and YouTube.")
5560 (license (list l:public-domain
5561 l:expat)))) ;; vendor/simplehtmldom/simple_html_dom.php
5562
5563 (define-public linkchecker
5564 (package
5565 (name "linkchecker")
5566 (version "9.3")
5567 (source
5568 (origin
5569 (method url-fetch)
5570 (uri (pypi-uri "LinkChecker" version))
5571 (sha256
5572 (base32
5573 "0v8pavf0bx33xnz1kwflv0r7lxxwj7vg3syxhy2wzza0wh6sc2pf"))))
5574 (build-system python-build-system)
5575 (inputs
5576 `(("python2-requests" ,python2-requests)))
5577 (arguments
5578 `(#:python ,python-2
5579 #:phases
5580 (modify-phases %standard-phases
5581 ;; Remove faulty python-requests version check. This has been fixed
5582 ;; upstream, and can be removed in version 9.4.
5583 (add-after 'unpack 'remove-python-requests-version
5584 (lambda _
5585 (substitute* "linkcheck/__init__.py"
5586 (("requests.__version__ <= '2.2.0'") "False"))
5587 #t)))))
5588 (home-page "https://linkcheck.github.io/linkchecker")
5589 (synopsis "Check websites for broken links")
5590 (description "LinkChecker is a website validator. It checks for broken
5591 links in websites. It is recursive and multithreaded providing output in
5592 colored or normal text, HTML, SQL, CSV, XML or as a sitemap graph. It
5593 supports checking HTTP/1.1, HTTPS, FTP, mailto, news, nntp, telnet and local
5594 file links.")
5595 (license (list l:gpl2+
5596 l:bsd-2 ; linkcheck/better_exchook2.py
5597 l:bsd-3 ; linkcheck/colorama.py
5598 l:psfl ; linkcheck/gzip2.py
5599 l:expat ; linkcheck/mem.py
5600 ;; FIXME: Unbundle dnspython and miniboa
5601 ;; This issue has been raised upstream
5602 ;; https://github.com/wummel/linkchecker/issues/729
5603 l:isc ; third_party/dnspython
5604 l:asl2.0)))) ; third_party/miniboa
5605
5606 (define-public cadaver
5607 (package
5608 (name "cadaver")
5609 (version "0.23.3")
5610 (source
5611 (origin
5612 (method url-fetch)
5613 (uri (string-append "http://www.webdav.org/cadaver/"
5614 name "-" version ".tar.gz"))
5615 (sha256
5616 (base32
5617 "1jizq69ifrjbjvz5y79wh1ny94gsdby4gdxwjad4bfih6a5fck7x"))))
5618 (build-system gnu-build-system)
5619 ;; TODO: Unbundle libneon and make build succeed with new neon.
5620 (arguments
5621 `(#:configure-flags (list "--with-ssl=openssl")
5622 #:tests? #f)) ;No tests included
5623 (native-inputs
5624 `(("gettext" ,gnu-gettext)
5625 ("pkg-config" ,pkg-config)
5626 ("intltool" ,intltool)))
5627 (inputs
5628 `(("expat" ,expat)
5629 ("openssl" ,openssl)))
5630 (home-page "http://www.webdav.org/cadaver")
5631 (synopsis "Command-line WebDAV client")
5632 (description
5633 "Cadaver is a command-line WebDAV client for Unix. It supports
5634 file upload, download, on-screen display, namespace operations (move/copy),
5635 collection creation and deletion, and locking operations.")
5636 (license l:gpl2)))
5637
5638 (define-public python-py-ubjson
5639 (package
5640 (name "python-py-ubjson")
5641 (version "0.10.0")
5642 (source
5643 (origin
5644 (method url-fetch)
5645 (uri (pypi-uri "py-ubjson" version))
5646 (sha256
5647 (base32
5648 "03l9m9w5ip4hw0y69wlys5gzsfb7zcq3a77blj88grgiqhn5vm5n"))))
5649 (build-system python-build-system)
5650 (home-page "https://github.com/Iotic-Labs/py-ubjson")
5651 (synopsis "Universal Binary JSON encoder/decoder")
5652 (description
5653 "Py-ubjson is a Python module providing an Universal Binary JSON
5654 encoder/decoder based on the draft-12 specification for UBJSON.")
5655 (license l:asl2.0)))
5656
5657 (define-public java-tomcat
5658 (package
5659 (name "java-tomcat")
5660 (version "8.5.28")
5661 (source (origin
5662 (method url-fetch)
5663 (uri (string-append "mirror://apache/tomcat/tomcat-8/v"
5664 version "/src/apache-tomcat-" version "-src.tar.gz"))
5665 (sha256
5666 (base32
5667 "0q2bc3sajrmcx3z3vhhwp78y47ryc2ky8ssbdmfk24zvqdb76hvl"))))
5668 (build-system ant-build-system)
5669 (inputs
5670 `(("java-eclipse-jdt-core" ,java-eclipse-jdt-core)))
5671 (native-inputs
5672 `(("java-junit" ,java-junit)))
5673 (arguments
5674 `(#:build-target "package"
5675 #:tests? #f; requires downloading some files.
5676 #:phases
5677 (modify-phases %standard-phases
5678 (add-after 'unpack 'prevent-download
5679 (lambda _
5680 ;; This directory must exist
5681 (mkdir "downloads")
5682 ;; We patch build.xml so it doesn't download any dependency, because
5683 ;; we already have all of them.
5684 (substitute* "build.xml"
5685 (("download-compile,") "")
5686 (("depends=\"validate\"") "depends=\"build-prepare\"")
5687 ((",download-validate") ""))
5688 #t))
5689 (add-after 'unpack 'generate-properties
5690 (lambda _
5691 ;; This could have been passed to make-flags, but getcwd returns
5692 ;; a different directory then.
5693 (with-output-to-file "build.properties"
5694 (lambda _
5695 (display
5696 (string-append "base.path=" (getcwd) "/downloads\n"))))
5697 #t))
5698 (replace 'install
5699 (install-jars "output/build/lib")))))
5700 (home-page "https://tomcat.apache.org")
5701 (synopsis "Java Servlet, JavaServer Pages, Java Expression Language and Java
5702 WebSocket")
5703 (description "Apache Tomcat is a free implementation of the Java
5704 Servlet, JavaServer Pages, Java Expression Language and Java WebSocket
5705 technologies.")
5706 (license l:asl2.0)))
5707
5708 (define-public java-eclipse-jetty-test-helper
5709 (package
5710 (name "java-eclipse-jetty-test-helper")
5711 (version "4.2")
5712 (source (origin
5713 (method url-fetch)
5714 (uri (string-append "https://github.com/eclipse/jetty.toolchain/"
5715 "archive/jetty-test-helper-" version ".tar.gz"))
5716 (sha256
5717 (base32
5718 "1jd6r9wc26fa11si4rn2gvy8ml8q4zw1nr6v04mjp8wvwpgvzwx5"))))
5719 (build-system ant-build-system)
5720 (arguments
5721 `(#:jar-name "eclipse-jetty-test-helper.jar"
5722 #:source-dir "src/main/java"
5723 #:test-dir "src/test"
5724 #:jdk ,icedtea-8
5725 #:phases
5726 (modify-phases %standard-phases
5727 (add-before 'configure 'chdir
5728 (lambda _
5729 (chdir "jetty-test-helper")))
5730 (add-before 'build 'fix-paths
5731 (lambda _
5732 ;; TODO:
5733 ;; This file assumes that the build directory is named "target"
5734 ;; but it is not the case with our ant-build-system. Once we have
5735 ;; maven though, we will have to rebuild this package because this
5736 ;; assumption is correct with maven-build-system.
5737 (substitute*
5738 "src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java"
5739 (("\"target\"") "\"build\"")
5740 (("\"tests\"") "\"test-classes\""))
5741 ;; Tests assume we are building with maven, so that the build
5742 ;; directory is named "target", and not "build".
5743 (with-directory-excursion "src/test/java/org/eclipse/jetty/toolchain/test"
5744 (substitute* '("FSTest.java" "OSTest.java" "TestingDirTest.java"
5745 "MavenTestingUtilsTest.java")
5746 (("target/tests") "build/test-classes")
5747 (("\"target") "\"build")))
5748 #t)))))
5749 (inputs
5750 `(("junit" ,java-junit)
5751 ("hamcrest" ,java-hamcrest-all)))
5752 (home-page "https://www.eclipse.org/jetty/")
5753 (synopsis "Helper classes for jetty tests")
5754 (description "This packages contains helper classes for testing the Jetty
5755 Web Server.")
5756 ;; This program is licensed under both epl and asl.
5757 (license (list l:epl1.0 l:asl2.0))))
5758
5759 (define-public java-eclipse-jetty-perf-helper
5760 (package
5761 (inherit java-eclipse-jetty-test-helper)
5762 (name "java-eclipse-jetty-perf-helper")
5763 (arguments
5764 `(#:jar-name "eclipse-jetty-perf-helper.jar"
5765 #:source-dir "src/main/java"
5766 #:tests? #f; no tests
5767 #:jdk ,icedtea-8
5768 #:phases
5769 (modify-phases %standard-phases
5770 (add-before 'configure 'chdir
5771 (lambda _
5772 (chdir "jetty-perf-helper")
5773 #t)))))
5774 (inputs
5775 `(("hdrhistogram" ,java-hdrhistogram)))))
5776
5777 (define-public java-eclipse-jetty-util
5778 (package
5779 (name "java-eclipse-jetty-util")
5780 (version "9.4.6")
5781 (source (origin
5782 (method url-fetch)
5783 (uri (string-append "https://github.com/eclipse/jetty.project/"
5784 "archive/jetty-" version ".v20170531.tar.gz"))
5785 (sha256
5786 (base32
5787 "0x7kbdvkmgr6kbsmbwiiyv3bb0d6wk25frgvld9cf8540136z9p1"))))
5788 (build-system ant-build-system)
5789 (arguments
5790 `(#:jar-name "eclipse-jetty-util.jar"
5791 #:source-dir "src/main/java"
5792 #:test-exclude
5793 (list "**/Abstract*.java"
5794 ;; requires network
5795 "**/InetAddressSetTest.java"
5796 ;; Assumes we are using maven
5797 "**/TypeUtilTest.java"
5798 ;; Error on the style of log
5799 "**/StdErrLogTest.java")
5800 #:jdk ,icedtea-8
5801 #:phases
5802 (modify-phases %standard-phases
5803 (add-before 'configure 'chdir
5804 (lambda _
5805 (chdir "jetty-util")
5806 #t)))))
5807 (inputs
5808 `(("slf4j" ,java-slf4j-api)
5809 ("servlet" ,java-tomcat)))
5810 (native-inputs
5811 `(("junit" ,java-junit)
5812 ("hamcrest" ,java-hamcrest-all)
5813 ("perf-helper" ,java-eclipse-jetty-perf-helper)
5814 ("test-helper" ,java-eclipse-jetty-test-helper)))
5815 (home-page "https://www.eclipse.org/jetty/")
5816 (synopsis "Utility classes for Jetty")
5817 (description "The Jetty Web Server provides an HTTP server and Servlet
5818 container capable of serving static and dynamic content either from a standalone
5819 or embedded instantiation. This package provides utility classes.")
5820 (license (list l:epl1.0 l:asl2.0))))
5821
5822 ;; This version is required by maven-wagon
5823 (define-public java-eclipse-jetty-util-9.2
5824 (package
5825 (inherit java-eclipse-jetty-util)
5826 (version "9.2.22")
5827 (source (origin
5828 (method url-fetch)
5829 (uri (string-append "https://github.com/eclipse/jetty.project/"
5830 "archive/jetty-" version ".v20170606.tar.gz"))
5831 (sha256
5832 (base32
5833 "1i51qlsd7h06d35kx5rqpzbfadbcszycx1iwr6vz7qc9gf9f29la"))))
5834 (arguments
5835 `(#:jar-name "eclipse-jetty-util.jar"
5836 #:source-dir "src/main/java"
5837 #:jdk ,icedtea-8
5838 #:test-exclude
5839 (list "**/Abstract*.java"
5840 ;; requires network
5841 "**/InetAddressSetTest.java"
5842 ;; Assumes we are using maven
5843 "**/TypeUtilTest.java"
5844 ;; We don't have an implementation for slf4j
5845 "**/LogTest.java"
5846 ;; Error on the style of log
5847 "**/StdErrLogTest.java")
5848 #:phases
5849 (modify-phases %standard-phases
5850 (add-before 'configure 'chdir
5851 (lambda _
5852 (chdir "jetty-util")
5853 #t))
5854 (add-before 'build 'fix-test-sources
5855 (lambda _
5856 ;; We need to fix issues caused by changes in newer versions of
5857 ;; jetty-test-helper
5858 (let ((src "src/test/java/org/eclipse/jetty/util/resource"))
5859 (substitute* (string-append src "/AbstractFSResourceTest.java")
5860 (("testdir.getDir\\(\\)") "testdir.getPath().toFile()")
5861 (("testdir.getFile\\(\"foo\"\\)")
5862 "testdir.getPathFile(\"foo\").toFile()")
5863 (("testdir.getFile\\(name\\)")
5864 "testdir.getPathFile(name).toFile()")))
5865 #t)))))))
5866
5867 (define-public java-eclipse-jetty-io
5868 (package
5869 (inherit java-eclipse-jetty-util)
5870 (name "java-eclipse-jetty-io")
5871 (arguments
5872 `(#:jar-name "eclipse-jetty-io.jar"
5873 #:source-dir "src/main/java"
5874 #:jdk ,icedtea-8
5875 #:test-exclude (list "**/Abstract*.java"
5876 ;; Abstract class
5877 "**/EndPointTest.java")
5878 #:phases
5879 (modify-phases %standard-phases
5880 (add-before 'configure 'chdir
5881 (lambda _
5882 (chdir "jetty-io")
5883 #t)))))
5884 (inputs
5885 `(("slf4j" ,java-slf4j-api)
5886 ("servlet" ,java-tomcat)
5887 ("util" ,java-eclipse-jetty-util)))
5888 (synopsis "Jetty :: IO Utility")
5889 (description "The Jetty Web Server provides an HTTP server and Servlet
5890 container capable of serving static and dynamic content either from a standalone
5891 or embedded instantiation. This package provides IO-related utility classes.")))
5892
5893 (define-public java-eclipse-jetty-io-9.2
5894 (package
5895 (inherit java-eclipse-jetty-io)
5896 (version (package-version java-eclipse-jetty-util-9.2))
5897 (source (package-source java-eclipse-jetty-util-9.2))
5898 (inputs
5899 `(("util" ,java-eclipse-jetty-util-9.2)
5900 ,@(package-inputs java-eclipse-jetty-util-9.2)))
5901 (native-inputs
5902 `(("mockito" ,java-mockito-1)
5903 ("cglib" ,java-cglib)
5904 ("objenesis" ,java-objenesis)
5905 ("asm" ,java-asm)
5906 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
5907
5908 (define-public java-eclipse-jetty-http
5909 (package
5910 (inherit java-eclipse-jetty-util)
5911 (name "java-eclipse-jetty-http")
5912 (arguments
5913 `(#:jar-name "eclipse-jetty-http.jar"
5914 #:source-dir "src/main/java"
5915 #:jdk ,icedtea-8
5916 #:phases
5917 (modify-phases %standard-phases
5918 (add-before 'configure 'chdir
5919 (lambda _
5920 (chdir "jetty-http")
5921 #t))
5922 (add-before 'build 'copy-resources
5923 (lambda _
5924 (mkdir-p "build/classes")
5925 (copy-recursively "src/main/resources/" "build/classes/")
5926 #t)))))
5927 (inputs
5928 `(("slf4j" ,java-slf4j-api)
5929 ("servlet" ,java-tomcat)
5930 ("io" ,java-eclipse-jetty-io)
5931 ("util" ,java-eclipse-jetty-util)))
5932 (synopsis "Jetty :: Http Utility")
5933 (description "The Jetty Web Server provides an HTTP server and Servlet
5934 container capable of serving static and dynamic content either from a standalone
5935 or embedded instantiation. This package provides HTTP-related utility classes.")))
5936
5937 (define-public java-eclipse-jetty-http-9.2
5938 (package
5939 (inherit java-eclipse-jetty-http)
5940 (version (package-version java-eclipse-jetty-util-9.2))
5941 (source (package-source java-eclipse-jetty-util-9.2))
5942 (inputs
5943 `(("util" ,java-eclipse-jetty-util-9.2)
5944 ("io" ,java-eclipse-jetty-io-9.2)
5945 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
5946
5947 (define-public java-eclipse-jetty-jmx
5948 (package
5949 (inherit java-eclipse-jetty-util)
5950 (name "java-eclipse-jetty-jmx")
5951 (arguments
5952 `(#:jar-name "eclipse-jetty-jmx.jar"
5953 #:source-dir "src/main/java"
5954 #:jdk ,icedtea-8
5955 #:tests? #f; FIXME: requires com.openpojo.validation
5956 #:phases
5957 (modify-phases %standard-phases
5958 (add-before 'configure 'chdir
5959 (lambda _
5960 (chdir "jetty-jmx")
5961 #t)))))
5962 (inputs
5963 `(("slf4j" ,java-slf4j-api)
5964 ("servlet" ,java-tomcat)
5965 ("util" ,java-eclipse-jetty-util)))
5966 (synopsis "Jetty :: JMX Management")
5967 (description "The Jetty Web Server provides an HTTP server and Servlet
5968 container capable of serving static and dynamic content either from a standalone
5969 or embedded instantiation. This package provides the JMX management.")))
5970
5971 (define-public java-eclipse-jetty-jmx-9.2
5972 (package
5973 (inherit java-eclipse-jetty-jmx)
5974 (version (package-version java-eclipse-jetty-util-9.2))
5975 (source (package-source java-eclipse-jetty-util-9.2))
5976 (inputs
5977 `(("util" ,java-eclipse-jetty-util-9.2)
5978 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
5979
5980 (define java-eclipse-jetty-http-test-classes
5981 (package
5982 (inherit java-eclipse-jetty-util)
5983 (name "java-eclipse-jetty-http-test-classes")
5984 (arguments
5985 `(#:jar-name "eclipse-jetty-http.jar"
5986 #:source-dir "src/test"
5987 #:tests? #f
5988 #:jdk ,icedtea-8
5989 #:phases
5990 (modify-phases %standard-phases
5991 (add-before 'configure 'chdir
5992 (lambda _
5993 (chdir "jetty-http"))))))
5994 (inputs
5995 `(("slf4j" ,java-slf4j-api)
5996 ("servlet" ,java-tomcat)
5997 ("http" ,java-eclipse-jetty-http)
5998 ("io" ,java-eclipse-jetty-io)
5999 ("util" ,java-eclipse-jetty-util)))))
6000
6001 (define java-eclipse-jetty-http-test-classes-9.2
6002 (package
6003 (inherit java-eclipse-jetty-http-test-classes)
6004 (version (package-version java-eclipse-jetty-util-9.2))
6005 (source (package-source java-eclipse-jetty-util-9.2))
6006 (inputs
6007 `(("http" ,java-eclipse-jetty-http-9.2)
6008 ,@(package-inputs java-eclipse-jetty-http-9.2)))))
6009
6010 (define-public java-eclipse-jetty-server
6011 (package
6012 (inherit java-eclipse-jetty-util)
6013 (name "java-eclipse-jetty-server")
6014 (arguments
6015 `(#:jar-name "eclipse-jetty-server.jar"
6016 #:source-dir "src/main/java"
6017 #:jdk ,icedtea-8
6018 #:tests? #f; requires a mockito version we don't have
6019 #:phases
6020 (modify-phases %standard-phases
6021 (add-before 'configure 'chdir
6022 (lambda _
6023 (chdir "jetty-server")
6024 #t))
6025 (add-before 'build 'fix-source
6026 (lambda _
6027 ;; Explicit casts to prevent build failures
6028 (substitute* "src/main/java/org/eclipse/jetty/server/Request.java"
6029 (("append\\(LazyList")
6030 "append((CharSequence)LazyList"))
6031 (substitute*
6032 "src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java"
6033 (((string-append
6034 "Class<\\? extends EventListener> clazz = _classLoader==null"
6035 "\\?Loader.loadClass\\(ContextHandler.class,className\\):"
6036 "_classLoader.loadClass\\(className\\);"))
6037 (string-append "Class<? extends EventListener> clazz = "
6038 "(Class<? extends EventListener>) "
6039 "(_classLoader==null?Loader.loadClass("
6040 "ContextHandler.class,className):"
6041 "_classLoader.loadClass(className));")))
6042 #t)))))
6043 (inputs
6044 `(("slf4j" ,java-slf4j-api)
6045 ("servlet" ,java-tomcat)
6046 ("http" ,java-eclipse-jetty-http)
6047 ("io" ,java-eclipse-jetty-io)
6048 ("jmx" ,java-eclipse-jetty-jmx)
6049 ("util" ,java-eclipse-jetty-util)))
6050 (native-inputs
6051 `(("test-classes" ,java-eclipse-jetty-http-test-classes)
6052 ,@(package-native-inputs java-eclipse-jetty-util)))
6053 (synopsis "Core jetty server artifact")
6054 (description "The Jetty Web Server provides an HTTP server and Servlet
6055 container capable of serving static and dynamic content either from a standalone
6056 or embedded instantiation. This package provides the core jetty server
6057 artifact.")))
6058
6059 (define-public java-eclipse-jetty-server-9.2
6060 (package
6061 (inherit java-eclipse-jetty-server)
6062 (version (package-version java-eclipse-jetty-util-9.2))
6063 (source (package-source java-eclipse-jetty-util-9.2))
6064 (inputs
6065 `(("util" ,java-eclipse-jetty-util-9.2)
6066 ("jmx" ,java-eclipse-jetty-jmx-9.2)
6067 ("io" ,java-eclipse-jetty-io-9.2)
6068 ("http" ,java-eclipse-jetty-http-9.2)
6069 ,@(package-inputs java-eclipse-jetty-util-9.2)))
6070 (native-inputs
6071 `(("test-classes" ,java-eclipse-jetty-http-test-classes-9.2)
6072 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
6073
6074 (define-public java-eclipse-jetty-security
6075 (package
6076 (inherit java-eclipse-jetty-util)
6077 (name "java-eclipse-jetty-security")
6078 (arguments
6079 `(#:jar-name "eclipse-jetty-security.jar"
6080 #:source-dir "src/main/java"
6081 #:jdk ,icedtea-8
6082 #:phases
6083 (modify-phases %standard-phases
6084 (add-before 'configure 'chdir
6085 (lambda _
6086 (chdir "jetty-security")
6087 #t)))))
6088 (inputs
6089 `(("slf4j" ,java-slf4j-api)
6090 ("servlet" ,java-tomcat)
6091 ("http" ,java-eclipse-jetty-http)
6092 ("server" ,java-eclipse-jetty-server)
6093 ("util" ,java-eclipse-jetty-util)))
6094 (native-inputs
6095 `(("io" ,java-eclipse-jetty-io)
6096 ,@(package-native-inputs java-eclipse-jetty-util)))
6097 (synopsis "Jetty security infrastructure")
6098 (description "The Jetty Web Server provides an HTTP server and Servlet
6099 container capable of serving static and dynamic content either from a standalone
6100 or embedded instantiation. This package provides the core jetty security
6101 infrastructure")))
6102
6103 (define-public java-eclipse-jetty-security-9.2
6104 (package
6105 (inherit java-eclipse-jetty-security)
6106 (version (package-version java-eclipse-jetty-util-9.2))
6107 (source (package-source java-eclipse-jetty-util-9.2))
6108 (inputs
6109 `(("util" ,java-eclipse-jetty-util-9.2)
6110 ("http" ,java-eclipse-jetty-http-9.2)
6111 ("server" ,java-eclipse-jetty-server-9.2)
6112 ,@(package-inputs java-eclipse-jetty-util-9.2)))
6113 (native-inputs
6114 `(("io" ,java-eclipse-jetty-io-9.2)
6115 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
6116
6117 (define-public java-eclipse-jetty-servlet
6118 (package
6119 (inherit java-eclipse-jetty-util)
6120 (name "java-eclipse-jetty-servlet")
6121 (arguments
6122 `(#:jar-name "eclipse-jetty-servlet.jar"
6123 #:source-dir "src/main/java"
6124 #:jdk ,icedtea-8
6125 #:phases
6126 (modify-phases %standard-phases
6127 (add-before 'configure 'chdir
6128 (lambda _
6129 (chdir "jetty-servlet")
6130 #t)))))
6131 (inputs
6132 `(("slf4j" ,java-slf4j-api)
6133 ("servlet" ,java-tomcat)
6134 ("http" ,java-eclipse-jetty-http)
6135 ("http-test" ,java-eclipse-jetty-http-test-classes)
6136 ("io" ,java-eclipse-jetty-io)
6137 ("jmx" ,java-eclipse-jetty-jmx)
6138 ("security" ,java-eclipse-jetty-security)
6139 ("server" ,java-eclipse-jetty-server)
6140 ("util" ,java-eclipse-jetty-util)))
6141 (synopsis "Jetty Servlet Container")
6142 (description "The Jetty Web Server provides an HTTP server and Servlet
6143 container capable of serving static and dynamic content either from a standalone
6144 or embedded instantiation. This package provides the core jetty servlet
6145 container.")))
6146
6147 (define-public java-eclipse-jetty-servlet-9.2
6148 (package
6149 (inherit java-eclipse-jetty-servlet)
6150 (version (package-version java-eclipse-jetty-util-9.2))
6151 (source (package-source java-eclipse-jetty-util-9.2))
6152 (arguments
6153 `(#:jar-name "eclipse-jetty-servlet.jar"
6154 #:source-dir "src/main/java"
6155 #:jdk ,icedtea-8
6156 #:tests? #f; doesn't work
6157 #:phases
6158 (modify-phases %standard-phases
6159 (add-before 'configure 'chdir
6160 (lambda _
6161 (chdir "jetty-servlet")
6162 #t)))))
6163 (inputs
6164 `(("util" ,java-eclipse-jetty-util-9.2)
6165 ("jmx" ,java-eclipse-jetty-jmx-9.2)
6166 ("io" ,java-eclipse-jetty-io-9.2)
6167 ("http" ,java-eclipse-jetty-http-9.2)
6168 ("security" ,java-eclipse-jetty-security-9.2)
6169 ("http-test" ,java-eclipse-jetty-http-test-classes-9.2)
6170 ("server" ,java-eclipse-jetty-server-9.2)
6171 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
6172
6173 (define-public java-jsoup
6174 (package
6175 (name "java-jsoup")
6176 (version "1.10.3")
6177 (source (origin
6178 (method url-fetch)
6179 (uri (string-append "https://github.com/jhy/jsoup/archive/jsoup-"
6180 version ".tar.gz"))
6181 (sha256
6182 (base32
6183 "0xbzw7rjv7s4nz1xk9b2cnin6zkpaldmc3svk71waa7hhjgp0a20"))))
6184 (build-system ant-build-system)
6185 (arguments
6186 `(#:jar-name "jsoup.jar"
6187 #:source-dir "src/main/java"
6188 #:phases
6189 (modify-phases %standard-phases
6190 (add-before 'build 'copy-resources
6191 (lambda _
6192 (let ((classes-dir (string-append (getcwd) "/build/classes")))
6193 (with-directory-excursion "src/main/java"
6194 (for-each (lambda (file)
6195 (let ((dist (string-append classes-dir "/" file)))
6196 (mkdir-p (dirname dist))
6197 (copy-file file dist)))
6198 (find-files "." ".*.properties"))))
6199 #t)))))
6200 (native-inputs
6201 `(("java-junit" ,java-junit)
6202 ("java-hamcrest-core" ,java-hamcrest-core)
6203 ("java-gson" ,java-gson)))
6204 (home-page "https://jsoup.org")
6205 (synopsis "HTML parser")
6206 (description "Jsoup is a Java library for working with real-world HTML. It
6207 provides a very convenient API for extracting and manipulating data, using the
6208 best of DOM, CSS, and jQuery-like methods.")
6209 (license l:expat)))
6210
6211 (define-public tidyp
6212 (package
6213 (name "tidyp")
6214 (version "1.04")
6215 (source
6216 (origin
6217 (method url-fetch)
6218 (uri (string-append "https://github.com/downloads/petdance/tidyp/tidyp-"
6219 version ".tar.gz"))
6220 (sha256
6221 (base32
6222 "0f5ky0ih4vap9c6j312jn73vn8m2bj69pl2yd3a5nmv35k9zmc10"))))
6223 (build-system gnu-build-system)
6224 ;; ./test-thing.sh tries to run ./testall.sh, which is not included.
6225 (arguments `(#:tests? #f))
6226 (home-page "http://www.tidyp.com/")
6227 (synopsis "Validate HTML")
6228 (description "Tidyp is a program that can validate your HTML, as well as
6229 modify it to be more clean and standard. tidyp does not validate HTML 5.
6230
6231 libtidyp is the library on which the program is based. It can be used by any
6232 other program that can interface to it. The Perl module @code{HTML::Tidy} is
6233 based on this library, allowing Perl programmers to easily validate HTML.")
6234 ;; See htmldoc/license.html
6235 (license l:bsd-3)))
6236
6237 (define-public perl-html-tidy
6238 (package
6239 (name "perl-html-tidy")
6240 (version "1.60")
6241 (source
6242 (origin
6243 (method url-fetch)
6244 (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/HTML-Tidy-"
6245 version ".tar.gz"))
6246 (sha256
6247 (base32
6248 "1iyp2fd6j75cn1xvcwl2lxr8qpjxssy2360cyqn6g3kzd1fzdyxw"))))
6249 (build-system perl-build-system)
6250 (arguments
6251 '(#:phases
6252 (modify-phases %standard-phases
6253 (add-after 'unpack 'fix-tidyp-paths
6254 (lambda* (#:key inputs #:allow-other-keys)
6255 (substitute* "Makefile.PL"
6256 (("^my \\$inc = \"" line)
6257 (string-append line
6258 "-I" (assoc-ref inputs "tidyp") "/include/tidyp "))
6259 (("-L/usr/lib")
6260 (string-append
6261 "-L" (assoc-ref inputs "tidyp") "/lib")))
6262 #t)))))
6263 (inputs
6264 `(("perl-libwww" ,perl-libwww)
6265 ("tidyp" ,tidyp)))
6266 (native-inputs
6267 `(("perl-test-exception" ,perl-test-exception)))
6268 (home-page "http://search.cpan.org/dist/HTML-Tidy/")
6269 (synopsis "(X)HTML validation in a Perl object")
6270 (description "@code{HTML::Tidy} is an HTML checker in a handy dandy
6271 object. It's meant as a replacement for @code{HTML::Lint}, which is written
6272 in Perl but is not nearly as capable as @code{HTML::Tidy}.")
6273 (license l:artistic2.0)))
6274
6275 (define-public geomyidae
6276 (package
6277 (name "geomyidae")
6278 (version "0.29")
6279 (source
6280 (origin
6281 (method url-fetch)
6282 (uri (string-append "http://git.r-36.net/geomyidae/snapshot/"
6283 "geomyidae-" version ".tar.bz2"))
6284 (sha256
6285 (base32
6286 "0qxgxp6psfrgfqhndyq2z54nb1qrmvvljddnxdwp207jbz366bja"))))
6287 (build-system gnu-build-system)
6288 (arguments
6289 `(#:make-flags (list "CC=gcc"
6290 (string-append "PREFIX="
6291 (assoc-ref %outputs "out")))
6292 #:tests? #f ;no tests
6293 #:phases (modify-phases %standard-phases
6294 (delete 'configure))))
6295 (home-page "http://git.r-36.net/geomyidae")
6296 (synopsis "Small Gopher server")
6297 (description
6298 "Geomyidae is a server for distributed hypertext protocol Gopher. Its
6299 features include:
6300
6301 @enumerate
6302 @item Gopher menus (see @file{index.gph} for an example);
6303 @item directory listings (if no @file{index.gph} was found);
6304 @item CGI support (@file{.cgi} files are executed);
6305 @item search support in CGI files;
6306 @item logging with multiple log levels.
6307 @end enumerate\n")
6308 (license l:expat)))
6309
6310 (define-public cat-avatar-generator
6311 (package
6312 (name "cat-avatar-generator")
6313 (version "1")
6314 (source (origin
6315 (method git-fetch)
6316 (uri (git-reference
6317 (url "https://framagit.org/Deevad/cat-avatar-generator.git")
6318 (commit "71c0c662742cafe8afd2d2d50ec84243113e35ad")))
6319 (file-name (string-append name "-" version))
6320 (sha256
6321 (base32
6322 "0s7b5whqsmfa57prbgl66ym551kg6ly0z14h5dgrlx4lqm70y2yw"))))
6323 (build-system trivial-build-system)
6324 (arguments
6325 `(#:modules ((guix build utils)
6326 (srfi srfi-1)
6327 (srfi srfi-26))
6328 #:builder
6329 (begin
6330 (use-modules (guix build utils)
6331 (srfi srfi-1)
6332 (srfi srfi-26))
6333 (let ((source (assoc-ref %build-inputs "source"))
6334 (php-dir (string-append %output "/share/web/" ,name "/")))
6335 ;; The cache directory must not be in the store, but in a writable
6336 ;; location. The webserver will give us this location.
6337 (copy-recursively source php-dir)
6338 (substitute* (string-append php-dir "/cat-avatar-generator.php")
6339 (("\\$cachepath = .*")
6340 "if(isset($_SERVER['CACHE_DIR']))
6341 $cachepath = $_SERVER['CACHE_DIR'];
6342 else
6343 die('You need to set the CACHE_DIR variable first.');"))))))
6344 (home-page "https://framagit.org/Deevad/cat-avatar-generator")
6345 (synopsis "Random avatar generator")
6346 (description "Cat avatar generator is a generator of cat pictures optimised
6347 to generate random avatars, or defined avatar from a \"seed\". This is a
6348 derivation by David Revoy from the original MonsterID by Andreas Gohr.")
6349 ;; expat for the code, CC-BY 4.0 for the artwork
6350 (license (list l:expat
6351 l:cc-by4.0))))
6352
6353 (define-public nghttp2
6354 (package
6355 (name "nghttp2")
6356 (version "1.31.0")
6357 (source
6358 (origin
6359 (method url-fetch)
6360 (uri (string-append "https://github.com/nghttp2/nghttp2/"
6361 "releases/download/v" version "/"
6362 name "-" version ".tar.xz"))
6363 (sha256
6364 (base32
6365 "1ivs74v9sa2sds3dq0s7vn9bkmhr2hgwyg1an1rah3agqwnkqmrn"))))
6366 (build-system gnu-build-system)
6367 (outputs (list "out"
6368 "lib")) ; only libnghttp2
6369 (native-inputs
6370 `(("pkg-config" ,pkg-config)
6371
6372 ;; Required by tests.
6373 ("cunit" ,cunit)
6374 ("tzdata" ,tzdata-for-tests)))
6375 (inputs
6376 ;; Required to build the tools (i.e. without ‘--enable-lib-only’).
6377 `(("c-ares" ,c-ares)
6378 ("jansson" ,jansson) ; for HPACK tools
6379 ("jemalloc" ,jemalloc) ; fight nghttpd{,x} heap fragmentation
6380 ("libev" ,libev)
6381 ("libxml2" ,libxml2) ; for ‘nghttp -a’
6382 ("openssl" ,openssl)))
6383 (arguments
6384 `(#:configure-flags
6385 (list (string-append "--libdir=" (assoc-ref %outputs "lib") "/lib")
6386 "--enable-app" ; build all the tools
6387 "--enable-hpack-tools" ; ...all the tools
6388 "--disable-examples"
6389 "--disable-static") ; don't bother building .a files
6390 #:phases
6391 (modify-phases %standard-phases
6392 (add-after 'unpack 'break-circular-reference
6393 ;; libnghttp2.pc by default retains a reference to the ‘out’ output,
6394 ;; which is not allowed. Break this cycle. While we could install
6395 ;; only the library to ‘out’ and move everything else to a separate
6396 ;; output, this would inconvenience the majority of (human) users.
6397 (lambda* (#:key outputs #:allow-other-keys)
6398 (substitute* "lib/libnghttp2.pc.in"
6399 (("@prefix@")
6400 (assoc-ref outputs "lib")))
6401 #t))
6402 (add-before 'check 'set-timezone-directory
6403 (lambda* (#:key inputs #:allow-other-keys)
6404 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
6405 "/share/zoneinfo"))
6406 #t)))))
6407 (home-page "https://nghttp2.org/")
6408 (synopsis "HTTP/2 protocol client, proxy, server, and library")
6409 (description
6410 "nghttp2 implements the Hypertext Transfer Protocol, version
6411 2 (@dfn{HTTP/2}).
6412
6413 A reusable C library provides the HTTP/2 framing layer, with several tools built
6414 on top of it:
6415
6416 @itemize
6417 @item @command{nghttp}, a command-line HTTP/2 client. It exposes many advanced
6418 and low-level aspects of the protocol and is useful for debugging.
6419 @item @command{nghttpd}, a fast, multi-threaded HTTP/2 static web server that
6420 serves files from a local directory.
6421 @item @command{nghttpx}, a fast, multi-threaded HTTP/2 reverse proxy that can be
6422 deployed in front of existing web servers that don't support HTTP/2.
6423 Both @command{nghttpd} and @command{nghttpx} can fall back to HTTP/1.1 for
6424 backwards compatibilty with clients that don't speak HTTP/2.
6425 @item @command{h2load} for benchmarking (only!) your own HTTP/2 servers.
6426 @item HTTP/2 uses a header compression method called @dfn{HPACK}.
6427 nghttp2 provides a HPACK encoder and decoder as part of its public API.
6428 @item @command{deflatehd} converts JSON data or HTTP/1-style header fields to
6429 compressed JSON header blocks.
6430 @item @command{inflatehd} converts such compressed headers back to JSON pairs.
6431 @end itemize\n")
6432 (license l:expat)))