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