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