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