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