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