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