gnu: r-httpuv: Update to 1.4.0.
[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.14.0")
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 "1d9c0avfpbwvzyg53b59ks8shpnrxnbnshcd7ziizflsyv5vw5ax"))))
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.4.0")
3789 (source (origin
3790 (method url-fetch)
3791 (uri (cran-uri "httpuv" version))
3792 (sha256
3793 (base32
3794 "076blaj0vzwfgx212lvgscczmiy9n13izdshrm6xb9vpcmklm95m"))))
3795 (build-system r-build-system)
3796 (native-inputs `(("r-rcpp" ,r-rcpp)))
3797 (propagated-inputs
3798 `(("r-bh" ,r-bh)
3799 ("r-later" ,r-later)
3800 ("r-promises" ,r-promises)))
3801 (home-page "https://github.com/rstudio/httpuv")
3802 (synopsis "HTTP and WebSocket server library for R")
3803 (description
3804 "The httpuv package provides low-level socket and protocol support for
3805 handling HTTP and WebSocket requests directly from within R. It is primarily
3806 intended as a building block for other packages, rather than making it
3807 particularly easy to create complete web applications using httpuv alone.")
3808 ;; This package includes third-party code that was originally released
3809 ;; under various non-copyleft licenses. Full licensing information can be
3810 ;; obtained here: https://github.com/rstudio/httpuv/blob/master/LICENSE
3811 (license l:gpl3+)))
3812
3813 (define-public r-jsonlite
3814 (package
3815 (name "r-jsonlite")
3816 (version "1.5")
3817 (source (origin
3818 (method url-fetch)
3819 (uri (cran-uri "jsonlite" version))
3820 (sha256
3821 (base32
3822 "00lfg464jhf7k01bal9pcjvbdf5cxk6xi2h46hccp1x3h883g434"))))
3823 (build-system r-build-system)
3824 (home-page "http://arxiv.org/abs/1403.2805")
3825 (synopsis "Robust, high performance JSON parser and generator for R")
3826 (description
3827 "The jsonlite package provides a fast JSON parser and generator optimized
3828 for statistical data and the web. It offers flexible, robust, high
3829 performance tools for working with JSON in R and is particularly powerful for
3830 building pipelines and interacting with a web API. In addition to converting
3831 JSON data from/to R objects, jsonlite contains functions to stream, validate,
3832 and prettify JSON data. The unit tests included with the package verify that
3833 all edge cases are encoded and decoded consistently for use with dynamic data
3834 in systems and applications.")
3835 (license l:expat)))
3836
3837 (define-public r-servr
3838 (package
3839 (name "r-servr")
3840 (version "0.9")
3841 (source (origin
3842 (method url-fetch)
3843 (uri (cran-uri "servr" version))
3844 (sha256
3845 (base32
3846 "0bs0i5mjfzxfshqz8i30nhn7kvgwly4fqn5bfq6dqfdrn7biai2x"))))
3847 (build-system r-build-system)
3848 (propagated-inputs
3849 `(("r-httpuv" ,r-httpuv)
3850 ("r-jsonlite" ,r-jsonlite)
3851 ("r-mime" ,r-mime)
3852 ("r-xfun" ,r-xfun)))
3853 (native-inputs
3854 `(("r-rcpp" ,r-rcpp)))
3855 (home-page "https://github.com/yihui/servr")
3856 (synopsis "Simple HTTP server to serve static files or dynamic documents")
3857 (description
3858 "Servr provides an HTTP server in R to serve static files, or dynamic
3859 documents that can be converted to HTML files (e.g., R Markdown) under a given
3860 directory.")
3861 (license l:expat)))
3862
3863 (define-public r-htmltools
3864 (package
3865 (name "r-htmltools")
3866 (version "0.3.6")
3867 (source (origin
3868 (method url-fetch)
3869 (uri (cran-uri "htmltools" version))
3870 (sha256
3871 (base32
3872 "18k8r1s8sz1jy7dkz35n69wj20xhmllr53xmwb4pdzf2z61gpbs4"))))
3873 (build-system r-build-system)
3874 (arguments
3875 `(#:phases
3876 (modify-phases %standard-phases
3877 ;; See https://github.com/rstudio/htmltools/pull/68
3878 ;; The resource files are in the store and have mode 444. After
3879 ;; copying the files R fails to remove them again because it doesn't
3880 ;; have write access to them.
3881 (add-after 'unpack 'copy-files-without-mode
3882 (lambda _
3883 (substitute* "R/html_dependency.R"
3884 (("file.copy\\(from, to, " prefix)
3885 (string-append prefix
3886 "copy.mode = FALSE, ")))
3887 #t)))))
3888 (propagated-inputs
3889 `(("r-digest" ,r-digest)
3890 ("r-rcpp" ,r-rcpp)))
3891 (home-page "https://cran.r-project.org/web/packages/htmltools")
3892 (synopsis "R tools for HTML")
3893 (description
3894 "This package provides tools for HTML generation and output in R.")
3895 (license l:expat)))
3896
3897 (define-public r-htmlwidgets
3898 (package
3899 (name "r-htmlwidgets")
3900 (version "1.2")
3901 (source (origin
3902 (method url-fetch)
3903 (uri (cran-uri "htmlwidgets" version))
3904 (sha256
3905 (base32
3906 "04c4d0mfcy3dkdlbxnaccpdgxvyxfdwfmmh5djim6v9hyg0j2z8s"))))
3907 (build-system r-build-system)
3908 (propagated-inputs
3909 `(("r-htmltools" ,r-htmltools)
3910 ("r-jsonlite" ,r-jsonlite)
3911 ("r-yaml" ,r-yaml)))
3912 (home-page "https://github.com/ramnathv/htmlwidgets")
3913 (synopsis "HTML Widgets for R")
3914 (description
3915 "HTML widgets is a framework for creating HTML widgets that render in
3916 various contexts including the R console, R Markdown documents, and Shiny web
3917 applications.")
3918 (license l:expat)))
3919
3920 (define-public r-htmltable
3921 (package
3922 (name "r-htmltable")
3923 (version "1.11.2")
3924 (source
3925 (origin
3926 (method url-fetch)
3927 (uri (cran-uri "htmlTable" version))
3928 (sha256
3929 (base32
3930 "1lbpi0kkk8b41w10scmlf27dg5azcv51a4q3p5bpqyphrnqp78k4"))))
3931 (properties `((upstream-name . "htmlTable")))
3932 (build-system r-build-system)
3933 (propagated-inputs
3934 `(("r-checkmate" ,r-checkmate)
3935 ("r-htmltools" ,r-htmltools)
3936 ("r-htmlwidgets" ,r-htmlwidgets)
3937 ("r-knitr" ,r-knitr)
3938 ("r-magrittr" ,r-magrittr)
3939 ("r-rstudioapi" ,r-rstudioapi)
3940 ("r-stringr" ,r-stringr)))
3941 (home-page "http://gforge.se/packages/")
3942 (synopsis "Advanced tables for Markdown/HTML")
3943 (description
3944 "This package provides functions to build tables with advanced layout
3945 elements such as row spanners, column spanners, table spanners, zebra
3946 striping, and more. While allowing advanced layout, the underlying
3947 CSS-structure is simple in order to maximize compatibility with word
3948 processors such as LibreOffice. The package also contains a few text
3949 formatting functions that help outputting text compatible with HTML or
3950 LaTeX.")
3951 (license l:gpl3+)))
3952
3953 (define-public r-curl
3954 (package
3955 (name "r-curl")
3956 (version "3.2")
3957 (source (origin
3958 (method url-fetch)
3959 (uri (cran-uri "curl" version))
3960 (sha256
3961 (base32
3962 "15hmy71310hnf9yqvz0icx4cq939gv6iqaifzlfdh2ia8akawdhn"))))
3963 (build-system r-build-system)
3964 (arguments
3965 `(#:phases
3966 (modify-phases %standard-phases
3967 ;; The environment variable CURL_CA_BUNDLE is only respected when
3968 ;; running Windows, so we disable the platform checks.
3969 ;; This can be removed once the libcurl has been patched.
3970 (add-after 'unpack 'allow-CURL_CA_BUNDLE
3971 (lambda _
3972 (substitute* "R/onload.R"
3973 (("if \\(!grepl\\(\"mingw\".*")
3974 "if (FALSE)\n"))
3975 (substitute* "src/handle.c"
3976 (("#ifdef _WIN32") "#if 1"))
3977 #t)))))
3978 (inputs
3979 `(("libcurl" ,curl)))
3980 (home-page "https://github.com/jeroenooms/curl")
3981 (synopsis "HTTP client for R")
3982 (description
3983 "The @code{curl()} and @code{curl_download()} functions provide highly
3984 configurable drop-in replacements for base @code{url()} and
3985 @code{download.file()} with better performance, support for encryption, gzip
3986 compression, authentication, and other @code{libcurl} goodies. The core of
3987 the package implements a framework for performing fully customized requests
3988 where data can be processed either in memory, on disk, or streaming via the
3989 callback or connection interfaces.")
3990 (license l:expat)))
3991
3992 (define-public r-hwriter
3993 (package
3994 (name "r-hwriter")
3995 (version "1.3.2")
3996 (source
3997 (origin
3998 (method url-fetch)
3999 (uri (cran-uri "hwriter" version))
4000 (sha256
4001 (base32
4002 "0arjsz854rfkfqhgvpqbm9lfni97dcjs66isdsfvwfd2wz932dbb"))))
4003 (build-system r-build-system)
4004 (home-page "https://cran.r-project.org/web/packages/hwriter")
4005 (synopsis "Output R objects in HTML format")
4006 (description
4007 "This package provides easy-to-use and versatile functions to output R
4008 objects in HTML format.")
4009 (license l:lgpl2.1+)))
4010
4011 (define-public r-rjson
4012 (package
4013 (name "r-rjson")
4014 (version "0.2.15")
4015 (source
4016 (origin
4017 (method url-fetch)
4018 (uri (cran-uri "rjson" version))
4019 (sha256
4020 (base32
4021 "1vzjyvf57k1fjizlk28rby65y5lsww5qnfvgnhln74qwda7hvl3p"))))
4022 (build-system r-build-system)
4023 (home-page "https://cran.r-project.org/web/packages/rjson")
4024 (synopsis "JSON library for R")
4025 (description
4026 "This package provides functions to convert R objects into JSON objects
4027 and vice-versa.")
4028 (license l:gpl2+)))
4029
4030 (define-public gumbo-parser
4031 (package
4032 (name "gumbo-parser")
4033 (version "0.10.1")
4034 (source (origin
4035 (method url-fetch)
4036 (uri (string-append "https://github.com/google/"
4037 "gumbo-parser/archive/v" version ".tar.gz"))
4038 (file-name (string-append name "-" version ".tar.gz"))
4039 (sha256
4040 (base32
4041 "1bgg2kbj311pqdzw2v33za7k66g1rv44kkvvnz2gnpaasi9k0ii8"))))
4042 (build-system gnu-build-system)
4043 (arguments
4044 `(#:tests? #f ; tests require bundling googletest sources
4045 #:phases
4046 (modify-phases %standard-phases
4047 (add-after 'unpack 'bootstrap
4048 (lambda _ (zero? (system* "sh" "autogen.sh")))))))
4049 ;; The release tarball lacks the generated files.
4050 (native-inputs
4051 `(("autoconf" ,autoconf)
4052 ("automake" ,automake)
4053 ("libtool" ,libtool)))
4054 (home-page "https://github.com/google/gumbo-parser")
4055 (synopsis "HTML5 parsing library")
4056 (description
4057 "Gumbo is an implementation of the HTML5 parsing algorithm implemented as
4058 a pure C99 library.")
4059 (license l:asl2.0)))
4060
4061 (define-public uwsgi
4062 (package
4063 (name "uwsgi")
4064 (version "2.0.17")
4065 (source (origin
4066 (method url-fetch)
4067 (uri (string-append "https://projects.unbit.it/downloads/uwsgi-"
4068 version ".tar.gz"))
4069 (sha256
4070 (base32
4071 "1wlbaairsmhp6bx5wv282q9pgh6w7w6yrb8vxjznfaxrinsfkhix"))))
4072 (build-system gnu-build-system)
4073 (outputs '("out" "python"))
4074 (arguments
4075 '(;; XXX: The 'check' target runs cppcheck to do static code analysis.
4076 ;; But there is no obvious way to run the real tests.
4077 #:tests? #f
4078 #:phases
4079 (modify-phases %standard-phases
4080 (replace 'configure
4081 ;; Configuration is done by writing an ini file.
4082 (lambda* (#:key outputs #:allow-other-keys)
4083 (let* ((out (assoc-ref outputs "out"))
4084 (bindir (string-append out "/bin"))
4085 (plugindir (string-append out "/lib/uwsgi")))
4086 ;; The build phase outputs files to these directories directly.
4087 (mkdir-p bindir)
4088 (mkdir-p plugindir)
4089 ;; XXX: Enable other plugins.
4090 (call-with-output-file "buildconf/guix.ini"
4091 (lambda (port)
4092 (format port "[uwsgi]
4093 yaml = libyaml
4094 bin_name = ~a/uwsgi
4095 plugin_dir = ~a
4096
4097 inherit = base
4098 plugins = cgi,python
4099 embedded_plugins =
4100 " bindir plugindir))))
4101 (setenv "PROFILE" "guix")
4102 #t))
4103 (replace 'install
4104 ;; Move plugins into their own output.
4105 (lambda* (#:key outputs #:allow-other-keys)
4106 (let* ((out (assoc-ref outputs "out"))
4107 (plugindir (string-append out "/lib/uwsgi"))
4108 (python-plugin (string-append
4109 plugindir "/python_plugin.so")))
4110 (install-file python-plugin
4111 (string-append
4112 (assoc-ref outputs "python") "/lib/uwsgi"))
4113 (delete-file python-plugin)
4114 #t))))))
4115 (native-inputs
4116 `(("pkg-config" ,pkg-config)
4117 ("python" ,python-wrapper)))
4118 (inputs
4119 `(("jansson" ,jansson)
4120 ("libxml2" ,libxml2)
4121 ("libyaml" ,libyaml)
4122 ("openssl" ,openssl)
4123 ("pcre" ,pcre)
4124 ("zlib" ,zlib)
4125 ;; For plugins.
4126 ("python" ,python)))
4127 (home-page "https://uwsgi-docs.readthedocs.org/")
4128 (synopsis "Application container server")
4129 (description
4130 "uWSGI presents a complete stack for networked/clustered web applications,
4131 implementing message/object passing, caching, RPC and process management.
4132 It uses the uwsgi protocol for all the networking/interprocess communications.")
4133 (license l:gpl2+))) ; with linking exception
4134
4135 (define-public jq
4136 (package
4137 (name "jq")
4138 (version "1.5")
4139 (source (origin
4140 (method url-fetch)
4141 (uri (string-append "https://github.com/stedolan/" name
4142 "/releases/download/" name "-" version
4143 "/" name "-" version ".tar.gz"))
4144 (sha256
4145 (base32
4146 "0g29kyz4ykasdcrb0zmbrp2jqs9kv1wz9swx849i2d1ncknbzln4"))
4147 ;; This patch has been pushed and the vulnerability will be
4148 ;; fixed in the next release after 1.5.
4149 ;; https://github.com/stedolan/jq/issues/995
4150 (patches (search-patches "jq-CVE-2015-8863.patch"))))
4151 (inputs
4152 `(("oniguruma" ,oniguruma)))
4153 (native-inputs
4154 `(;; TODO fix gems to generate documentation
4155 ;;("ruby" ,ruby)
4156 ;;("bundler" ,bundler)
4157 ("valgrind" ,valgrind)))
4158 (build-system gnu-build-system)
4159 (home-page "http://stedolan.github.io/jq/")
4160 (synopsis "Command-line JSON processor")
4161 (description "jq is like sed for JSON data – you can use it to slice and
4162 filter and map and transform structured data with the same ease that sed, awk,
4163 grep and friends let you play with text. It is written in portable C. jq can
4164 mangle the data format that you have into the one that you want with very
4165 little effort, and the program to do so is often shorter and simpler than
4166 you'd expect.")
4167 (license (list l:expat l:cc-by3.0))))
4168
4169 (define-public uhttpmock
4170 (package
4171 (name "uhttpmock")
4172 (version "0.5.1")
4173 (source
4174 (origin
4175 (method url-fetch)
4176 (uri (string-append "http://tecnocode.co.uk/downloads/uhttpmock/"
4177 name "-" version ".tar.xz"))
4178 (sha256
4179 (base32
4180 "163py4klka423x7li2b685gmg3a6hjf074mlff2ajhmi3l0lm8x6"))))
4181 (build-system glib-or-gtk-build-system)
4182 (arguments
4183 `(#:phases
4184 (modify-phases %standard-phases
4185 (add-before 'check 'use-empty-ssl-cert-file
4186 (lambda _
4187 ;; Search for ca-certificates.crt files
4188 ;; during the check phase.
4189 (setenv "SSL_CERT_FILE" "/dev/null")
4190 #t)))))
4191 (native-inputs
4192 `(("gobject-introspection" ,gobject-introspection)
4193 ;; For check phase.
4194 ("glib-networking" ,glib-networking)
4195 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4196 ("pkg-config" ,pkg-config)))
4197 (inputs
4198 `(("libsoup" ,libsoup)))
4199 (home-page "https://gitlab.com/groups/uhttpmock")
4200 (synopsis "Library for mocking web service APIs which use HTTP or HTTPS")
4201 (description
4202 "Uhttpmock is a project for mocking web service APIs which use HTTP or
4203 HTTPS. It provides a library, libuhttpmock, which implements recording and
4204 playback of HTTP request/response traces.")
4205 (license l:lgpl2.1+)))
4206
4207 (define-public woof
4208 (package
4209 (name "woof")
4210 (version "2012-05-31")
4211 (source (origin
4212 (method url-fetch)
4213 (uri (string-append
4214 "http://www.home.unix-ag.org/simon/woof-"
4215 version ".py"))
4216 (sha256
4217 (base32
4218 "0wjmjhpg6xlid33yi59j47q2qadz20sijrqsjahj30vngz856hyq"))))
4219 (build-system trivial-build-system)
4220 (arguments
4221 '(#:modules ((guix build utils))
4222 #:builder
4223 (begin
4224 (use-modules (guix build utils))
4225 (let* ((source (assoc-ref %build-inputs "source"))
4226 (out (assoc-ref %outputs "out"))
4227 (bin (string-append out "/bin"))
4228 (python (assoc-ref %build-inputs "python")))
4229 (mkdir-p bin)
4230 (with-directory-excursion bin
4231 (copy-file source "woof")
4232 (patch-shebang "woof" (list (string-append python "/bin")))
4233 (chmod "woof" #o555))
4234 #t))))
4235 (inputs `(("python" ,python-2)))
4236 (home-page "http://www.home.unix-ag.org/simon/woof.html")
4237 (synopsis "Single file web server")
4238 (description "Woof (Web Offer One File) is a small simple web server that
4239 can easily be invoked on a single file. Your partner can access the file with
4240 tools they trust (e.g. wget).")
4241 (license l:gpl2+)))
4242
4243 (define netsurf-buildsystem
4244 (package
4245 (name "netsurf-buildsystem")
4246 (version "1.6")
4247 (source
4248 (origin
4249 (method url-fetch)
4250 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4251 "buildsystem-" version ".tar.gz"))
4252 (sha256
4253 (base32
4254 "0p5k708lcq8dip9xxck6hml32bjrbyipprm22bbsvdnsc0pqm71x"))))
4255 (build-system gnu-build-system)
4256 (inputs `(("perl" ,perl)))
4257 (arguments
4258 '(#:make-flags (list (string-append "PREFIX=" %output))
4259 #:tests? #f ;no tests
4260 #:phases (modify-phases %standard-phases
4261 (delete 'configure)
4262 (delete 'build))))
4263 (home-page "http://www.netsurf-browser.org")
4264 (synopsis "Build system for the Netsurf project")
4265 (description
4266 "This package provides the shared build system for Netsurf project
4267 libraries.")
4268 (license l:expat)))
4269
4270 (define netsurf-buildsystem-arguments
4271 `(#:make-flags `("COMPONENT_TYPE=lib-shared"
4272 "CC=gcc" "BUILD_CC=gcc"
4273 ,(string-append "PREFIX=" %output)
4274 ,(string-append "NSSHARED="
4275 (assoc-ref %build-inputs
4276 "netsurf-buildsystem")
4277 "/share/netsurf-buildsystem"))
4278 #:test-target "test"
4279 #:phases (modify-phases %standard-phases
4280 (delete 'configure))))
4281
4282 (define-public libparserutils
4283 (package
4284 (name "libparserutils")
4285 (version "0.2.3")
4286 (source
4287 (origin
4288 (method url-fetch)
4289 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4290 name "-" version "-src.tar.gz"))
4291 (sha256
4292 (base32
4293 "01gzlsabgl6x0icd8758d9jqs8rrf9574bdkjainn04w3fs3znf5"))))
4294 (build-system gnu-build-system)
4295 (native-inputs
4296 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4297 ("pkg-config" ,pkg-config)
4298 ("perl" ,perl))) ;for test harness
4299 (arguments netsurf-buildsystem-arguments)
4300 (home-page "http://www.netsurf-browser.org/projects/libparserutils/")
4301 (synopsis "Parser building library")
4302 (description
4303 "LibParserUtils is a library for building efficient parsers, written in
4304 C. It is developed as part of the NetSurf project.")
4305 (license l:expat)))
4306
4307 (define-public hubbub
4308 (package
4309 (name "hubbub")
4310 (version "0.3.4")
4311 (source
4312 (origin
4313 (method url-fetch)
4314 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4315 "lib" name "-" version "-src.tar.gz"))
4316 (sha256
4317 (base32
4318 "1shi4hv8drn9zy8f2f6yhnz2dqnpg5jkybvqhzggfjx1q35fbxz3"))
4319 (patches (search-patches "hubbub-sort-entities.patch"))))
4320 (build-system gnu-build-system)
4321 (native-inputs
4322 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4323 ("pkg-config" ,pkg-config)
4324 ("doxygen" ,doxygen)
4325 ("json-c" ,json-c-0.12) ; check whether json-c-0.12 can be removed
4326 ("perl" ,perl)))
4327 (propagated-inputs
4328 `(("libparserutils" ,libparserutils))) ;for libhubbub.pc
4329 (arguments netsurf-buildsystem-arguments)
4330 (home-page "http://www.netsurf-browser.org/projects/hubbub/")
4331 (synopsis "HTML5 compliant parsing library")
4332 (description
4333 "Hubbub is an HTML5 compliant parsing library, written in C, which can
4334 parse both valid and invalid web content. It is developed as part of the
4335 NetSurf project.")
4336 (license l:expat)))
4337
4338 (define-public ikiwiki
4339 (package
4340 (name "ikiwiki")
4341 (version "3.20170111")
4342 (source
4343 (origin
4344 (method url-fetch)
4345 (uri (string-append "http://snapshot.debian.org/archive/debian/"
4346 "20170111T215449Z/pool/main/i/ikiwiki/ikiwiki_"
4347 version ".tar.xz"))
4348 (sha256
4349 (base32
4350 "00d7yzv426fvqbhvzyafddv7fa6b4j2647b0wi371wd5yjj9j3sz"))))
4351 (build-system perl-build-system)
4352 (arguments
4353 `(;; Image tests fail
4354 ;;
4355 ;; Test Summary Report
4356 ;; -------------------
4357 ;; t/img.t (Wstat: 2304 Tests: 62 Failed: 9)
4358 ;; Failed tests: 21, 27-28, 30-35
4359 ;; Non-zero exit status: 9
4360 #:tests? #f
4361 #:phases
4362 (modify-phases %standard-phases
4363 (add-after 'unpack 'include-PERL5LIB-in-wrapper
4364 (lambda _
4365 (substitute* "IkiWiki/Wrapper.pm"
4366 (("^@wrapper\\_hooks")
4367 (string-append
4368 "@wrapper_hooks\n"
4369 " addenv(\"PERL5LIB\", \""
4370 (getenv "PERL5LIB")
4371 "\");")))))
4372 (add-after 'install 'wrap-programs
4373 (lambda* (#:key outputs #:allow-other-keys)
4374 (let* ((out (assoc-ref outputs "out"))
4375 (bin (string-append out "/bin/"))
4376 (path (getenv "PERL5LIB")))
4377 (for-each (lambda (file)
4378 (wrap-program file
4379 `("PERL5LIB" ":" prefix (,path))))
4380 (find-files bin))
4381 #t))))))
4382 (native-inputs
4383 `(("which" ,which)
4384 ("perl-html-tagset" ,perl-html-tagset)
4385 ("perl-timedate" ,perl-timedate)
4386 ("perl-xml-sax" ,perl-xml-sax)
4387 ("perl-xml-simple" ,perl-xml-simple)
4388 ("gettext" ,gettext-minimal)
4389 ("subversion" ,subversion)
4390 ("git" ,git)
4391 ("bazaar" ,bazaar)
4392 ("cvs" ,cvs)
4393 ("mercurial" ,mercurial)))
4394 (inputs
4395 `(("python" ,python-wrapper)
4396 ("perl-cgi-session" ,perl-cgi-session)
4397 ("perl-cgi-simple" ,perl-cgi-simple)
4398 ("perl-json" ,perl-json)
4399 ("perl-image-magick" ,perl-image-magick)
4400 ("perl-uri" ,perl-uri)
4401 ("perl-html-parser" ,perl-html-parser)
4402 ("perl-uri" ,perl-uri)
4403 ("perl-text-markdown-discount" ,perl-text-markdown-discount)
4404 ("perl-html-scrubber" ,perl-html-scrubber)
4405 ("perl-html-template" ,perl-html-template)
4406 ("perl-yaml-libyaml" ,perl-yaml-libyaml)))
4407 (home-page "https://ikiwiki.info/")
4408 (synopsis "Wiki compiler, capable of generating HTML")
4409 (description
4410 "Ikiwiki is a wiki compiler, capable of generating a static set of web
4411 pages, but also incorporating dynamic features like a web based editor and
4412 commenting.")
4413 (license l:gpl2+)))
4414
4415 (define-public libwapcaplet
4416 (package
4417 (name "libwapcaplet")
4418 (version "0.4.0")
4419 (source
4420 (origin
4421 (method url-fetch)
4422 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4423 name "-" version "-src.tar.gz"))
4424 (sha256
4425 (base32
4426 "15yr0pl6qa6biy36qkmd949ydbjzpqiaccpx3sprh4jknabsk1vv"))))
4427 (build-system gnu-build-system)
4428 (native-inputs
4429 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4430 ("pkg-config" ,pkg-config)
4431 ("check" ,check))) ;for tests
4432 (arguments netsurf-buildsystem-arguments)
4433 (home-page "http://www.netsurf-browser.org/projects/libwapcaplet/")
4434 (synopsis "String internment library")
4435 (description
4436 "LibWapcaplet provides a reference counted string internment system
4437 designed to store small strings and allow rapid comparison of them. It is
4438 developed as part of the Netsurf project.")
4439 (license l:expat)))
4440
4441 (define-public libcss
4442 (package
4443 (name "libcss")
4444 (version "0.7.0")
4445 (source
4446 (origin
4447 (method url-fetch)
4448 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4449 name "-" version "-src.tar.gz"))
4450 (sha256
4451 (base32
4452 "16mns3h8vj7iw8myvgnw58q84irvbjlvfkxh8mdw6fbkjvaa7cnz"))))
4453 (build-system gnu-build-system)
4454 (native-inputs
4455 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4456 ("pkg-config" ,pkg-config)
4457 ("perl" ,perl)))
4458 (propagated-inputs ;needed for libcss.pc
4459 `(("libparserutils" ,libparserutils)
4460 ("libwapcaplet" ,libwapcaplet)))
4461 (arguments netsurf-buildsystem-arguments)
4462 (home-page "http://www.netsurf-browser.org/projects/libcss/")
4463 (synopsis "CSS parser and selection library")
4464 (description
4465 "LibCSS is a CSS (Cascading Style Sheet) parser and selection engine,
4466 written in C. It is developed as part of the NetSurf project.")
4467 (license l:expat)))
4468
4469 (define-public libdom
4470 (package
4471 (name "libdom")
4472 (version "0.3.2")
4473 (source
4474 (origin
4475 (method url-fetch)
4476 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4477 name "-" version "-src.tar.gz"))
4478 (sha256
4479 (base32
4480 "1zb7x2qwm6p11lph6j2vcyp4a0a8i1klkqilnk5vb4qmlzzpcv7i"))))
4481 (build-system gnu-build-system)
4482 (native-inputs
4483 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4484 ("pkg-config" ,pkg-config)
4485 ("perl" ,perl) ;for test harness
4486 ("perl-libxml" ,perl-libxml)
4487 ("perl-switch" ,perl-switch)
4488 ("perl-xml-xpath" ,perl-xml-xpath)))
4489 (inputs
4490 `(("libparserutils" ,libparserutils)
4491 ("libwapcaplet" ,libwapcaplet)))
4492 (propagated-inputs
4493 `(("expat" ,expat) ;needed for headers and linking
4494 ("hubbub" ,hubbub))) ;for libdom.pc
4495 (arguments
4496 `(#:tests? #f ;TODO: re-enable. tests take a looong time.
4497 ,@netsurf-buildsystem-arguments))
4498 (home-page "http://www.netsurf-browser.org/projects/libdom/")
4499 (synopsis "Implementation of the W3C DOM")
4500 (description
4501 "LibDOM is an implementation of the W3C DOM, written in C. It is
4502 developed as part of the NetSurf project.")
4503 (license l:expat)))
4504
4505 (define-public libsvgtiny
4506 (package
4507 (name "libsvgtiny")
4508 (version "0.1.6")
4509 (source
4510 (origin
4511 (method url-fetch)
4512 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4513 name "-" version "-src.tar.gz"))
4514 (sha256
4515 (base32
4516 "12ppy2r7m21ykrjgbf067cgi6dn48fkj7i4b7m64xl4dc13y0ah6"))))
4517 (build-system gnu-build-system)
4518 (native-inputs
4519 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4520 ("pkg-config" ,pkg-config)
4521 ("gperf" ,gperf-3.0)))
4522 (inputs
4523 `(("libwapcaplet" ,libwapcaplet)))
4524 (propagated-inputs
4525 `(("libdom" ,libdom))) ;for libsvgtiny.pc
4526 (arguments netsurf-buildsystem-arguments)
4527 (home-page "http://www.netsurf-browser.org/projects/libsvgtiny/")
4528 (synopsis "Library for parsing SVG files")
4529 (description
4530 "Libsvgtiny takes some SVG as input and returns a list of paths and texts
4531 which can be rendered easily, as defined in
4532 @url{http://www.w3.org/TR/SVGMobile/}. It is developed as part of the NetSurf
4533 project.")
4534 (license l:expat)))
4535
4536 (define-public libnsbmp
4537 (package
4538 (name "libnsbmp")
4539 (version "0.1.4")
4540 (source
4541 (origin
4542 (method url-fetch)
4543 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4544 name "-" version "-src.tar.gz"))
4545 (sha256
4546 (base32
4547 "0y4a0gn4l6lq4z9183wix0mdsgalqyw24k19k8jr8sz4h3lb7jrb"))))
4548 (build-system gnu-build-system)
4549 (native-inputs
4550 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
4551 (arguments netsurf-buildsystem-arguments)
4552 (home-page "http://www.netsurf-browser.org/projects/libnsbmp/")
4553 (synopsis "Decoding library for BMP and ICO files")
4554 (description
4555 "Libnsbmp is a decoding library for BMP and ICO image file formats,
4556 written in C. It is developed as part of the NetSurf project.")
4557 (license l:expat)))
4558
4559 (define-public libnsgif
4560 (package
4561 (name "libnsgif")
4562 (version "0.2.0")
4563 (source
4564 (origin
4565 (method url-fetch)
4566 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4567 name "-" version "-src.tar.gz"))
4568 (sha256
4569 (base32
4570 "1phwf0m24m6nd7096fw14hanl4f8gr9bcppi834lbik04agxk38a"))))
4571 (build-system gnu-build-system)
4572 (native-inputs
4573 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
4574 (arguments netsurf-buildsystem-arguments)
4575 (home-page "http://www.netsurf-browser.org/projects/libnsgif/")
4576 (synopsis "Decoding library for GIF files")
4577 (description
4578 "Libnsgif is a decoding library for the GIF image file format, written in
4579 C. It is developed as part of the NetSurf project.")
4580 (license l:expat)))
4581
4582 (define-public libnsutils
4583 (package
4584 (name "libnsutils")
4585 (version "0.0.3")
4586 (source
4587 (origin
4588 (method url-fetch)
4589 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4590 name "-" version "-src.tar.gz"))
4591 (sha256
4592 (base32
4593 "0wrxn4rcn7xrfnkmf60jafqn3n1kicgsdpnakd821q56bmqvzf0m"))))
4594 (build-system gnu-build-system)
4595 (native-inputs
4596 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
4597 (arguments netsurf-buildsystem-arguments)
4598 (home-page "http://www.netsurf-browser.org/")
4599 (synopsis "Utility library for NetSurf")
4600 (description
4601 "Libnsutils provides a small number of useful utility routines. It is
4602 developed as part of the NetSurf project.")
4603 (license l:expat)))
4604
4605 (define-public libnspsl
4606 (package
4607 (name "libnspsl")
4608 (version "0.1.2")
4609 (source
4610 (origin
4611 (method url-fetch)
4612 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4613 name "-" version "-src.tar.gz"))
4614 (sha256
4615 (base32
4616 "0wim5hwzwrfrvvap096whf79m2mnfivbqhqlh03ci9d89xb1w0y9"))))
4617 (build-system gnu-build-system)
4618 (native-inputs
4619 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
4620 (arguments netsurf-buildsystem-arguments)
4621 (home-page "http://www.netsurf-browser.org/")
4622 (synopsis "Library to generate a static Public Suffix List")
4623 (description
4624 "Libnspsl is a library to generate a static code representation of the
4625 Public Suffix List. It is developed as part of the NetSurf project.")
4626 (license l:expat)))
4627
4628 (define-public nsgenbind
4629 (package
4630 (name "nsgenbind")
4631 (version "0.5")
4632 (source
4633 (origin
4634 (method url-fetch)
4635 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4636 name "-" version "-src.tar.gz"))
4637 (sha256
4638 (base32
4639 "1iwjpdaan0njlhb9ir6a2q5vpxfmkqfldkvnqszqdz50b44vd1jv"))))
4640 (build-system gnu-build-system)
4641 (native-inputs
4642 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4643 ("bison" ,bison)
4644 ("flex" ,flex)))
4645 (arguments
4646 (substitute-keyword-arguments netsurf-buildsystem-arguments
4647 ((#:make-flags flags)
4648 `(delete "COMPONENT_TYPE=lib-shared" ,flags))))
4649 (home-page "http://www.netsurf-browser.org/")
4650 (synopsis "Generate JavaScript to DOM bindings")
4651 (description
4652 "@code{nsgenbind} is a tool to generate JavaScript to DOM bindings from
4653 w3c webidl files and a binding configuration file.")
4654 (license l:expat)))
4655
4656 (define-public netsurf
4657 (package
4658 (name "netsurf")
4659 (version "3.7")
4660 (source
4661 (origin
4662 (method url-fetch)
4663 (uri (string-append "http://download.netsurf-browser.org/netsurf/"
4664 "releases/source/netsurf-" version "-src.tar.gz"))
4665 (sha256
4666 (base32
4667 "05kynfzzwd4fc03vbqdjpghh5xnk2yrh43w7vikak89vla30mhpg"))
4668 (patches (search-patches "netsurf-system-utf8proc.patch"
4669 "netsurf-y2038-tests.patch"
4670 "netsurf-longer-test-timeout.patch"))))
4671 (build-system glib-or-gtk-build-system)
4672 (native-inputs
4673 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4674 ("nsgenbind" ,nsgenbind)
4675 ("libidn" ,libidn) ;only for tests
4676 ("check" ,check)
4677 ("perl" ,perl)
4678 ("perl-html-parser" ,perl-html-parser)
4679 ("pkg-config" ,pkg-config)))
4680 (inputs
4681 `(("curl" ,curl)
4682 ("gtk+" ,gtk+-2)
4683 ("openssl" ,openssl)
4684 ("utf8proc" ,utf8proc)
4685 ("libpng" ,libpng)
4686 ("libjpeg" ,libjpeg)
4687 ("libcss" ,libcss)
4688 ("libdom" ,libdom)
4689 ("libnsbmp" ,libnsbmp)
4690 ("libnsgif" ,libnsgif)
4691 ("libnspsl" ,libnspsl)
4692 ("libnsutils" ,libnsutils)
4693 ("libsvgtiny" ,libsvgtiny)
4694 ("miscfiles" ,miscfiles)))
4695 (arguments
4696 `(#:make-flags `("CC=gcc" "BUILD_CC=gcc"
4697 ,(string-append "PREFIX=" %output)
4698 ,(string-append "NSSHARED="
4699 (assoc-ref %build-inputs
4700 "netsurf-buildsystem")
4701 "/share/netsurf-buildsystem"))
4702 #:test-target "test"
4703 #:modules ((ice-9 rdelim)
4704 (ice-9 match)
4705 (srfi srfi-1)
4706 (sxml simple)
4707 ,@%glib-or-gtk-build-system-modules)
4708 #:phases
4709 (modify-phases %standard-phases
4710 (delete 'configure)
4711 (add-after 'build 'adjust-welcome
4712 (lambda _
4713 ;; First, fix some unended tags and simple substitutions
4714 (substitute* "frontends/gtk/res/welcome.html"
4715 (("<(img|input)([^>]*)>" _ tag contents)
4716 (string-append "<" tag contents " />"))
4717 (("Licence") "License") ;prefer GNU spelling
4718 ((" open source") ", free software")
4719 (("web&nbsp;site") "website")
4720 ;; Prefer privacy-respecting default search engine
4721 (("www.google.co.uk") "www.duckduckgo.com/html")
4722 (("Google Search") "DuckDuckGo Search")
4723 (("name=\"btnG\"") ""))
4724 ;; Remove default links so it doesn't seem we're endorsing them
4725 (with-atomic-file-replacement "frontends/gtk/res/welcome.html"
4726 (lambda (in out)
4727 ;; Leave the DOCTYPE header as is
4728 (display (read-line in 'concat) out)
4729 (sxml->xml
4730 (let rec ((sxml (xml->sxml in)))
4731 ;; We'd like to use sxml-match here, but it can't
4732 ;; match against generic tag symbols...
4733 (match sxml
4734 (`(div (@ (class "links")) . ,rest)
4735 '())
4736 ((x ...)
4737 (map rec x))
4738 (x x)))
4739 out)))
4740 #t))
4741 (add-before 'check 'patch-check
4742 (lambda* (#:key inputs #:allow-other-keys)
4743 (substitute* '("test/bloom.c" "test/hashtable.c")
4744 (("/usr/share/dict/words")
4745 (string-append (assoc-ref inputs "miscfiles") "/share/web2")))
4746 #t))
4747 (add-after 'install 'install-more
4748 (lambda* (#:key outputs #:allow-other-keys)
4749 (let* ((out (assoc-ref outputs "out"))
4750 (desktop (string-append out "/share/applications/"
4751 "netsurf.desktop")))
4752 (mkdir-p (dirname desktop))
4753 (copy-file "frontends/gtk/res/netsurf-gtk.desktop"
4754 desktop)
4755 (substitute* desktop
4756 (("netsurf-gtk") (string-append out "/bin/netsurf-gtk"))
4757 (("netsurf.png") (string-append out "/share/netsurf/"
4758 "netsurf.xpm")))
4759 (install-file "docs/netsurf-gtk.1"
4760 (string-append out "/share/man/man1/"))
4761 #t))))))
4762 (home-page "http://www.netsurf-browser.org")
4763 (synopsis "Web browser")
4764 (description
4765 "NetSurf is a lightweight web browser that has its own layout and
4766 rendering engine entirely written from scratch. It is small and capable of
4767 handling many of the web standards in use today.")
4768 (license l:gpl2+)))
4769
4770 (define-public surfraw
4771 (package
4772 (name "surfraw")
4773 (version "2.2.9")
4774 (source (origin
4775 (method url-fetch)
4776 (uri (string-append "https://surfraw.alioth.debian.org/dist/"
4777 name "-" version ".tar.gz"))
4778 (sha256
4779 (base32
4780 "1fy4ph5h9kp0jzj1m6pfylxnnmgdk0mmdppw76z9jhna4jndk5xa"))))
4781 (build-system gnu-build-system)
4782 (arguments
4783 `(#:phases
4784 (modify-phases %standard-phases
4785 (add-before 'configure 'patch-perl
4786 (lambda* (#:key inputs #:allow-other-keys)
4787 (let ((perl (assoc-ref inputs "perl")))
4788 (substitute* "surfraw.IN"
4789 (("perl -e")
4790 (string-append perl "/bin/perl -e")))
4791 #t)))
4792 (add-after 'install 'compress-elvi.1sr
4793 (lambda* (#:key outputs #:allow-other-keys)
4794 ;; The manpages of the elvis are symlinks to elvi.1sr.gz
4795 ;; but elvi.1sr does not get compressed by our manpage phase.
4796 (let* ((out (assoc-ref %outputs "out"))
4797 (man (string-append out "/share/man/man1")))
4798 (with-directory-excursion man
4799 (zero? (system* "gzip" "elvi.1sr")))))))))
4800 (inputs
4801 `(("perl" ,perl)
4802 ("perl-www-opensearch" ,perl-www-opensearch)
4803 ("perl-html-parser" ,perl-html-parser)
4804 ("perl-libwww" ,perl-libwww)))
4805 (synopsis "Unix command line interface to the www")
4806 (description "Surfraw (Shell Users' Revolutionary Front Rage Against the Web)
4807 provides a unix command line interface to a variety of popular www search engines
4808 and similar services.")
4809 (home-page "https://surfraw.alioth.debian.org/")
4810 (license l:public-domain)))
4811
4812 (define-public darkhttpd
4813 (package
4814 (name "darkhttpd")
4815 (version "1.12")
4816 (source
4817 (origin
4818 (method url-fetch)
4819 (uri (string-append "https://unix4lyfe.org/darkhttpd/darkhttpd-"
4820 version ".tar.bz2"))
4821 (sha256
4822 (base32
4823 "0185wlyx4iqiwfigp1zvql14zw7gxfacncii3d15yaxk4av1f155"))))
4824 (build-system gnu-build-system)
4825 (arguments
4826 `(#:make-flags '("CC=gcc")
4827 #:tests? #f ; No test suite
4828 #:phases
4829 (modify-phases %standard-phases
4830 (delete 'configure)
4831 (replace 'install
4832 (lambda* (#:key outputs #:allow-other-keys)
4833 (install-file "darkhttpd"
4834 (string-append (assoc-ref outputs "out")
4835 "/bin"))
4836 #t)))))
4837 (synopsis "Simple static web server")
4838 (description "darkhttpd is a simple static web server. It is
4839 standalone and does not need inetd or ucspi-tcp. It does not need any
4840 config files---you only have to specify the www root.")
4841 (home-page "https://unix4lyfe.org/darkhttpd/")
4842 (license l:isc)))
4843
4844 (define-public goaccess
4845 (package
4846 (name "goaccess")
4847 (version "1.0.2")
4848 (source (origin
4849 (method url-fetch)
4850 (uri (string-append "http://tar.goaccess.io/goaccess-"
4851 version ".tar.gz"))
4852 (sha256
4853 (base32
4854 "1w84y61f3ldg2f28q6qlyr1scn3mcx0bsbq3i5xi5w193wh3xa2q"))
4855 (modules '((guix build utils)))
4856 (snippet
4857 '(substitute* "src/error.h"
4858 (("__DATE__") "\"1970-01-01\"")
4859 (("__TIME__") "\"00:00:00\"")))))
4860 (build-system gnu-build-system)
4861 (inputs
4862 ;; TODO: Add dependency on geoip-tools.
4863 `(("glib" ,glib)
4864 ("ncurses" ,ncurses)))
4865 (native-inputs
4866 `(("pkg-config" ,pkg-config)))
4867 (home-page "https://goaccess.io")
4868 (synopsis "Analyze Web server logs in real time")
4869 (description
4870 "GoAccess is a real-time web log analyzer and interactive viewer that
4871 runs in a terminal or through your browser. It provides fast and valuable
4872 HTTP statistics for system administrators that require a visual server report
4873 on the fly.")
4874 (license l:x11)))
4875
4876 (define-public httptunnel
4877 (package
4878 (name "httptunnel")
4879 (version "3.3")
4880 (source
4881 (origin
4882 (method url-fetch)
4883 (uri (string-append "http://www.nocrew.org/software/httptunnel/"
4884 name "-" version ".tar.gz"))
4885 (sha256
4886 (base32
4887 "0mn5s6p68n32xzadz6ds5i6bp44dyxzkq68r1yljlv470jr84bql"))
4888 (modules '((guix build utils)))
4889 (snippet
4890 ;; Remove non-free IETF RFC documentation.
4891 '(delete-file-recursively "doc"))))
4892 (build-system gnu-build-system)
4893 (arguments
4894 `(#:phases
4895 (modify-phases %standard-phases
4896 ;; The default configure phase tries to pass environment variables as
4897 ;; command-line arguments, which confuses the ./configure script.
4898 (replace 'configure
4899 (lambda* (#:key outputs #:allow-other-keys)
4900 (let* ((out (assoc-ref outputs "out")))
4901 (setenv "CONFIG_SHELL" (which "bash"))
4902 (zero? (system* "./configure"
4903 (string-append "--prefix=" out)))))))))
4904 (home-page "http://www.nocrew.org/software/httptunnel.html")
4905 (synopsis "Tunnel data connections through HTTP requests")
4906 (description "httptunnel creates a bidirectional virtual data connection
4907 tunnelled through HTTP (HyperText Transfer Protocol) requests. This can be
4908 useful for users behind restrictive firewalls. As long as Web traffic is
4909 allowed, even through a HTTP-only proxy, httptunnel can be combined with other
4910 tools like SSH (Secure Shell) to reach the outside world.")
4911 (license l:gpl2+)))
4912
4913 (define-public stunnel
4914 (package
4915 (name "stunnel")
4916 (version "5.44")
4917 (source
4918 (origin
4919 (method url-fetch)
4920 (uri (string-append "https://www.stunnel.org/downloads/stunnel-"
4921 version ".tar.gz"))
4922 (sha256
4923 (base32
4924 "1692y69wl7j6yjgnrrzclgzb34bxsaxjzl1dfy47vms7pdfk42lr"))))
4925 (build-system gnu-build-system)
4926 (inputs `(("openssl" ,openssl)))
4927 (arguments
4928 `(#:configure-flags
4929 (list (string-append "--with-ssl=" (assoc-ref %build-inputs "openssl")))))
4930 (home-page "https://www.stunnel.org")
4931 (synopsis "TLS proxy for clients or servers")
4932 (description "Stunnel is a proxy designed to add TLS encryption
4933 functionality to existing clients and servers without any changes in the
4934 programs' code. Its architecture is optimized for security, portability, and
4935 scalability (including load-balancing), making it suitable for large
4936 deployments.")
4937 (license l:gpl2+)))
4938
4939 (define-public xinetd
4940 (package
4941 (name "xinetd")
4942 (version "2.3.15")
4943 (source
4944 (origin
4945 (method url-fetch)
4946 (uri
4947 (string-append "https://github.com/xinetd-org/xinetd/archive/xinetd-"
4948 (string-join (string-split version #\.) "-") ".tar.gz"))
4949 (patches (search-patches "xinetd-CVE-2013-4342.patch"
4950 "xinetd-fix-fd-leak.patch"))
4951 (sha256
4952 (base32
4953 "0k59x52cbzp5fw0n8zn0y54j1ps0x9b72y8k5grzswjdmgs2a2v2"))))
4954 (build-system gnu-build-system)
4955 (arguments
4956 `(#:configure-flags '("--with-loadavg")
4957 #:tests? #f)) ; no tests
4958 (home-page "https://github.com/xinetd-org/xinetd")
4959 (synopsis "Internet services daemon")
4960 (description "@code{xinetd}, a more secure replacement for @code{inetd},
4961 listens for incoming requests over a network and launches the appropriate
4962 service for that request. Requests are made using port numbers as identifiers
4963 and xinetd usually launches another daemon to handle the request. It can be
4964 used to start services with both privileged and non-privileged port numbers.")
4965 (license (l:fsf-free "file://COPYRIGHT"))))
4966
4967 (define-public tidy-html
4968 (package
4969 (name "tidy-html")
4970 (version "5.6.0")
4971 (source
4972 (origin
4973 (method url-fetch)
4974 (uri (string-append "https://github.com/htacg/tidy-html5/archive/"
4975 version ".tar.gz"))
4976 (file-name (string-append name "-" version ".tar.gz"))
4977 (sha256
4978 (base32
4979 "0n29wcgw32rhnraj9j21ibhwi0xagmmcskhbaz8ihxly7nx3p9h8"))))
4980 (build-system cmake-build-system)
4981 (outputs '("out"
4982 "static")) ; 1.0MiB of .a files
4983 (arguments
4984 `(#:tests? #f ; no tests available
4985 #:build-type "Release"
4986 #:phases
4987 (modify-phases %standard-phases
4988 (add-after 'install 'move-static-libraries
4989 (lambda* (#:key outputs #:allow-other-keys)
4990 ;; Move static libraries to the "static" output.
4991 (let* ((out (assoc-ref outputs "out"))
4992 (lib (string-append out "/lib"))
4993 (static (assoc-ref outputs "static"))
4994 (slib (string-append static "/lib")))
4995 (mkdir-p slib)
4996 (for-each (lambda (file)
4997 (install-file file slib)
4998 (delete-file file))
4999 (find-files lib "\\.a$"))
5000 #t))))))
5001 (native-inputs
5002 `(("libxslt" ,libxslt)))
5003 (home-page "http://www.html-tidy.org/")
5004 (synopsis "HTML Tidy with HTML5 support")
5005 (description
5006 "Tidy is a console application which corrects and cleans up
5007 HTML and XML documents by fixing markup errors and upgrading
5008 legacy code to modern standards.
5009
5010 Tidy also provides @code{libtidy}, a C static and dynamic library that
5011 developers can integrate into their applications to make use of the
5012 functions of Tidy.")
5013 (license l:bsd-3)))
5014
5015 (define-public hiawatha
5016 (package
5017 (name "hiawatha")
5018 (version "10.7")
5019 (source
5020 (origin
5021 (method url-fetch)
5022 (uri (string-append "https://www.hiawatha-webserver.org/files/"
5023 "hiawatha-" version ".tar.gz"))
5024 (modules '((guix build utils)))
5025 (snippet
5026 ;; We use our packaged mbedtls, so delete the included copy.
5027 '(delete-file-recursively "mbedtls"))
5028 (sha256
5029 (base32
5030 "0x2zfc8kc6c7rl4gwymwmg13w1c60biv6c6c9fvzpnl59bc9jgin"))))
5031 (build-system cmake-build-system)
5032 (arguments
5033 `(#:tests? #f ; No tests included
5034 #:configure-flags (list (string-append "-DUSE_SYSTEM_MBEDTLS=on")
5035 (string-append "-DENABLE_TOMAHAWK=on")
5036 (string-append "-DWEBROOT_DIR="
5037 (assoc-ref %outputs "out")
5038 "/share/hiawatha/html"))
5039 #:phases
5040 (modify-phases %standard-phases
5041 (add-after 'install 'remove-empty-dirs
5042 (lambda* (#:key outputs #:allow-other-keys)
5043 (let* ((out (assoc-ref outputs "out")))
5044 ;; The directories in "var" are empty, remove them.
5045 (delete-file-recursively (string-append out "/var"))
5046 #t)))
5047 (add-after 'install 'wrap
5048 (lambda* (#:key inputs outputs #:allow-other-keys)
5049 ;; Make sure 'hiawatha' finds 'mbedtls'.
5050 (let* ((out (assoc-ref outputs "out"))
5051 (sbin (string-append out "/sbin"))
5052 (mbed (assoc-ref inputs "mbedtls-apache")))
5053 (wrap-program (string-append sbin "/hiawatha")
5054 `("PATH" ":" prefix (,mbed)))))))))
5055 (inputs
5056 ;; TODO: package "hiawatha-monitor", an optional dependency of "hiawatha"
5057 `(("mbedtls-apache" ,mbedtls-apache) ;Hiawatha includes this version.
5058 ("zlib" ,zlib)
5059 ("libxslt" ,libxslt)
5060 ("libxml2" ,libxml2)))
5061 (home-page "https://www.hiawatha-webserver.org")
5062 (synopsis "Webserver with focus on security")
5063 (description
5064 "Hiawatha has been written with security in mind.
5065 Features include the ability to stop SQL injections, XSS and CSRF attacks and
5066 exploit attempts.")
5067 (license l:gpl2)))
5068
5069 (define-public python-httpbin
5070 (package
5071 (name "python-httpbin")
5072 (version "0.5.0")
5073 (source
5074 (origin
5075 (method url-fetch)
5076 (uri (pypi-uri "httpbin" version))
5077 (sha256
5078 (base32
5079 "1dc92lnk846hpilslrqnr63x55cxll4qx88gif8fm521gv9cbyvr"))))
5080 (build-system python-build-system)
5081 (propagated-inputs
5082 `(("python-decorator" ,python-decorator)
5083 ("python-flask" ,python-flask)
5084 ("python-itsdangerous" ,python-itsdangerous)
5085 ("python-markupsafe" ,python-markupsafe)
5086 ("python-six" ,python-six)))
5087 (home-page "https://github.com/Runscope/httpbin")
5088 (synopsis "HTTP request and response service")
5089 (description "Testing an HTTP Library can become difficult sometimes.
5090 @code{RequestBin} is fantastic for testing POST requests, but doesn't let you control the
5091 response. This exists to cover all kinds of HTTP scenarios. All endpoint responses are
5092 JSON-encoded.")
5093 (license l:isc)))
5094
5095 (define-public python2-httpbin
5096 (package-with-python2 python-httpbin))
5097
5098 (define-public python-pytest-httpbin
5099 (package
5100 (name "python-pytest-httpbin")
5101 (version "0.2.3")
5102 (source
5103 (origin
5104 (method url-fetch)
5105 (uri (pypi-uri "pytest-httpbin" version))
5106 (sha256
5107 (base32
5108 "1y0v2v7xpzpyd4djwp7ad8ifnlxp8r1y6dfbxg5ckzvllkgridn5"))))
5109 (build-system python-build-system)
5110 (propagated-inputs
5111 `(("python-six" ,python-six)
5112 ("python-httpbin" ,python-httpbin)
5113 ("python-pytest" ,python-pytest)))
5114 (home-page
5115 "https://github.com/kevin1024/pytest-httpbin")
5116 (synopsis
5117 "Test your HTTP library against a local copy of httpbin")
5118 (description
5119 "@code{Pytest-httpbin} creates a @code{pytest} fixture that is dependency-injected
5120 into your tests. It automatically starts up a HTTP server in a separate thread running
5121 @code{httpbin} and provides your test with the URL in the fixture.")
5122 (license l:expat)))
5123
5124 (define-public python2-pytest-httpbin
5125 (package-with-python2 python-pytest-httpbin))
5126
5127 (define-public http-parser
5128 (package
5129 (name "http-parser")
5130 (version "2.8.1")
5131 (source (origin
5132 (method url-fetch)
5133 (uri (string-append "https://github.com/nodejs/http-parser/"
5134 "archive/v" version ".tar.gz"))
5135 (file-name (string-append name "-" version ".tar.gz"))
5136 (sha256
5137 (base32
5138 "15ids8k2f0xhnnxh4m85w2f78pg5ndiwrpl24kyssznnp1l5yqai"))))
5139 (build-system gnu-build-system)
5140 (arguments
5141 `(#:test-target "test"
5142 #:make-flags
5143 (list (string-append "PREFIX="
5144 (assoc-ref %outputs "out"))
5145 "CC=gcc" "library")
5146 #:phases
5147 (modify-phases %standard-phases
5148 (delete 'configure))))
5149 (home-page "https://github.com/nodejs/http-parser")
5150 (synopsis "HTTP request/response parser for C")
5151 (description "This is a parser for HTTP messages written in C. It parses
5152 both requests and responses. The parser is designed to be used in
5153 high-performance HTTP applications. It does not make any syscalls nor
5154 allocations, it does not buffer data, it can be interrupted at anytime.
5155 Depending on your architecture, it only requires about 40 bytes of data per
5156 message stream (in a web server that is per connection).")
5157 (license l:expat)))
5158
5159 (define-public python2-httpretty
5160 (package
5161 (name "python2-httpretty")
5162 (version "0.8.14")
5163 (source
5164 (origin
5165 (method url-fetch)
5166 (uri (pypi-uri "httpretty" version))
5167 (sha256
5168 (base32
5169 "0vlp5qkyw3pxwwsg7xmdcfh1csvypvaz4m6abida8s4xmjxpdhc3"))))
5170 (build-system python-build-system)
5171 (native-inputs
5172 `(("python-sphinx-rtd-theme" ,python2-sphinx-rtd-theme)
5173 ("python-sphinx" ,python2-sphinx)
5174 ("python-coverage" ,python2-coverage)
5175 ("python-tornado" ,python2-tornado)
5176 ("python-urllib3" ,python2-urllib3)
5177 ("python-sure" ,python2-sure)
5178 ("python-steadymark" ,python2-steadymark)
5179 ("python-requests" ,python2-requests)
5180 ("python-rednose" ,python2-rednose)
5181 ("python-nose-randomly" ,python2-nose-randomly)
5182 ("python-misaka" ,python2-misaka)
5183 ("python-pytest-httpbin" ,python2-pytest-httpbin)
5184 ("python-nose" ,python2-nose)))
5185 (arguments
5186 `(#:tests? #f
5187 ;; Requires mock>=1.3.0 which requires a more up-to-date
5188 ;; python-pbr. After updating these trying to build the
5189 ;; package leads to failures in python-flake8 and other
5190 ;; packages. The cascade of updates and failures this
5191 ;; leads to, seems to not be worth having the test run.
5192 #:python ,python-2
5193 #:phases
5194 (modify-phases %standard-phases
5195 (add-before 'build 'patch-test-requirements
5196 (lambda* (#:key inputs #:allow-other-keys)
5197 ;; Update requirements from dependecy==version
5198 ;; to dependency>=version
5199 (substitute* "development.txt"
5200 (("==") ">="))
5201 #t)))))
5202 (home-page "http://github.com/gabrielfalcao/httpretty")
5203 (synopsis "HTTP client mock for Python")
5204 (description "@code{httpretty} is a helper for faking web requests,
5205 inspired by Ruby's @code{fakeweb}.")
5206 (license l:expat)))
5207
5208 (define-public jo
5209 (package
5210 (name "jo")
5211 (version "1.1")
5212 (source
5213 (origin
5214 (method url-fetch)
5215 (uri (string-append "https://github.com/jpmens/jo/releases/download/v"
5216 version "/jo-" version ".tar.gz"))
5217 (sha256
5218 (base32
5219 "0pysickpxrbl53c122h6swvz8sck68q3j0ql38wvbz70q9k4gvb3"))))
5220 (build-system gnu-build-system)
5221 (home-page "https://github.com/jpmens/jo")
5222 (synopsis "Output JSON from a shell")
5223 (description "jo is a command-line utility to create JSON objects or
5224 arrays. It creates a JSON string on stdout from words provided as
5225 command-line arguments or read from stdin.")
5226 (license (list l:gpl2+
5227 l:expat)))) ; json.c, json.h
5228
5229 (define-public python-internetarchive
5230 (package
5231 (name "python-internetarchive")
5232 (version "1.7.4")
5233 (source
5234 (origin
5235 (method url-fetch)
5236 (uri (string-append "https://github.com/jjjake/internetarchive/archive/"
5237 "v" version ".tar.gz"))
5238 (file-name (string-append name "-" version ".tar.gz"))
5239 (sha256
5240 (base32
5241 "0sdbb2ag6vmybi8zmbjszi492a587giaaqxyy1p6gy03cb8mc512"))))
5242 (build-system python-build-system)
5243 (arguments
5244 `(#:phases
5245 (modify-phases %standard-phases
5246 (delete 'check)
5247 (add-after 'install 'check
5248 (lambda* (#:key inputs outputs #:allow-other-keys)
5249 (add-installed-pythonpath inputs outputs)
5250 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
5251 ":" (getenv "PATH")))
5252 (zero? (system* "py.test" "-v" "-k"
5253 (string-append
5254 ;; These tests attempt to make a connection to
5255 ;; an external web service.
5256 "not test_get_item_with_kwargs"
5257 " and not test_ia"))))))))
5258 (propagated-inputs
5259 `(("python-requests" ,python-requests)
5260 ("python-jsonpatch" ,python-jsonpatch-0.4)
5261 ("python-docopt" ,python-docopt)
5262 ("python-clint" ,python-clint)
5263 ("python-six" ,python-six)
5264 ("python-schema" ,python-schema-0.5)
5265 ("python-backports-csv" ,python-backports-csv)))
5266 (native-inputs
5267 `(("python-pytest" ,python-pytest)
5268 ("python-pytest-capturelog" ,python-pytest-capturelog)
5269 ("python-responses" ,python-responses)))
5270 (home-page "https://github.com/jjjake/internetarchive")
5271 (synopsis "Command-line interface to archive.org")
5272 (description "@code{ia} is a command-line tool for using
5273 @url{archive.org} from the command-line. It also emplements the
5274 internetarchive python module for programatic access to archive.org.")
5275 (properties
5276 `((python2-variant . ,(delay python2-internetarchive))))
5277 (license l:agpl3+)))
5278
5279 (define-public python2-internetarchive
5280 (package-with-python2
5281 (strip-python2-variant python-internetarchive)))
5282
5283 (define-public python-clf
5284 (let ((commit-test-clf "d01d25923c599d3261910f79fb948825b4270d07")) ; 0.5.7
5285 (package
5286 (name "python-clf")
5287 (version "0.5.7")
5288 (source
5289 (origin
5290 (method url-fetch)
5291 (uri (pypi-uri "clf" version))
5292 (sha256
5293 (base32
5294 "0zlkzqnpz7a4iavsq5vaz0nf5nr7qm5znpg1vlpz6rwnx6hikjdb"))))
5295 (build-system python-build-system)
5296 (propagated-inputs
5297 `(("python-docopt" ,python-docopt)
5298 ("python-pygments" ,python-pygments)
5299 ("python-requests" ,python-requests)
5300 ("python-nose" ,python-nose)
5301 ("python-lxml" ,python-lxml)
5302 ("python-pyaml" ,python-pyaml)))
5303 (inputs
5304 `(("test-clf"
5305 ,(origin
5306 (method url-fetch)
5307 (uri (string-append "https://raw.githubusercontent.com"
5308 "/ncrocfer/clf/" commit-test-clf
5309 "/test_clf.py"))
5310 (sha256
5311 (base32
5312 "19lr5zdzsmxgkg7wrjq1yzkiahd03wi4k3dskssyhmjls8c10nqd"))))))
5313 (arguments
5314 '(#:phases
5315 (modify-phases %standard-phases
5316 (add-after 'unpack 'get-tests
5317 (lambda _
5318 (copy-file (assoc-ref %build-inputs "test-clf") "test_clf.py")))
5319 (replace 'check
5320 (lambda _
5321 (zero? (system* "nosetests"
5322 ;; These tests require internet connection
5323 "--exclude=test_browse"
5324 "--exclude=test_command"
5325 "--exclude=test_search")))))))
5326 (home-page "https://github.com/ncrocfer/clf")
5327 (synopsis "Search code snippets on @url{https://commandlinefu.com}")
5328 (description "@code{clf} is a command line tool for searching code
5329 snippets on @url{https://commandlinefu.com}.")
5330 (license l:expat))))
5331
5332 (define-public python2-clf
5333 (package-with-python2 python-clf))
5334
5335 (define-public r-shiny
5336 (package
5337 (name "r-shiny")
5338 (version "1.0.3")
5339 (source
5340 (origin
5341 (method url-fetch)
5342 (uri (string-append "https://github.com/rstudio/shiny/"
5343 "archive/v" version ".tar.gz"))
5344 (file-name (string-append name "-" version ".tar.gz"))
5345 (sha256
5346 (base32
5347 "0z2v2s4hd44mvzjn7r70549kdzkrrch9nxhp27r6x2cy6micizm3"))))
5348 (build-system r-build-system)
5349 (arguments
5350 `(#:modules ((guix build r-build-system)
5351 (guix build minify-build-system)
5352 (guix build utils)
5353 (ice-9 match))
5354 #:imported-modules (,@%r-build-system-modules
5355 (guix build minify-build-system))
5356 #:phases
5357 (modify-phases (@ (guix build r-build-system) %standard-phases)
5358 (add-after 'unpack 'replace-bundled-minified-JavaScript
5359 (lambda* (#:key inputs #:allow-other-keys)
5360 (let ((replace-file (lambda (old new)
5361 (format #t "replacing ~a with ~a\n" old new)
5362 (delete-file old)
5363 (symlink new old))))
5364 ;; NOTE: Files in ./inst/www/shared/datepicker/js/locales/
5365 ;; contain just data. They are not minified code, so we don't
5366 ;; replace them.
5367 (with-directory-excursion "inst/www/shared"
5368 (replace-file "bootstrap/shim/respond.min.js"
5369 (string-append (assoc-ref inputs "js-respond")
5370 "/share/javascript/respond.min.js"))
5371 (replace-file "bootstrap/shim/html5shiv.min.js"
5372 (string-append (assoc-ref inputs "js-html5shiv")
5373 "/share/javascript/html5shiv.min.js"))
5374 (replace-file "json2-min.js"
5375 (string-append (assoc-ref inputs "js-json2")
5376 "/share/javascript/json2.min.js"))
5377 (replace-file "strftime/strftime-min.js"
5378 (string-append (assoc-ref inputs "js-strftime")
5379 "/share/javascript/strftime.min.js"))
5380 (replace-file "highlight/highlight.pack.js"
5381 (string-append (assoc-ref inputs "js-highlight")
5382 "/share/javascript/highlight.min.js"))
5383 (replace-file "datatables/js/jquery.dataTables.min.js"
5384 (string-append (assoc-ref inputs "js-datatables")
5385 "/share/javascript/jquery.dataTables.min.js"))
5386 (replace-file "selectize/js/selectize.min.js"
5387 (string-append (assoc-ref inputs "js-selectize")
5388 "/share/javascript/selectize.min.js"))
5389 (replace-file "selectize/js/es5-shim.min.js"
5390 (string-append (assoc-ref inputs "js-es5-shim")
5391 "/share/javascript/es5-shim.min.js"))
5392 (for-each (match-lambda
5393 ((source . target)
5394 (delete-file target)
5395 (minify source #:target target)))
5396 '(("jqueryui/jquery-ui.js" .
5397 "jqueryui/jquery-ui.min.js")
5398 ("showdown/src/showdown.js" .
5399 "showdown/compressed/showdown.js")
5400 ("datepicker/js/bootstrap-datepicker.js" .
5401 "datepicker/js/bootstrap-datepicker.min.js")
5402 ("ionrangeslider/js/ion.rangeSlider.js" .
5403 "ionrangeslider/js/ion.rangeSlider.min.js")
5404 ("bootstrap/js/bootstrap.js" .
5405 "bootstrap/js/bootstrap.min.js")
5406 ("shiny.js" .
5407 "shiny.min.js")
5408 ("jquery.js" .
5409 "jquery.min.js")))))
5410 #t)))))
5411 (propagated-inputs
5412 `(("r-httpuv" ,r-httpuv)
5413 ("r-mime" ,r-mime)
5414 ("r-jsonlite" ,r-jsonlite)
5415 ("r-xtable" ,r-xtable)
5416 ("r-digest" ,r-digest)
5417 ("r-htmltools" ,r-htmltools)
5418 ("r-r6" ,r-r6)
5419 ("r-sourcetools" ,r-sourcetools)))
5420 (inputs
5421 `(("js-datatables" ,js-datatables)
5422 ("js-html5shiv" ,js-html5shiv)
5423 ("js-json2" ,js-json2)
5424 ("js-respond" ,js-respond)
5425 ("js-selectize" ,js-selectize)
5426 ("js-strftime" ,js-strftime)
5427 ("js-highlight" ,js-highlight)
5428 ("js-es5-shim" ,js-es5-shim)))
5429 (home-page "http://shiny.rstudio.com")
5430 (synopsis "Easy interactive web applications with R")
5431 (description
5432 "Makes it incredibly easy to build interactive web applications
5433 with R. Automatic \"reactive\" binding between inputs and outputs and
5434 extensive prebuilt widgets make it possible to build beautiful,
5435 responsive, and powerful applications with minimal effort.")
5436 (license l:artistic2.0)))
5437
5438 (define-public r-shinydashboard
5439 (package
5440 (name "r-shinydashboard")
5441 (version "0.7.0")
5442 (source (origin
5443 (method url-fetch)
5444 (uri (cran-uri "shinydashboard" version))
5445 (sha256
5446 (base32
5447 "10yqcqqcxgfqwkmscqwvvgr710im583qsqnsqkfpisjvkqp10yqb"))))
5448 (build-system r-build-system)
5449 ;; The directory inst/AdminLTE/ contains a minified JavaScript file.
5450 ;; Regenerate it from the included sources.
5451 (arguments
5452 `(#:modules ((guix build utils)
5453 (guix build r-build-system)
5454 (ice-9 popen))
5455 #:phases
5456 (modify-phases %standard-phases
5457 (add-after 'unpack 'generate-minified-javascript
5458 (lambda _
5459 (with-directory-excursion "inst/AdminLTE"
5460 (delete-file "app.min.js")
5461 (let ((minified (open-pipe* OPEN_READ "uglify-js" "app.js")))
5462 (call-with-output-file "app.min.js"
5463 (lambda (port)
5464 (dump-port minified port))))))))))
5465 (propagated-inputs
5466 `(("r-htmltools" ,r-htmltools)
5467 ("r-shiny" ,r-shiny)))
5468 (native-inputs
5469 `(("uglify-js" ,uglify-js)))
5470 (home-page "http://rstudio.github.io/shinydashboard/")
5471 (synopsis "Create dashboards with shiny")
5472 (description "This package provides an extension to the Shiny web
5473 application framework for R, making it easy to create attractive dashboards.")
5474 ;; This package includes software that was released under the Expat
5475 ;; license, but the whole package is released under GPL version 2 or
5476 ;; later.
5477 (license l:gpl2+)))
5478
5479 (define-public r-crosstalk
5480 (package
5481 (name "r-crosstalk")
5482 (version "1.0.0")
5483 (source
5484 (origin
5485 (method url-fetch)
5486 (uri (cran-uri "crosstalk" version))
5487 (sha256
5488 (base32
5489 "0lfa89vhrzi7a1rghmygcjr8gzddw35sinb3jx6g49mc9jias7mk"))))
5490 (build-system r-build-system)
5491 (propagated-inputs
5492 `(("r-ggplot2" ,r-ggplot2)
5493 ("r-htmltools" ,r-htmltools)
5494 ("r-jsonlite" ,r-jsonlite)
5495 ("r-lazyeval" ,r-lazyeval)
5496 ("r-r6" ,r-r6)
5497 ("r-shiny" ,r-shiny)))
5498 (home-page "https://rstudio.github.io/crosstalk/")
5499 (synopsis "Inter-widget interactivity for HTML widgets")
5500 (description
5501 "This package provides building blocks for allowing HTML widgets to
5502 communicate with each other, with Shiny or without (i.e. static @code{.html}
5503 files). It currently supports linked brushing and filtering.")
5504 (license l:expat)))
5505
5506 (define-public r-rook
5507 (package
5508 (name "r-rook")
5509 (version "1.1-1")
5510 (source
5511 (origin
5512 (method url-fetch)
5513 (uri (cran-uri "Rook" version))
5514 (sha256
5515 (base32
5516 "00s9a0kr9rwxvlq433daxjk4ji8m0w60hjdprf502msw9kxfrx00"))))
5517 (properties `((upstream-name . "Rook")))
5518 (build-system r-build-system)
5519 (propagated-inputs `(("r-brew" ,r-brew)))
5520 (home-page "https://cran.r-project.org/web/packages/Rook")
5521 (synopsis "Web server interface for R")
5522 (description
5523 "This package contains the Rook specification and convenience software
5524 for building and running Rook applications. A Rook application is an R
5525 reference class object that implements a @code{call} method or an R closure
5526 that takes exactly one argument, an environment, and returns a list with three
5527 named elements: the @code{status}, the @code{headers}, and the @code{body}.")
5528 (license l:gpl2)))
5529
5530 (define-public rss-bridge
5531 (package
5532 (name "rss-bridge")
5533 (version "2018-03-11")
5534 (source
5535 (origin
5536 (method url-fetch)
5537 (uri (string-append "https://github.com/RSS-Bridge/rss-bridge/archive/"
5538 version ".tar.gz"))
5539 (file-name (string-append name "-" version ".tar.gz"))
5540 (sha256
5541 (base32
5542 "1ix15ck45yb659k63mhwxwia6qnm9nn8jw0bga85abrvk1rchjdn"))))
5543 (build-system trivial-build-system)
5544 (native-inputs
5545 `(("gzip" ,gzip)
5546 ("tar" ,tar)))
5547 (arguments
5548 '(#:modules ((guix build utils))
5549 #:builder
5550 (begin
5551 (use-modules (guix build utils)
5552 (ice-9 match))
5553 (let* ((out (assoc-ref %outputs "out"))
5554 (share-rss-bridge (string-append out "/share/rss-bridge")))
5555 (set-path-environment-variable
5556 "PATH" '("bin") (map (match-lambda ((_ . input) input))
5557 %build-inputs))
5558 (mkdir-p share-rss-bridge)
5559 (system* "tar" "xvf" (assoc-ref %build-inputs "source")
5560 "--strip-components" "1" "-C" share-rss-bridge)
5561 #t))))
5562 (home-page "https://github.com/RSS-Bridge/rss-bridge")
5563 (synopsis "Generate Atom feeds for social networking websites")
5564 (description "rss-bridge generates Atom feeds for social networking
5565 websites lacking feeds. Supported websites include Facebook, Twitter,
5566 Instagram and YouTube.")
5567 (license (list l:public-domain
5568 l:expat)))) ;; vendor/simplehtmldom/simple_html_dom.php
5569
5570 (define-public linkchecker
5571 (package
5572 (name "linkchecker")
5573 (version "9.3")
5574 (source
5575 (origin
5576 (method url-fetch)
5577 (uri (pypi-uri "LinkChecker" version))
5578 (sha256
5579 (base32
5580 "0v8pavf0bx33xnz1kwflv0r7lxxwj7vg3syxhy2wzza0wh6sc2pf"))))
5581 (build-system python-build-system)
5582 (inputs
5583 `(("python2-requests" ,python2-requests)))
5584 (arguments
5585 `(#:python ,python-2
5586 #:phases
5587 (modify-phases %standard-phases
5588 ;; Remove faulty python-requests version check. This has been fixed
5589 ;; upstream, and can be removed in version 9.4.
5590 (add-after 'unpack 'remove-python-requests-version
5591 (lambda _
5592 (substitute* "linkcheck/__init__.py"
5593 (("requests.__version__ <= '2.2.0'") "False"))
5594 #t)))))
5595 (home-page "https://linkcheck.github.io/linkchecker")
5596 (synopsis "Check websites for broken links")
5597 (description "LinkChecker is a website validator. It checks for broken
5598 links in websites. It is recursive and multithreaded providing output in
5599 colored or normal text, HTML, SQL, CSV, XML or as a sitemap graph. It
5600 supports checking HTTP/1.1, HTTPS, FTP, mailto, news, nntp, telnet and local
5601 file links.")
5602 (license (list l:gpl2+
5603 l:bsd-2 ; linkcheck/better_exchook2.py
5604 l:bsd-3 ; linkcheck/colorama.py
5605 l:psfl ; linkcheck/gzip2.py
5606 l:expat ; linkcheck/mem.py
5607 ;; FIXME: Unbundle dnspython and miniboa
5608 ;; This issue has been raised upstream
5609 ;; https://github.com/wummel/linkchecker/issues/729
5610 l:isc ; third_party/dnspython
5611 l:asl2.0)))) ; third_party/miniboa
5612
5613 (define-public cadaver
5614 (package
5615 (name "cadaver")
5616 (version "0.23.3")
5617 (source
5618 (origin
5619 (method url-fetch)
5620 (uri (string-append "http://www.webdav.org/cadaver/"
5621 name "-" version ".tar.gz"))
5622 (sha256
5623 (base32
5624 "1jizq69ifrjbjvz5y79wh1ny94gsdby4gdxwjad4bfih6a5fck7x"))))
5625 (build-system gnu-build-system)
5626 ;; TODO: Unbundle libneon and make build succeed with new neon.
5627 (arguments
5628 `(#:configure-flags (list "--with-ssl=openssl")
5629 #:tests? #f)) ;No tests included
5630 (native-inputs
5631 `(("gettext" ,gnu-gettext)
5632 ("pkg-config" ,pkg-config)
5633 ("intltool" ,intltool)))
5634 (inputs
5635 `(("expat" ,expat)
5636 ("openssl" ,openssl)))
5637 (home-page "http://www.webdav.org/cadaver")
5638 (synopsis "Command-line WebDAV client")
5639 (description
5640 "Cadaver is a command-line WebDAV client for Unix. It supports
5641 file upload, download, on-screen display, namespace operations (move/copy),
5642 collection creation and deletion, and locking operations.")
5643 (license l:gpl2)))
5644
5645 (define-public python-py-ubjson
5646 (package
5647 (name "python-py-ubjson")
5648 (version "0.10.0")
5649 (source
5650 (origin
5651 (method url-fetch)
5652 (uri (pypi-uri "py-ubjson" version))
5653 (sha256
5654 (base32
5655 "03l9m9w5ip4hw0y69wlys5gzsfb7zcq3a77blj88grgiqhn5vm5n"))))
5656 (build-system python-build-system)
5657 (home-page "https://github.com/Iotic-Labs/py-ubjson")
5658 (synopsis "Universal Binary JSON encoder/decoder")
5659 (description
5660 "Py-ubjson is a Python module providing an Universal Binary JSON
5661 encoder/decoder based on the draft-12 specification for UBJSON.")
5662 (license l:asl2.0)))
5663
5664 (define-public java-tomcat
5665 (package
5666 (name "java-tomcat")
5667 (version "8.5.28")
5668 (source (origin
5669 (method url-fetch)
5670 (uri (string-append "mirror://apache/tomcat/tomcat-8/v"
5671 version "/src/apache-tomcat-" version "-src.tar.gz"))
5672 (sha256
5673 (base32
5674 "0q2bc3sajrmcx3z3vhhwp78y47ryc2ky8ssbdmfk24zvqdb76hvl"))))
5675 (build-system ant-build-system)
5676 (inputs
5677 `(("java-eclipse-jdt-core" ,java-eclipse-jdt-core)))
5678 (native-inputs
5679 `(("java-junit" ,java-junit)))
5680 (arguments
5681 `(#:build-target "package"
5682 #:tests? #f; requires downloading some files.
5683 #:phases
5684 (modify-phases %standard-phases
5685 (add-after 'unpack 'prevent-download
5686 (lambda _
5687 ;; This directory must exist
5688 (mkdir "downloads")
5689 ;; We patch build.xml so it doesn't download any dependency, because
5690 ;; we already have all of them.
5691 (substitute* "build.xml"
5692 (("download-compile,") "")
5693 (("depends=\"validate\"") "depends=\"build-prepare\"")
5694 ((",download-validate") ""))
5695 #t))
5696 (add-after 'unpack 'generate-properties
5697 (lambda _
5698 ;; This could have been passed to make-flags, but getcwd returns
5699 ;; a different directory then.
5700 (with-output-to-file "build.properties"
5701 (lambda _
5702 (display
5703 (string-append "base.path=" (getcwd) "/downloads\n"))))
5704 #t))
5705 (replace 'install
5706 (install-jars "output/build/lib")))))
5707 (home-page "https://tomcat.apache.org")
5708 (synopsis "Java Servlet, JavaServer Pages, Java Expression Language and Java
5709 WebSocket")
5710 (description "Apache Tomcat is a free implementation of the Java
5711 Servlet, JavaServer Pages, Java Expression Language and Java WebSocket
5712 technologies.")
5713 (license l:asl2.0)))
5714
5715 (define-public java-eclipse-jetty-test-helper
5716 (package
5717 (name "java-eclipse-jetty-test-helper")
5718 (version "4.2")
5719 (source (origin
5720 (method url-fetch)
5721 (uri (string-append "https://github.com/eclipse/jetty.toolchain/"
5722 "archive/jetty-test-helper-" version ".tar.gz"))
5723 (sha256
5724 (base32
5725 "1jd6r9wc26fa11si4rn2gvy8ml8q4zw1nr6v04mjp8wvwpgvzwx5"))))
5726 (build-system ant-build-system)
5727 (arguments
5728 `(#:jar-name "eclipse-jetty-test-helper.jar"
5729 #:source-dir "src/main/java"
5730 #:test-dir "src/test"
5731 #:jdk ,icedtea-8
5732 #:phases
5733 (modify-phases %standard-phases
5734 (add-before 'configure 'chdir
5735 (lambda _
5736 (chdir "jetty-test-helper")))
5737 (add-before 'build 'fix-paths
5738 (lambda _
5739 ;; TODO:
5740 ;; This file assumes that the build directory is named "target"
5741 ;; but it is not the case with our ant-build-system. Once we have
5742 ;; maven though, we will have to rebuild this package because this
5743 ;; assumption is correct with maven-build-system.
5744 (substitute*
5745 "src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java"
5746 (("\"target\"") "\"build\"")
5747 (("\"tests\"") "\"test-classes\""))
5748 ;; Tests assume we are building with maven, so that the build
5749 ;; directory is named "target", and not "build".
5750 (with-directory-excursion "src/test/java/org/eclipse/jetty/toolchain/test"
5751 (substitute* '("FSTest.java" "OSTest.java" "TestingDirTest.java"
5752 "MavenTestingUtilsTest.java")
5753 (("target/tests") "build/test-classes")
5754 (("\"target") "\"build")))
5755 #t)))))
5756 (inputs
5757 `(("junit" ,java-junit)
5758 ("hamcrest" ,java-hamcrest-all)))
5759 (home-page "https://www.eclipse.org/jetty/")
5760 (synopsis "Helper classes for jetty tests")
5761 (description "This packages contains helper classes for testing the Jetty
5762 Web Server.")
5763 ;; This program is licensed under both epl and asl.
5764 (license (list l:epl1.0 l:asl2.0))))
5765
5766 (define-public java-eclipse-jetty-perf-helper
5767 (package
5768 (inherit java-eclipse-jetty-test-helper)
5769 (name "java-eclipse-jetty-perf-helper")
5770 (arguments
5771 `(#:jar-name "eclipse-jetty-perf-helper.jar"
5772 #:source-dir "src/main/java"
5773 #:tests? #f; no tests
5774 #:jdk ,icedtea-8
5775 #:phases
5776 (modify-phases %standard-phases
5777 (add-before 'configure 'chdir
5778 (lambda _
5779 (chdir "jetty-perf-helper")
5780 #t)))))
5781 (inputs
5782 `(("hdrhistogram" ,java-hdrhistogram)))))
5783
5784 (define-public java-eclipse-jetty-util
5785 (package
5786 (name "java-eclipse-jetty-util")
5787 (version "9.4.6")
5788 (source (origin
5789 (method url-fetch)
5790 (uri (string-append "https://github.com/eclipse/jetty.project/"
5791 "archive/jetty-" version ".v20170531.tar.gz"))
5792 (sha256
5793 (base32
5794 "0x7kbdvkmgr6kbsmbwiiyv3bb0d6wk25frgvld9cf8540136z9p1"))))
5795 (build-system ant-build-system)
5796 (arguments
5797 `(#:jar-name "eclipse-jetty-util.jar"
5798 #:source-dir "src/main/java"
5799 #:test-exclude
5800 (list "**/Abstract*.java"
5801 ;; requires network
5802 "**/InetAddressSetTest.java"
5803 ;; Assumes we are using maven
5804 "**/TypeUtilTest.java"
5805 ;; Error on the style of log
5806 "**/StdErrLogTest.java")
5807 #:jdk ,icedtea-8
5808 #:phases
5809 (modify-phases %standard-phases
5810 (add-before 'configure 'chdir
5811 (lambda _
5812 (chdir "jetty-util")
5813 #t)))))
5814 (inputs
5815 `(("slf4j" ,java-slf4j-api)
5816 ("servlet" ,java-tomcat)))
5817 (native-inputs
5818 `(("junit" ,java-junit)
5819 ("hamcrest" ,java-hamcrest-all)
5820 ("perf-helper" ,java-eclipse-jetty-perf-helper)
5821 ("test-helper" ,java-eclipse-jetty-test-helper)))
5822 (home-page "https://www.eclipse.org/jetty/")
5823 (synopsis "Utility classes for Jetty")
5824 (description "The Jetty Web Server provides an HTTP server and Servlet
5825 container capable of serving static and dynamic content either from a standalone
5826 or embedded instantiation. This package provides utility classes.")
5827 (license (list l:epl1.0 l:asl2.0))))
5828
5829 ;; This version is required by maven-wagon
5830 (define-public java-eclipse-jetty-util-9.2
5831 (package
5832 (inherit java-eclipse-jetty-util)
5833 (version "9.2.22")
5834 (source (origin
5835 (method url-fetch)
5836 (uri (string-append "https://github.com/eclipse/jetty.project/"
5837 "archive/jetty-" version ".v20170606.tar.gz"))
5838 (sha256
5839 (base32
5840 "1i51qlsd7h06d35kx5rqpzbfadbcszycx1iwr6vz7qc9gf9f29la"))))
5841 (arguments
5842 `(#:jar-name "eclipse-jetty-util.jar"
5843 #:source-dir "src/main/java"
5844 #:jdk ,icedtea-8
5845 #:test-exclude
5846 (list "**/Abstract*.java"
5847 ;; requires network
5848 "**/InetAddressSetTest.java"
5849 ;; Assumes we are using maven
5850 "**/TypeUtilTest.java"
5851 ;; We don't have an implementation for slf4j
5852 "**/LogTest.java"
5853 ;; Error on the style of log
5854 "**/StdErrLogTest.java")
5855 #:phases
5856 (modify-phases %standard-phases
5857 (add-before 'configure 'chdir
5858 (lambda _
5859 (chdir "jetty-util")
5860 #t))
5861 (add-before 'build 'fix-test-sources
5862 (lambda _
5863 ;; We need to fix issues caused by changes in newer versions of
5864 ;; jetty-test-helper
5865 (let ((src "src/test/java/org/eclipse/jetty/util/resource"))
5866 (substitute* (string-append src "/AbstractFSResourceTest.java")
5867 (("testdir.getDir\\(\\)") "testdir.getPath().toFile()")
5868 (("testdir.getFile\\(\"foo\"\\)")
5869 "testdir.getPathFile(\"foo\").toFile()")
5870 (("testdir.getFile\\(name\\)")
5871 "testdir.getPathFile(name).toFile()")))
5872 #t)))))))
5873
5874 (define-public java-eclipse-jetty-io
5875 (package
5876 (inherit java-eclipse-jetty-util)
5877 (name "java-eclipse-jetty-io")
5878 (arguments
5879 `(#:jar-name "eclipse-jetty-io.jar"
5880 #:source-dir "src/main/java"
5881 #:jdk ,icedtea-8
5882 #:test-exclude (list "**/Abstract*.java"
5883 ;; Abstract class
5884 "**/EndPointTest.java")
5885 #:phases
5886 (modify-phases %standard-phases
5887 (add-before 'configure 'chdir
5888 (lambda _
5889 (chdir "jetty-io")
5890 #t)))))
5891 (inputs
5892 `(("slf4j" ,java-slf4j-api)
5893 ("servlet" ,java-tomcat)
5894 ("util" ,java-eclipse-jetty-util)))
5895 (synopsis "Jetty :: IO Utility")
5896 (description "The Jetty Web Server provides an HTTP server and Servlet
5897 container capable of serving static and dynamic content either from a standalone
5898 or embedded instantiation. This package provides IO-related utility classes.")))
5899
5900 (define-public java-eclipse-jetty-io-9.2
5901 (package
5902 (inherit java-eclipse-jetty-io)
5903 (version (package-version java-eclipse-jetty-util-9.2))
5904 (source (package-source java-eclipse-jetty-util-9.2))
5905 (inputs
5906 `(("util" ,java-eclipse-jetty-util-9.2)
5907 ,@(package-inputs java-eclipse-jetty-util-9.2)))
5908 (native-inputs
5909 `(("mockito" ,java-mockito-1)
5910 ("cglib" ,java-cglib)
5911 ("objenesis" ,java-objenesis)
5912 ("asm" ,java-asm)
5913 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
5914
5915 (define-public java-eclipse-jetty-http
5916 (package
5917 (inherit java-eclipse-jetty-util)
5918 (name "java-eclipse-jetty-http")
5919 (arguments
5920 `(#:jar-name "eclipse-jetty-http.jar"
5921 #:source-dir "src/main/java"
5922 #:jdk ,icedtea-8
5923 #:phases
5924 (modify-phases %standard-phases
5925 (add-before 'configure 'chdir
5926 (lambda _
5927 (chdir "jetty-http")
5928 #t))
5929 (add-before 'build 'copy-resources
5930 (lambda _
5931 (mkdir-p "build/classes")
5932 (copy-recursively "src/main/resources/" "build/classes/")
5933 #t)))))
5934 (inputs
5935 `(("slf4j" ,java-slf4j-api)
5936 ("servlet" ,java-tomcat)
5937 ("io" ,java-eclipse-jetty-io)
5938 ("util" ,java-eclipse-jetty-util)))
5939 (synopsis "Jetty :: Http Utility")
5940 (description "The Jetty Web Server provides an HTTP server and Servlet
5941 container capable of serving static and dynamic content either from a standalone
5942 or embedded instantiation. This package provides HTTP-related utility classes.")))
5943
5944 (define-public java-eclipse-jetty-http-9.2
5945 (package
5946 (inherit java-eclipse-jetty-http)
5947 (version (package-version java-eclipse-jetty-util-9.2))
5948 (source (package-source java-eclipse-jetty-util-9.2))
5949 (inputs
5950 `(("util" ,java-eclipse-jetty-util-9.2)
5951 ("io" ,java-eclipse-jetty-io-9.2)
5952 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
5953
5954 (define-public java-eclipse-jetty-jmx
5955 (package
5956 (inherit java-eclipse-jetty-util)
5957 (name "java-eclipse-jetty-jmx")
5958 (arguments
5959 `(#:jar-name "eclipse-jetty-jmx.jar"
5960 #:source-dir "src/main/java"
5961 #:jdk ,icedtea-8
5962 #:tests? #f; FIXME: requires com.openpojo.validation
5963 #:phases
5964 (modify-phases %standard-phases
5965 (add-before 'configure 'chdir
5966 (lambda _
5967 (chdir "jetty-jmx")
5968 #t)))))
5969 (inputs
5970 `(("slf4j" ,java-slf4j-api)
5971 ("servlet" ,java-tomcat)
5972 ("util" ,java-eclipse-jetty-util)))
5973 (synopsis "Jetty :: JMX Management")
5974 (description "The Jetty Web Server provides an HTTP server and Servlet
5975 container capable of serving static and dynamic content either from a standalone
5976 or embedded instantiation. This package provides the JMX management.")))
5977
5978 (define-public java-eclipse-jetty-jmx-9.2
5979 (package
5980 (inherit java-eclipse-jetty-jmx)
5981 (version (package-version java-eclipse-jetty-util-9.2))
5982 (source (package-source java-eclipse-jetty-util-9.2))
5983 (inputs
5984 `(("util" ,java-eclipse-jetty-util-9.2)
5985 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
5986
5987 (define java-eclipse-jetty-http-test-classes
5988 (package
5989 (inherit java-eclipse-jetty-util)
5990 (name "java-eclipse-jetty-http-test-classes")
5991 (arguments
5992 `(#:jar-name "eclipse-jetty-http.jar"
5993 #:source-dir "src/test"
5994 #:tests? #f
5995 #:jdk ,icedtea-8
5996 #:phases
5997 (modify-phases %standard-phases
5998 (add-before 'configure 'chdir
5999 (lambda _
6000 (chdir "jetty-http"))))))
6001 (inputs
6002 `(("slf4j" ,java-slf4j-api)
6003 ("servlet" ,java-tomcat)
6004 ("http" ,java-eclipse-jetty-http)
6005 ("io" ,java-eclipse-jetty-io)
6006 ("util" ,java-eclipse-jetty-util)))))
6007
6008 (define java-eclipse-jetty-http-test-classes-9.2
6009 (package
6010 (inherit java-eclipse-jetty-http-test-classes)
6011 (version (package-version java-eclipse-jetty-util-9.2))
6012 (source (package-source java-eclipse-jetty-util-9.2))
6013 (inputs
6014 `(("http" ,java-eclipse-jetty-http-9.2)
6015 ,@(package-inputs java-eclipse-jetty-http-9.2)))))
6016
6017 (define-public java-eclipse-jetty-server
6018 (package
6019 (inherit java-eclipse-jetty-util)
6020 (name "java-eclipse-jetty-server")
6021 (arguments
6022 `(#:jar-name "eclipse-jetty-server.jar"
6023 #:source-dir "src/main/java"
6024 #:jdk ,icedtea-8
6025 #:tests? #f; requires a mockito version we don't have
6026 #:phases
6027 (modify-phases %standard-phases
6028 (add-before 'configure 'chdir
6029 (lambda _
6030 (chdir "jetty-server")
6031 #t))
6032 (add-before 'build 'fix-source
6033 (lambda _
6034 ;; Explicit casts to prevent build failures
6035 (substitute* "src/main/java/org/eclipse/jetty/server/Request.java"
6036 (("append\\(LazyList")
6037 "append((CharSequence)LazyList"))
6038 (substitute*
6039 "src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java"
6040 (((string-append
6041 "Class<\\? extends EventListener> clazz = _classLoader==null"
6042 "\\?Loader.loadClass\\(ContextHandler.class,className\\):"
6043 "_classLoader.loadClass\\(className\\);"))
6044 (string-append "Class<? extends EventListener> clazz = "
6045 "(Class<? extends EventListener>) "
6046 "(_classLoader==null?Loader.loadClass("
6047 "ContextHandler.class,className):"
6048 "_classLoader.loadClass(className));")))
6049 #t)))))
6050 (inputs
6051 `(("slf4j" ,java-slf4j-api)
6052 ("servlet" ,java-tomcat)
6053 ("http" ,java-eclipse-jetty-http)
6054 ("io" ,java-eclipse-jetty-io)
6055 ("jmx" ,java-eclipse-jetty-jmx)
6056 ("util" ,java-eclipse-jetty-util)))
6057 (native-inputs
6058 `(("test-classes" ,java-eclipse-jetty-http-test-classes)
6059 ,@(package-native-inputs java-eclipse-jetty-util)))
6060 (synopsis "Core jetty server artifact")
6061 (description "The Jetty Web Server provides an HTTP server and Servlet
6062 container capable of serving static and dynamic content either from a standalone
6063 or embedded instantiation. This package provides the core jetty server
6064 artifact.")))
6065
6066 (define-public java-eclipse-jetty-server-9.2
6067 (package
6068 (inherit java-eclipse-jetty-server)
6069 (version (package-version java-eclipse-jetty-util-9.2))
6070 (source (package-source java-eclipse-jetty-util-9.2))
6071 (inputs
6072 `(("util" ,java-eclipse-jetty-util-9.2)
6073 ("jmx" ,java-eclipse-jetty-jmx-9.2)
6074 ("io" ,java-eclipse-jetty-io-9.2)
6075 ("http" ,java-eclipse-jetty-http-9.2)
6076 ,@(package-inputs java-eclipse-jetty-util-9.2)))
6077 (native-inputs
6078 `(("test-classes" ,java-eclipse-jetty-http-test-classes-9.2)
6079 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
6080
6081 (define-public java-eclipse-jetty-security
6082 (package
6083 (inherit java-eclipse-jetty-util)
6084 (name "java-eclipse-jetty-security")
6085 (arguments
6086 `(#:jar-name "eclipse-jetty-security.jar"
6087 #:source-dir "src/main/java"
6088 #:jdk ,icedtea-8
6089 #:phases
6090 (modify-phases %standard-phases
6091 (add-before 'configure 'chdir
6092 (lambda _
6093 (chdir "jetty-security")
6094 #t)))))
6095 (inputs
6096 `(("slf4j" ,java-slf4j-api)
6097 ("servlet" ,java-tomcat)
6098 ("http" ,java-eclipse-jetty-http)
6099 ("server" ,java-eclipse-jetty-server)
6100 ("util" ,java-eclipse-jetty-util)))
6101 (native-inputs
6102 `(("io" ,java-eclipse-jetty-io)
6103 ,@(package-native-inputs java-eclipse-jetty-util)))
6104 (synopsis "Jetty security infrastructure")
6105 (description "The Jetty Web Server provides an HTTP server and Servlet
6106 container capable of serving static and dynamic content either from a standalone
6107 or embedded instantiation. This package provides the core jetty security
6108 infrastructure")))
6109
6110 (define-public java-eclipse-jetty-security-9.2
6111 (package
6112 (inherit java-eclipse-jetty-security)
6113 (version (package-version java-eclipse-jetty-util-9.2))
6114 (source (package-source java-eclipse-jetty-util-9.2))
6115 (inputs
6116 `(("util" ,java-eclipse-jetty-util-9.2)
6117 ("http" ,java-eclipse-jetty-http-9.2)
6118 ("server" ,java-eclipse-jetty-server-9.2)
6119 ,@(package-inputs java-eclipse-jetty-util-9.2)))
6120 (native-inputs
6121 `(("io" ,java-eclipse-jetty-io-9.2)
6122 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
6123
6124 (define-public java-eclipse-jetty-servlet
6125 (package
6126 (inherit java-eclipse-jetty-util)
6127 (name "java-eclipse-jetty-servlet")
6128 (arguments
6129 `(#:jar-name "eclipse-jetty-servlet.jar"
6130 #:source-dir "src/main/java"
6131 #:jdk ,icedtea-8
6132 #:phases
6133 (modify-phases %standard-phases
6134 (add-before 'configure 'chdir
6135 (lambda _
6136 (chdir "jetty-servlet")
6137 #t)))))
6138 (inputs
6139 `(("slf4j" ,java-slf4j-api)
6140 ("servlet" ,java-tomcat)
6141 ("http" ,java-eclipse-jetty-http)
6142 ("http-test" ,java-eclipse-jetty-http-test-classes)
6143 ("io" ,java-eclipse-jetty-io)
6144 ("jmx" ,java-eclipse-jetty-jmx)
6145 ("security" ,java-eclipse-jetty-security)
6146 ("server" ,java-eclipse-jetty-server)
6147 ("util" ,java-eclipse-jetty-util)))
6148 (synopsis "Jetty Servlet Container")
6149 (description "The Jetty Web Server provides an HTTP server and Servlet
6150 container capable of serving static and dynamic content either from a standalone
6151 or embedded instantiation. This package provides the core jetty servlet
6152 container.")))
6153
6154 (define-public java-eclipse-jetty-servlet-9.2
6155 (package
6156 (inherit java-eclipse-jetty-servlet)
6157 (version (package-version java-eclipse-jetty-util-9.2))
6158 (source (package-source java-eclipse-jetty-util-9.2))
6159 (arguments
6160 `(#:jar-name "eclipse-jetty-servlet.jar"
6161 #:source-dir "src/main/java"
6162 #:jdk ,icedtea-8
6163 #:tests? #f; doesn't work
6164 #:phases
6165 (modify-phases %standard-phases
6166 (add-before 'configure 'chdir
6167 (lambda _
6168 (chdir "jetty-servlet")
6169 #t)))))
6170 (inputs
6171 `(("util" ,java-eclipse-jetty-util-9.2)
6172 ("jmx" ,java-eclipse-jetty-jmx-9.2)
6173 ("io" ,java-eclipse-jetty-io-9.2)
6174 ("http" ,java-eclipse-jetty-http-9.2)
6175 ("security" ,java-eclipse-jetty-security-9.2)
6176 ("http-test" ,java-eclipse-jetty-http-test-classes-9.2)
6177 ("server" ,java-eclipse-jetty-server-9.2)
6178 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
6179
6180 (define-public java-jsoup
6181 (package
6182 (name "java-jsoup")
6183 (version "1.10.3")
6184 (source (origin
6185 (method url-fetch)
6186 (uri (string-append "https://github.com/jhy/jsoup/archive/jsoup-"
6187 version ".tar.gz"))
6188 (sha256
6189 (base32
6190 "0xbzw7rjv7s4nz1xk9b2cnin6zkpaldmc3svk71waa7hhjgp0a20"))))
6191 (build-system ant-build-system)
6192 (arguments
6193 `(#:jar-name "jsoup.jar"
6194 #:source-dir "src/main/java"
6195 #:phases
6196 (modify-phases %standard-phases
6197 (add-before 'build 'copy-resources
6198 (lambda _
6199 (let ((classes-dir (string-append (getcwd) "/build/classes")))
6200 (with-directory-excursion "src/main/java"
6201 (for-each (lambda (file)
6202 (let ((dist (string-append classes-dir "/" file)))
6203 (mkdir-p (dirname dist))
6204 (copy-file file dist)))
6205 (find-files "." ".*.properties"))))
6206 #t)))))
6207 (native-inputs
6208 `(("java-junit" ,java-junit)
6209 ("java-hamcrest-core" ,java-hamcrest-core)
6210 ("java-gson" ,java-gson)))
6211 (home-page "https://jsoup.org")
6212 (synopsis "HTML parser")
6213 (description "Jsoup is a Java library for working with real-world HTML. It
6214 provides a very convenient API for extracting and manipulating data, using the
6215 best of DOM, CSS, and jQuery-like methods.")
6216 (license l:expat)))
6217
6218 (define-public tidyp
6219 (package
6220 (name "tidyp")
6221 (version "1.04")
6222 (source
6223 (origin
6224 (method url-fetch)
6225 (uri (string-append "https://github.com/downloads/petdance/tidyp/tidyp-"
6226 version ".tar.gz"))
6227 (sha256
6228 (base32
6229 "0f5ky0ih4vap9c6j312jn73vn8m2bj69pl2yd3a5nmv35k9zmc10"))))
6230 (build-system gnu-build-system)
6231 ;; ./test-thing.sh tries to run ./testall.sh, which is not included.
6232 (arguments `(#:tests? #f))
6233 (home-page "http://www.tidyp.com/")
6234 (synopsis "Validate HTML")
6235 (description "Tidyp is a program that can validate your HTML, as well as
6236 modify it to be more clean and standard. tidyp does not validate HTML 5.
6237
6238 libtidyp is the library on which the program is based. It can be used by any
6239 other program that can interface to it. The Perl module @code{HTML::Tidy} is
6240 based on this library, allowing Perl programmers to easily validate HTML.")
6241 ;; See htmldoc/license.html
6242 (license l:bsd-3)))
6243
6244 (define-public perl-html-tidy
6245 (package
6246 (name "perl-html-tidy")
6247 (version "1.60")
6248 (source
6249 (origin
6250 (method url-fetch)
6251 (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/HTML-Tidy-"
6252 version ".tar.gz"))
6253 (sha256
6254 (base32
6255 "1iyp2fd6j75cn1xvcwl2lxr8qpjxssy2360cyqn6g3kzd1fzdyxw"))))
6256 (build-system perl-build-system)
6257 (arguments
6258 '(#:phases
6259 (modify-phases %standard-phases
6260 (add-after 'unpack 'fix-tidyp-paths
6261 (lambda* (#:key inputs #:allow-other-keys)
6262 (substitute* "Makefile.PL"
6263 (("^my \\$inc = \"" line)
6264 (string-append line
6265 "-I" (assoc-ref inputs "tidyp") "/include/tidyp "))
6266 (("-L/usr/lib")
6267 (string-append
6268 "-L" (assoc-ref inputs "tidyp") "/lib")))
6269 #t)))))
6270 (inputs
6271 `(("perl-libwww" ,perl-libwww)
6272 ("tidyp" ,tidyp)))
6273 (native-inputs
6274 `(("perl-test-exception" ,perl-test-exception)))
6275 (home-page "http://search.cpan.org/dist/HTML-Tidy/")
6276 (synopsis "(X)HTML validation in a Perl object")
6277 (description "@code{HTML::Tidy} is an HTML checker in a handy dandy
6278 object. It's meant as a replacement for @code{HTML::Lint}, which is written
6279 in Perl but is not nearly as capable as @code{HTML::Tidy}.")
6280 (license l:artistic2.0)))
6281
6282 (define-public geomyidae
6283 (package
6284 (name "geomyidae")
6285 (version "0.31")
6286 (source
6287 (origin
6288 (method url-fetch)
6289 (uri (string-append "http://git.r-36.net/geomyidae/snapshot/"
6290 "geomyidae-" version ".tar.bz2"))
6291 (sha256
6292 (base32
6293 "1ih7220c6mgq4r7blm4kx3pxbl53sph58lqgwci6cmi3c0sq5c3x"))))
6294 (build-system gnu-build-system)
6295 (arguments
6296 `(#:make-flags (list "CC=gcc"
6297 (string-append "PREFIX="
6298 (assoc-ref %outputs "out")))
6299 #:tests? #f ;no tests
6300 #:phases (modify-phases %standard-phases
6301 (delete 'configure))))
6302 (home-page "http://git.r-36.net/geomyidae")
6303 (synopsis "Small Gopher server")
6304 (description
6305 "Geomyidae is a server for distributed hypertext protocol Gopher. Its
6306 features include:
6307
6308 @enumerate
6309 @item Gopher menus (see @file{index.gph} for an example);
6310 @item directory listings (if no @file{index.gph} was found);
6311 @item CGI support (@file{.cgi} files are executed);
6312 @item search support in CGI files;
6313 @item logging with multiple log levels.
6314 @end enumerate\n")
6315 (license l:expat)))
6316
6317 (define-public cat-avatar-generator
6318 (package
6319 (name "cat-avatar-generator")
6320 (version "1")
6321 (source (origin
6322 (method git-fetch)
6323 (uri (git-reference
6324 (url "https://framagit.org/Deevad/cat-avatar-generator.git")
6325 (commit "71c0c662742cafe8afd2d2d50ec84243113e35ad")))
6326 (file-name (string-append name "-" version))
6327 (sha256
6328 (base32
6329 "0s7b5whqsmfa57prbgl66ym551kg6ly0z14h5dgrlx4lqm70y2yw"))))
6330 (build-system trivial-build-system)
6331 (arguments
6332 `(#:modules ((guix build utils)
6333 (srfi srfi-1)
6334 (srfi srfi-26))
6335 #:builder
6336 (begin
6337 (use-modules (guix build utils)
6338 (srfi srfi-1)
6339 (srfi srfi-26))
6340 (let ((source (assoc-ref %build-inputs "source"))
6341 (php-dir (string-append %output "/share/web/" ,name "/")))
6342 ;; The cache directory must not be in the store, but in a writable
6343 ;; location. The webserver will give us this location.
6344 (copy-recursively source php-dir)
6345 (substitute* (string-append php-dir "/cat-avatar-generator.php")
6346 (("\\$cachepath = .*")
6347 "if(isset($_SERVER['CACHE_DIR']))
6348 $cachepath = $_SERVER['CACHE_DIR'];
6349 else
6350 die('You need to set the CACHE_DIR variable first.');"))))))
6351 (home-page "https://framagit.org/Deevad/cat-avatar-generator")
6352 (synopsis "Random avatar generator")
6353 (description "Cat avatar generator is a generator of cat pictures optimised
6354 to generate random avatars, or defined avatar from a \"seed\". This is a
6355 derivation by David Revoy from the original MonsterID by Andreas Gohr.")
6356 ;; expat for the code, CC-BY 4.0 for the artwork
6357 (license (list l:expat
6358 l:cc-by4.0))))
6359
6360 (define-public nghttp2
6361 (package
6362 (name "nghttp2")
6363 (version "1.31.1")
6364 (source
6365 (origin
6366 (method url-fetch)
6367 (uri (string-append "https://github.com/nghttp2/nghttp2/"
6368 "releases/download/v" version "/"
6369 name "-" version ".tar.xz"))
6370 (sha256
6371 (base32
6372 "00z1687m4wi2gbgkijbv099l9hs1sjlyzbhh8jhn0xssx4xcifb5"))))
6373 (build-system gnu-build-system)
6374 (outputs (list "out"
6375 "lib")) ; only libnghttp2
6376 (native-inputs
6377 `(("pkg-config" ,pkg-config)
6378
6379 ;; Required by tests.
6380 ("cunit" ,cunit)
6381 ("tzdata" ,tzdata-for-tests)))
6382 (inputs
6383 ;; Required to build the tools (i.e. without ‘--enable-lib-only’).
6384 `(("c-ares" ,c-ares)
6385 ("jansson" ,jansson) ; for HPACK tools
6386 ("jemalloc" ,jemalloc) ; fight nghttpd{,x} heap fragmentation
6387 ("libev" ,libev)
6388 ("libxml2" ,libxml2) ; for ‘nghttp -a’
6389 ("openssl" ,openssl)))
6390 (arguments
6391 `(#:configure-flags
6392 (list (string-append "--libdir=" (assoc-ref %outputs "lib") "/lib")
6393 "--enable-app" ; build all the tools
6394 "--enable-hpack-tools" ; ...all the tools
6395 "--disable-examples"
6396 "--disable-static") ; don't bother building .a files
6397 #:phases
6398 (modify-phases %standard-phases
6399 (add-after 'unpack 'break-circular-reference
6400 ;; libnghttp2.pc by default retains a reference to the ‘out’ output,
6401 ;; which is not allowed. Break this cycle. While we could install
6402 ;; only the library to ‘out’ and move everything else to a separate
6403 ;; output, this would inconvenience the majority of (human) users.
6404 (lambda* (#:key outputs #:allow-other-keys)
6405 (substitute* "lib/libnghttp2.pc.in"
6406 (("@prefix@")
6407 (assoc-ref outputs "lib")))
6408 #t))
6409 (add-before 'check 'set-timezone-directory
6410 (lambda* (#:key inputs #:allow-other-keys)
6411 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
6412 "/share/zoneinfo"))
6413 #t)))))
6414 (home-page "https://nghttp2.org/")
6415 (synopsis "HTTP/2 protocol client, proxy, server, and library")
6416 (description
6417 "nghttp2 implements the Hypertext Transfer Protocol, version
6418 2 (@dfn{HTTP/2}).
6419
6420 A reusable C library provides the HTTP/2 framing layer, with several tools built
6421 on top of it:
6422
6423 @itemize
6424 @item @command{nghttp}, a command-line HTTP/2 client. It exposes many advanced
6425 and low-level aspects of the protocol and is useful for debugging.
6426 @item @command{nghttpd}, a fast, multi-threaded HTTP/2 static web server that
6427 serves files from a local directory.
6428 @item @command{nghttpx}, a fast, multi-threaded HTTP/2 reverse proxy that can be
6429 deployed in front of existing web servers that don't support HTTP/2.
6430 Both @command{nghttpd} and @command{nghttpx} can fall back to HTTP/1.1 for
6431 backwards compatibilty with clients that don't speak HTTP/2.
6432 @item @command{h2load} for benchmarking (only!) your own HTTP/2 servers.
6433 @item HTTP/2 uses a header compression method called @dfn{HPACK}.
6434 nghttp2 provides a HPACK encoder and decoder as part of its public API.
6435 @item @command{deflatehd} converts JSON data or HTTP/1-style header fields to
6436 compressed JSON header blocks.
6437 @item @command{inflatehd} converts such compressed headers back to JSON pairs.
6438 @end itemize\n")
6439 (license l:expat)))