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