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