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