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