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