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