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