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