gnu: protobuf: Update to 3.11.3.
[jackhill/guix/guix.git] / gnu / packages / web.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2013 Aljosha Papsch <misc@rpapsch.de>
4 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
5 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2018 Raoul Jean Pierre Bonnal <ilpuccio.febo@gmail.com>
8 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
9 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Eric Bavier <bavier@posteo.net>
10 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
11 ;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
12 ;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org>
13 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
14 ;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
15 ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
16 ;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
17 ;;; Copyright © 2016, 2017 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.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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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 "https://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+)
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 "TARGET=gtk3"
5092 ,(string-append "PREFIX=" %output)
5093 ,(string-append "NSSHARED="
5094 (assoc-ref %build-inputs
5095 "netsurf-buildsystem")
5096 "/share/netsurf-buildsystem"))
5097 #:test-target "test"
5098 #:modules ((ice-9 rdelim)
5099 (ice-9 match)
5100 (srfi srfi-1)
5101 (sxml simple)
5102 ,@%glib-or-gtk-build-system-modules)
5103 #:phases
5104 (modify-phases %standard-phases
5105 (delete 'configure)
5106 (add-after 'build 'adjust-welcome
5107 (lambda _
5108 (substitute* "frontends/gtk/res/welcome.html"
5109 ;; Close some XHTML tags.
5110 (("<(img|input)([^>]*)>" _ tag contents)
5111 (string-append "<" tag contents " />"))
5112 ;; Increase freedom.
5113 ((" open source") ", free software")
5114 ;; Prefer a more privacy-respecting default search engine.
5115 (("www.google.co.uk") "www.duckduckgo.com/html")
5116 (("Google Search") "DuckDuckGo Search")
5117 (("name=\"btnG\"") ""))
5118 ;; Remove default links so it doesn't seem we're endorsing them.
5119 (with-atomic-file-replacement "frontends/gtk/res/welcome.html"
5120 (lambda (in out)
5121 ;; Leave the DOCTYPE header as is.
5122 (display (read-line in 'concat) out)
5123 (sxml->xml
5124 (let rec ((sxml (xml->sxml in
5125 #:default-entity-handler
5126 (lambda (port name)
5127 (string-append "<ENTITY>"
5128 (symbol->string name)
5129 "</ENTITY>")))))
5130 ;; We'd like to use sxml-match here, but it can't
5131 ;; match against generic tag symbols...
5132 (match sxml
5133 (`(div (@ (class "links")) . ,rest)
5134 '())
5135 (`(ENTITY ,ent)
5136 `(*ENTITY* ,ent))
5137 ((x ...)
5138 (map rec x))
5139 (x x)))
5140 out)))
5141 #t))
5142 (add-before 'check 'patch-check
5143 (lambda* (#:key inputs #:allow-other-keys)
5144 (substitute* '("test/bloom.c" "test/hashtable.c")
5145 (("/usr/share/dict/words")
5146 (string-append (assoc-ref inputs "miscfiles") "/share/web2")))
5147 #t))
5148 (add-after 'install 'install-more
5149 (lambda* (#:key outputs #:allow-other-keys)
5150 (let* ((out (assoc-ref outputs "out"))
5151 (desktop (string-append out "/share/applications/"
5152 "netsurf.desktop")))
5153 (mkdir-p (dirname desktop))
5154 (copy-file "frontends/gtk/res/netsurf-gtk.desktop"
5155 desktop)
5156 (substitute* desktop
5157 (("netsurf-gtk") (string-append out "/bin/netsurf-gtk"))
5158 (("netsurf.png") (string-append out "/share/netsurf/"
5159 "netsurf.xpm")))
5160 (install-file "docs/netsurf-gtk.1"
5161 (string-append out "/share/man/man1/"))
5162 #t))))))
5163 (home-page "https://www.netsurf-browser.org")
5164 (synopsis "Web browser")
5165 (description
5166 "NetSurf is a lightweight web browser that has its own layout and
5167 rendering engine entirely written from scratch. It is small and capable of
5168 handling many of the web standards in use today.")
5169 (license license:gpl2+)))
5170
5171 (define-public surfraw
5172 (package
5173 (name "surfraw")
5174 (version "2.3.0")
5175 (source
5176 (origin
5177 (method url-fetch)
5178 (uri (string-append "https://gitlab.com/surfraw/Surfraw/uploads/"
5179 "2de827b2786ef2fe43b6f07913ca7b7f/"
5180 "surfraw-" version ".tar.gz"))
5181 (sha256
5182 (base32 "099nbif0x5cbcf18snc58nx1a3q7z0v9br9p2jiq9pcc7ic2015d"))))
5183 (build-system gnu-build-system)
5184 (arguments
5185 `(#:phases
5186 (modify-phases %standard-phases
5187 (add-before 'configure 'patch-perl
5188 (lambda* (#:key inputs #:allow-other-keys)
5189 (let ((perl (assoc-ref inputs "perl")))
5190 (substitute* "surfraw.IN"
5191 (("perl -e")
5192 (string-append perl "/bin/perl -e")))
5193 #t)))
5194 (add-after 'install 'compress-elvi.1sr
5195 (lambda* (#:key outputs #:allow-other-keys)
5196 ;; The manpages of the elvis are symlinks to elvi.1sr.gz
5197 ;; but elvi.1sr does not get compressed by our manpage phase.
5198 (let* ((out (assoc-ref %outputs "out"))
5199 (man (string-append out "/share/man/man1")))
5200 (with-directory-excursion man
5201 (invoke "gzip" "elvi.1sr"))))))))
5202 (inputs
5203 `(("perl" ,perl)
5204 ("perl-www-opensearch" ,perl-www-opensearch)
5205 ("perl-html-parser" ,perl-html-parser)
5206 ("perl-libwww" ,perl-libwww)))
5207 (synopsis "Unix command line interface to the www")
5208 (description "Surfraw (Shell Users' Revolutionary Front Rage Against the Web)
5209 provides a unix command line interface to a variety of popular www search engines
5210 and similar services.")
5211 (home-page "https://surfraw.alioth.debian.org/")
5212 (license license:public-domain)))
5213
5214 (define-public darkhttpd
5215 (package
5216 (name "darkhttpd")
5217 (version "1.12")
5218 (source
5219 (origin
5220 (method url-fetch)
5221 (uri (string-append "https://unix4lyfe.org/darkhttpd/darkhttpd-"
5222 version ".tar.bz2"))
5223 (sha256
5224 (base32
5225 "0185wlyx4iqiwfigp1zvql14zw7gxfacncii3d15yaxk4av1f155"))))
5226 (build-system gnu-build-system)
5227 (arguments
5228 `(#:make-flags '("CC=gcc")
5229 #:tests? #f ; No test suite
5230 #:phases
5231 (modify-phases %standard-phases
5232 (delete 'configure)
5233 (replace 'install
5234 (lambda* (#:key outputs #:allow-other-keys)
5235 (install-file "darkhttpd"
5236 (string-append (assoc-ref outputs "out")
5237 "/bin"))
5238 #t)))))
5239 (synopsis "Simple static web server")
5240 (description "darkhttpd is a simple static web server. It is
5241 standalone and does not need inetd or ucspi-tcp. It does not need any
5242 config files---you only have to specify the www root.")
5243 (home-page "https://unix4lyfe.org/darkhttpd/")
5244 (license license:isc)))
5245
5246 (define-public goaccess
5247 (package
5248 (name "goaccess")
5249 (version "1.0.2")
5250 (source (origin
5251 (method url-fetch)
5252 (uri (string-append "http://tar.goaccess.io/goaccess-"
5253 version ".tar.gz"))
5254 (sha256
5255 (base32
5256 "1w84y61f3ldg2f28q6qlyr1scn3mcx0bsbq3i5xi5w193wh3xa2q"))
5257 (modules '((guix build utils)))
5258 (snippet '(begin
5259 (substitute* "src/error.h"
5260 (("__DATE__") "\"1970-01-01\"")
5261 (("__TIME__") "\"00:00:00\""))
5262 #t))))
5263 (build-system gnu-build-system)
5264 (inputs
5265 ;; TODO: Add dependency on geoip-tools.
5266 `(("glib" ,glib)
5267 ("ncurses" ,ncurses)))
5268 (native-inputs
5269 `(("pkg-config" ,pkg-config)))
5270 (home-page "https://goaccess.io")
5271 (synopsis "Analyze Web server logs in real time")
5272 (description
5273 "GoAccess is a real-time web log analyzer and interactive viewer that
5274 runs in a terminal or through your browser. It provides fast and valuable
5275 HTTP statistics for system administrators that require a visual server report
5276 on the fly.")
5277 (license license:x11)))
5278
5279 (define-public httptunnel
5280 (package
5281 (name "httptunnel")
5282 (version "3.3")
5283 (source
5284 (origin
5285 (method url-fetch)
5286 (uri (string-append "http://www.nocrew.org/software/httptunnel/"
5287 name "-" version ".tar.gz"))
5288 (sha256
5289 (base32
5290 "0mn5s6p68n32xzadz6ds5i6bp44dyxzkq68r1yljlv470jr84bql"))
5291 (modules '((guix build utils)))
5292 (snippet '(begin
5293 ;; Remove non-free IETF RFC documentation.
5294 (delete-file-recursively "doc")
5295 #t))))
5296 (build-system gnu-build-system)
5297 (arguments
5298 `(#:phases
5299 (modify-phases %standard-phases
5300 ;; The default configure phase tries to pass environment variables as
5301 ;; command-line arguments, which confuses the ./configure script.
5302 (replace 'configure
5303 (lambda* (#:key outputs #:allow-other-keys)
5304 (let* ((out (assoc-ref outputs "out")))
5305 (setenv "CONFIG_SHELL" (which "bash"))
5306 (invoke "./configure"
5307 (string-append "--prefix=" out))))))))
5308 (home-page "http://www.nocrew.org/software/httptunnel.html")
5309 (synopsis "Tunnel data connections through HTTP requests")
5310 (description "httptunnel creates a bidirectional virtual data connection
5311 tunnelled through HTTP (HyperText Transfer Protocol) requests. This can be
5312 useful for users behind restrictive firewalls. As long as Web traffic is
5313 allowed, even through a HTTP-only proxy, httptunnel can be combined with other
5314 tools like SSH (Secure Shell) to reach the outside world.")
5315 (license license:gpl2+)))
5316
5317 (define-public stunnel
5318 (package
5319 (name "stunnel")
5320 (version "5.56")
5321 (source
5322 (origin
5323 (method url-fetch)
5324 (uri (string-append "https://www.stunnel.org/downloads/stunnel-"
5325 version ".tar.gz"))
5326 (sha256
5327 (base32 "08kb4gi9fzqngrczykvba6xhaxhq9m4wmdbhxvgrva5rasrvz13k"))))
5328 (build-system gnu-build-system)
5329 (native-inputs
5330 ;; For tests.
5331 `(("iproute" ,iproute)
5332 ("netcat" ,netcat)
5333 ("procps" ,procps)))
5334 (inputs `(("openssl" ,openssl)))
5335 (arguments
5336 `(#:configure-flags
5337 (list (string-append "--with-ssl=" (assoc-ref %build-inputs "openssl")))
5338 #:phases
5339 (modify-phases %standard-phases
5340 (add-after 'unpack 'patch-output-directories
5341 (lambda _
5342 ;; Some (not all) Makefiles have a hard-coded incorrect docdir.
5343 (substitute* (list "Makefile.in"
5344 "doc/Makefile.in"
5345 "tools/Makefile.in")
5346 (("/doc/stunnel")
5347 (string-append "/doc/" ,name "-" ,version)))
5348 #t))
5349 (add-before 'check 'patch-tests
5350 (lambda _
5351 (substitute* "tests/make_test"
5352 (("/bin/sh ")
5353 (string-append (which "sh") " ")))
5354 #t)))))
5355 (home-page "https://www.stunnel.org")
5356 (synopsis "TLS proxy for clients or servers")
5357 (description "Stunnel is a proxy designed to add TLS encryption
5358 functionality to existing clients and servers without any changes in the
5359 programs' code. Its architecture is optimized for security, portability, and
5360 scalability (including load-balancing), making it suitable for large
5361 deployments.")
5362 (license license:gpl2+)))
5363
5364 (define-public varnish
5365 (package
5366 (name "varnish")
5367 (home-page "https://varnish-cache.org/")
5368 (version "6.3.2")
5369 (source (origin
5370 (method url-fetch)
5371 (uri (string-append home-page "_downloads/varnish-" version ".tgz"))
5372 (sha256
5373 (base32
5374 "1f5ahzdh3am6fij5jhiybv3knwl11rhc5r3ig1ybzw55ai7788q8"))))
5375 (build-system gnu-build-system)
5376 (arguments
5377 `(#:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")
5378 ;; Use absolute path of GCC so it's found at runtime.
5379 (string-append "PTHREAD_CC="
5380 (assoc-ref %build-inputs "gcc")
5381 "/bin/gcc")
5382 "--localstatedir=/var")
5383 #:phases
5384 (modify-phases %standard-phases
5385 (add-after 'unpack 'use-absolute-file-names
5386 (lambda _
5387 (substitute* '("bin/varnishtest/vtc_varnish.c"
5388 "bin/varnishtest/vtc_process.c"
5389 "bin/varnishd/mgt/mgt_vcc.c"
5390 "bin/varnishtest/tests/u00014.vtc")
5391 (("/bin/sh") (which "sh")))
5392 (substitute* "bin/varnishd/mgt/mgt_shmem.c"
5393 (("rm -rf") (string-append (which "rm") " -rf")))
5394 (substitute* "bin/varnishtest/vtc_main.c"
5395 (("/bin/rm") (which "rm")))
5396 #t))
5397 (add-before 'install 'patch-Makefile
5398 (lambda _
5399 (substitute* "Makefile"
5400 ;; Do not create /var/varnish during install.
5401 (("^install-data-am: install-data-local") "install-data-am: "))
5402 #t))
5403 (add-after 'install 'wrap-varnishd
5404 ;; Varnish uses GCC to compile VCL, so wrap it with required GCC
5405 ;; environment variables to avoid propagating them to profiles.
5406 (lambda* (#:key inputs outputs #:allow-other-keys)
5407 (let* ((out (assoc-ref outputs "out"))
5408 (varnishd (string-append out "/sbin/varnishd"))
5409 (PATH (string-append (assoc-ref inputs "binutils") "/bin"))
5410 (LIBRARY_PATH (string-append (assoc-ref inputs "libc") "/lib")))
5411 (wrap-program varnishd
5412 ;; Add binutils to PATH so gcc finds the 'as' executable.
5413 `("PATH" ":" prefix (,PATH))
5414 ;; Make sure 'crti.o' et.al is found.
5415 `("LIBRARY_PATH" ":" prefix (,LIBRARY_PATH)))
5416 #t))))))
5417 (native-inputs
5418 `(("pkg-config" ,pkg-config)
5419 ("python-sphinx" ,python-sphinx)
5420 ("rst2man" ,python-docutils)))
5421 (inputs
5422 `(("jemalloc" ,jemalloc)
5423 ("ncurses" ,ncurses)
5424 ("pcre" ,pcre)
5425 ("python" ,python-wrapper)
5426 ("readline" ,readline)))
5427 (synopsis "Web application accelerator")
5428 (description
5429 "Varnish is a high-performance HTTP accelerator. It acts as a caching
5430 reverse proxy and load balancer. You install it in front of any server that
5431 speaks HTTP and configure it to cache the contents through an extensive
5432 configuration language.")
5433 (license (list license:bsd-2 ;main distribution
5434 license:zlib ;lib/libvgz/*
5435 license:public-domain ;bin/varnishncsa/as64.c, include/miniobj.h
5436 license:bsd-3)))) ;include/vqueue.h, lib/libvarnishcompat/daemon.c
5437
5438 (define-public varnish-modules
5439 (package
5440 (name "varnish-modules")
5441 (home-page "https://github.com/varnish/varnish-modules")
5442 (version "0.15.0")
5443 (source (origin
5444 (method url-fetch)
5445 (uri (string-append "https://download.varnish-software.com"
5446 "/varnish-modules/varnish-modules-"
5447 version ".tar.gz"))
5448 (sha256
5449 (base32
5450 "09li9lqa1kb275w1rby2zldyg8r9cfcl4qyv53qyd9xbzilrz751"))))
5451 (build-system gnu-build-system)
5452 (native-inputs
5453 `(("pkg-config" ,pkg-config)))
5454 (inputs
5455 `(("python" ,python)
5456 ("varnish" ,varnish)))
5457 (synopsis "Collection of Varnish modules")
5458 (description
5459 "This package provides a collection of modules (@dfn{vmods}) for the Varnish
5460 cache server, extending the @dfn{Varnish Configuration Language} (VCL) with
5461 additional capabilities.")
5462 (license license:bsd-2)))
5463
5464 (define-public xinetd
5465 (package
5466 (name "xinetd")
5467 ;; This is the maintenance fork currently used by openSUSE and Debian.
5468 (version "2.3.15.4")
5469 (source
5470 (origin
5471 (method git-fetch)
5472 (uri (git-reference
5473 (url "https://github.com/openSUSE/xinetd.git")
5474 (commit version)))
5475 (file-name (git-file-name name version))
5476 (sha256
5477 (base32 "0lrp3lcj6azhjplwxws2rx40bkyp6i6bp7n77ndcisb7ninad30q"))))
5478 (build-system gnu-build-system)
5479 (arguments
5480 `(#:configure-flags '("--with-loadavg")
5481 #:tests? #f)) ; no tests
5482 (native-inputs
5483 `(("autoconf" ,autoconf)
5484 ("automake" ,automake)
5485 ("libtool" ,libtool)
5486 ("pkg-config" ,pkg-config)))
5487 (home-page "https://github.com/openSUSE/xinetd")
5488 (synopsis "Internet services daemon")
5489 (description "@code{xinetd}, a more secure replacement for @code{inetd},
5490 listens for incoming requests over a network and launches the appropriate
5491 service for that request. Requests are made using port numbers as identifiers
5492 and xinetd usually launches another daemon to handle the request. It can be
5493 used to start services with both privileged and non-privileged port numbers.")
5494 (license (license:fsf-free "file://COPYRIGHT"))))
5495
5496 (define-public tidy-html
5497 (package
5498 (name "tidy-html")
5499 (version "5.6.0")
5500 (source
5501 (origin
5502 (method git-fetch)
5503 (uri (git-reference
5504 (url "https://github.com/htacg/tidy-html5")
5505 (commit version)))
5506 (file-name (git-file-name name version))
5507 (sha256
5508 (base32
5509 "0w175c5d1babq0w1zzdzw9gl6iqbgyq58v8587s7srp05y3hwy9k"))))
5510 (build-system cmake-build-system)
5511 (outputs '("out"
5512 "static")) ; 1.3MiB of .a files
5513 (arguments
5514 `(#:tests? #f ; no tests available
5515 #:build-type "Release"
5516 #:phases
5517 (modify-phases %standard-phases
5518 (add-after 'install 'move-static-libraries
5519 (lambda* (#:key outputs #:allow-other-keys)
5520 ;; Move static libraries to the "static" output.
5521 (let* ((out (assoc-ref outputs "out"))
5522 (lib (string-append out "/lib"))
5523 (static (assoc-ref outputs "static"))
5524 (slib (string-append static "/lib")))
5525 (mkdir-p slib)
5526 (for-each (lambda (file)
5527 (install-file file slib)
5528 (delete-file file))
5529 (find-files lib "\\.a$"))
5530 #t))))))
5531 (native-inputs
5532 `(("libxslt" ,libxslt)))
5533 (home-page "http://www.html-tidy.org/")
5534 (synopsis "HTML Tidy with HTML5 support")
5535 (description
5536 "Tidy is a console application which corrects and cleans up
5537 HTML and XML documents by fixing markup errors and upgrading
5538 legacy code to modern standards.
5539
5540 Tidy also provides @code{libtidy}, a C static and dynamic library that
5541 developers can integrate into their applications to make use of the
5542 functions of Tidy.")
5543 (license license:bsd-3)))
5544
5545 (define-public hiawatha
5546 (package
5547 (name "hiawatha")
5548 (version "10.10")
5549 (source
5550 (origin
5551 (method url-fetch)
5552 (uri (string-append "https://www.hiawatha-webserver.org/files/"
5553 "hiawatha-" version ".tar.gz"))
5554 (modules '((guix build utils)))
5555 (snippet '(begin
5556 ;; We use packaged libraries, so delete the bundled copies.
5557 (for-each delete-file-recursively
5558 (list "extra/nghttp2.tgz" "mbedtls"))
5559 #t))
5560 (sha256
5561 (base32 "1nd46cx1qp5lh2kwnn2mlwk9zm8jm7pgf90xs9vpwr7saxbnzr5m"))))
5562 (build-system cmake-build-system)
5563 (arguments
5564 `(#:tests? #f ; no tests included
5565 #:configure-flags (list (string-append "-DUSE_SYSTEM_MBEDTLS=on")
5566 (string-append "-DENABLE_HTTP2=on")
5567 (string-append "-DUSE_SYSTEM_NGHTTP2=on")
5568 (string-append "-DENABLE_TOMAHAWK=on")
5569 (string-append "-DLOG_DIR=/var/log/hiawatha")
5570 (string-append "-DPID_DIR=/run")
5571 (string-append "-DWEBROOT_DIR="
5572 (assoc-ref %outputs "out")
5573 "/share/hiawatha/html")
5574 (string-append "-DWORK_DIR=/var/lib/hiawatha"))
5575 #:phases
5576 (modify-phases %standard-phases
5577 (add-after 'unpack 'install-no-empty-directories
5578 (lambda _
5579 (substitute* "CMakeLists.txt"
5580 (("install\\(DIRECTORY DESTINATION" match)
5581 (string-append "#" match)))
5582 #t))
5583 (add-after 'install 'wrap
5584 (lambda* (#:key inputs outputs #:allow-other-keys)
5585 ;; Make sure 'hiawatha' finds 'mbedtls'.
5586 (let* ((out (assoc-ref outputs "out"))
5587 (sbin (string-append out "/sbin"))
5588 (mbed (assoc-ref inputs "mbedtls-apache")))
5589 (wrap-program (string-append sbin "/hiawatha")
5590 `("PATH" ":" prefix (,mbed)))))))))
5591 (inputs
5592 ;; TODO: package "hiawatha-monitor", an optional dependency of "hiawatha".
5593 `(("libxslt" ,libxslt)
5594 ("libxml2" ,libxml2)
5595 ("mbedtls-apache" ,mbedtls-for-hiawatha)
5596 ("nghttp2" ,nghttp2 "lib")
5597 ("zlib" ,zlib)))
5598 (home-page "https://www.hiawatha-webserver.org")
5599 (synopsis "Webserver with focus on security")
5600 (description
5601 "Hiawatha has been written with security in mind.
5602 Features include the ability to stop SQL injections, XSS and CSRF attacks and
5603 exploit attempts.")
5604 (license license:gpl2)))
5605
5606 (define-public python-httpbin
5607 (package
5608 (name "python-httpbin")
5609 (version "0.5.0")
5610 (source
5611 (origin
5612 (method url-fetch)
5613 (uri (pypi-uri "httpbin" version))
5614 (sha256
5615 (base32
5616 "1dc92lnk846hpilslrqnr63x55cxll4qx88gif8fm521gv9cbyvr"))))
5617 (build-system python-build-system)
5618 (propagated-inputs
5619 `(("python-decorator" ,python-decorator)
5620 ("python-flask" ,python-flask)
5621 ("python-itsdangerous" ,python-itsdangerous)
5622 ("python-markupsafe" ,python-markupsafe)
5623 ("python-six" ,python-six)))
5624 (home-page "https://github.com/Runscope/httpbin")
5625 (synopsis "HTTP request and response service")
5626 (description "Testing an HTTP Library can become difficult sometimes.
5627 @code{RequestBin} is fantastic for testing POST requests, but doesn't let you control the
5628 response. This exists to cover all kinds of HTTP scenarios. All endpoint responses are
5629 JSON-encoded.")
5630 (license license:isc)))
5631
5632 (define-public python2-httpbin
5633 (package-with-python2 python-httpbin))
5634
5635 (define-public python-pytest-httpbin
5636 (package
5637 (name "python-pytest-httpbin")
5638 (version "0.2.3")
5639 (source
5640 (origin
5641 (method url-fetch)
5642 (uri (pypi-uri "pytest-httpbin" version))
5643 (sha256
5644 (base32
5645 "1y0v2v7xpzpyd4djwp7ad8ifnlxp8r1y6dfbxg5ckzvllkgridn5"))))
5646 (build-system python-build-system)
5647 (propagated-inputs
5648 `(("python-six" ,python-six)
5649 ("python-httpbin" ,python-httpbin)
5650 ("python-pytest" ,python-pytest)))
5651 (home-page
5652 "https://github.com/kevin1024/pytest-httpbin")
5653 (synopsis
5654 "Test your HTTP library against a local copy of httpbin")
5655 (description
5656 "@code{Pytest-httpbin} creates a @code{pytest} fixture that is dependency-injected
5657 into your tests. It automatically starts up a HTTP server in a separate thread running
5658 @code{httpbin} and provides your test with the URL in the fixture.")
5659 (license license:expat)))
5660
5661 (define-public python2-pytest-httpbin
5662 (package-with-python2 python-pytest-httpbin))
5663
5664 (define-public http-parser
5665 (package
5666 (name "http-parser")
5667 (version "2.9.3")
5668 (home-page "https://github.com/nodejs/http-parser")
5669 (source (origin
5670 (method git-fetch)
5671 (uri (git-reference (url home-page)
5672 (commit (string-append "v" version))))
5673 (file-name (git-file-name name version))
5674 (sha256
5675 (base32
5676 "189zi61vczqgmqjd2myjcjbbi5icrk7ccs0kn6nj8hxqiv5j3811"))))
5677 (build-system gnu-build-system)
5678 (arguments
5679 `(#:test-target "test"
5680 #:make-flags
5681 (list (string-append "PREFIX="
5682 (assoc-ref %outputs "out"))
5683 "CC=gcc" "library")
5684 #:phases
5685 (modify-phases %standard-phases
5686 (delete 'configure))))
5687 (synopsis "HTTP request/response parser for C")
5688 (description "This is a parser for HTTP messages written in C. It parses
5689 both requests and responses. The parser is designed to be used in
5690 high-performance HTTP applications. It does not make any syscalls nor
5691 allocations, it does not buffer data, it can be interrupted at anytime.
5692 Depending on your architecture, it only requires about 40 bytes of data per
5693 message stream (in a web server that is per connection).")
5694 (license license:expat)))
5695
5696 (define-public python-httpretty
5697 (package
5698 (name "python-httpretty")
5699 (version "0.9.6")
5700 (source
5701 (origin
5702 (method url-fetch)
5703 (uri (pypi-uri "httpretty" version))
5704 (sha256
5705 (base32 "1p1rb4mpngh0632xrmdfhvc8yink519yfkqz97d2ww3y0x2jvd81"))))
5706 (build-system python-build-system)
5707 (propagated-inputs
5708 `(("python-six" ,python-six)))
5709 (native-inputs
5710 `(("python-coverage" ,python-coverage)
5711 ("python-httplib2" ,python-httplib2)
5712 ("python-mock" ,python-mock)
5713 ("python-nose" ,python-nose)
5714 ("python-nose-randomly" ,python-nose-randomly)
5715 ("python-rednose" ,python-rednose)
5716 ("python-requests" ,python-requests)
5717 ("python-sure" ,python-sure)
5718 ("python-tornado" ,python-tornado)
5719 ("python-urllib3" ,python-urllib3)))
5720 (home-page "https://httpretty.readthedocs.io")
5721 (synopsis "HTTP client mock for Python")
5722 (description "@code{httpretty} is a helper for faking web requests,
5723 inspired by Ruby's @code{fakeweb}.")
5724 (license license:expat)))
5725
5726 (define-public jo
5727 (package
5728 (name "jo")
5729 (version "1.3")
5730 (source
5731 (origin
5732 (method url-fetch)
5733 (uri (string-append "https://github.com/jpmens/jo/releases/download/"
5734 version "/jo-" version ".tar.gz"))
5735 (sha256
5736 (base32
5737 "0r6yb8pjsbcqfyac4240a0sj93pb91fv385bpk395cx3f5bcj9fy"))))
5738 (build-system gnu-build-system)
5739 (home-page "https://github.com/jpmens/jo")
5740 (synopsis "Output JSON from a shell")
5741 (description "jo is a command-line utility to create JSON objects or
5742 arrays. It creates a JSON string on stdout from words provided as
5743 command-line arguments or read from stdin.")
5744 (license (list license:gpl2+
5745 license:expat)))) ; json.c, json.h
5746
5747 (define-public python-internetarchive
5748 (package
5749 (name "python-internetarchive")
5750 (version "1.8.5")
5751 (source
5752 (origin
5753 (method git-fetch)
5754 (uri (git-reference
5755 (url "https://github.com/jjjake/internetarchive")
5756 (commit (string-append "v" version))))
5757 (file-name (git-file-name name version))
5758 (sha256
5759 (base32
5760 "0ih7hplv92wbv6cmgc1gs0v35qkajwicalwcq8vcljw30plr24fp"))
5761 (modules '((guix build utils)))
5762 (snippet
5763 '(begin
5764 ;; Python 3.7 removed `_pattern_type'.
5765 (for-each (lambda (file)
5766 (chmod file #o644)
5767 (substitute* file
5768 (("^import re\n" line)
5769 (string-append line "re._pattern_type = re.Pattern\n"))))
5770 (find-files "." "\\.py$"))
5771 #t))))
5772 (build-system python-build-system)
5773 (arguments
5774 `(#:phases
5775 (modify-phases %standard-phases
5776 (delete 'check)
5777 (add-after 'install 'check
5778 (lambda* (#:key inputs outputs #:allow-other-keys)
5779 (add-installed-pythonpath inputs outputs)
5780 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
5781 ":" (getenv "PATH")))
5782 (invoke "py.test" "-v" "-k"
5783 (string-append
5784 ;; These tests attempt to make a connection to
5785 ;; an external web service.
5786 "not test_get_item_with_kwargs"
5787 " and not test_ia")))))))
5788 (propagated-inputs
5789 `(("python-requests" ,python-requests)
5790 ("python-jsonpatch" ,python-jsonpatch-0.4)
5791 ("python-docopt" ,python-docopt)
5792 ("python-clint" ,python-clint)
5793 ("python-six" ,python-six)
5794 ("python-schema" ,python-schema-0.5)
5795 ("python-backports-csv" ,python-backports-csv)))
5796 (native-inputs
5797 `(("python-pytest" ,python-pytest)
5798 ("python-pytest-capturelog" ,python-pytest-capturelog)
5799 ("python-responses" ,python-responses)))
5800 (home-page "https://github.com/jjjake/internetarchive")
5801 (synopsis "Command-line interface to archive.org")
5802 (description "@code{ia} is a command-line tool for using
5803 @url{archive.org} from the command-line. It also emplements the
5804 internetarchive python module for programmatic access to archive.org.")
5805 (license license:agpl3+)))
5806
5807 (define-public python-clf
5808 (let ((commit-test-clf "d01d25923c599d3261910f79fb948825b4270d07")) ; 0.5.7
5809 (package
5810 (name "python-clf")
5811 (version "0.5.7")
5812 (source
5813 (origin
5814 (method url-fetch)
5815 (uri (pypi-uri "clf" version))
5816 (sha256
5817 (base32
5818 "0zlkzqnpz7a4iavsq5vaz0nf5nr7qm5znpg1vlpz6rwnx6hikjdb"))))
5819 (build-system python-build-system)
5820 (propagated-inputs
5821 `(("python-docopt" ,python-docopt)
5822 ("python-pygments" ,python-pygments)
5823 ("python-requests" ,python-requests)
5824 ("python-nose" ,python-nose)
5825 ("python-lxml" ,python-lxml)
5826 ("python-pyaml" ,python-pyaml)))
5827 (inputs
5828 `(("test-clf"
5829 ,(origin
5830 (method url-fetch)
5831 (uri (string-append "https://raw.githubusercontent.com"
5832 "/ncrocfer/clf/" commit-test-clf
5833 "/test_clf.py"))
5834 (sha256
5835 (base32
5836 "19lr5zdzsmxgkg7wrjq1yzkiahd03wi4k3dskssyhmjls8c10nqd"))))))
5837 (arguments
5838 '(#:phases
5839 (modify-phases %standard-phases
5840 (add-after 'unpack 'get-tests
5841 (lambda _
5842 (copy-file (assoc-ref %build-inputs "test-clf") "test_clf.py")
5843 #t))
5844 (replace 'check
5845 (lambda _
5846 (invoke "nosetests"
5847 ;; These tests require an Internet connection.
5848 "--exclude=test_browse"
5849 "--exclude=test_command"
5850 "--exclude=test_search"))))))
5851 (home-page "https://github.com/ncrocfer/clf")
5852 (synopsis "Search code snippets on @url{https://commandlinefu.com}")
5853 (description "@code{clf} is a command line tool for searching code
5854 snippets on @url{https://commandlinefu.com}.")
5855 (license license:expat))))
5856
5857 (define-public python2-clf
5858 (package-with-python2 python-clf))
5859
5860 (define-public rss-bridge
5861 (package
5862 (name "rss-bridge")
5863 (version "2019-09-12")
5864 (source
5865 (origin
5866 (method git-fetch)
5867 (uri (git-reference
5868 (url "https://github.com/RSS-Bridge/rss-bridge")
5869 (commit version)))
5870 (file-name (git-file-name name version))
5871 (sha256
5872 (base32 "1mx7f3l45nqhcrng531l4cq8kpzm164hhbwn26g5akb2pamdlnra"))))
5873 (build-system trivial-build-system)
5874 (arguments
5875 '(#:modules ((guix build utils))
5876 #:builder
5877 (begin
5878 (use-modules (guix build utils)
5879 (ice-9 match))
5880 (let* ((out (assoc-ref %outputs "out"))
5881 (share-rss-bridge (string-append out "/share/rss-bridge")))
5882 (mkdir-p share-rss-bridge)
5883 (copy-recursively (assoc-ref %build-inputs "source") share-rss-bridge)
5884 #t))))
5885 (home-page "https://github.com/RSS-Bridge/rss-bridge")
5886 (synopsis "Generate Atom feeds for social networking websites")
5887 (description "rss-bridge generates Atom feeds for social networking
5888 websites lacking feeds. Supported websites include Facebook, Twitter,
5889 Instagram and YouTube.")
5890 (license (list license:public-domain
5891 license:expat)))) ; vendor/simplehtmldom/simple_html_dom.php
5892
5893 (define-public linkchecker
5894 (package
5895 (name "linkchecker")
5896 (version "9.4.0")
5897 (source
5898 (origin
5899 (method git-fetch)
5900 (uri (git-reference
5901 (url "https://github.com/linkchecker/linkchecker")
5902 (commit (string-append "v" version))))
5903 (patches
5904 (search-patches "linkchecker-tests-require-network.patch"))
5905 (file-name (git-file-name name version))
5906 (sha256
5907 (base32
5908 "03ihjmc4bqxxqv71bb43r2f23sx0xnbq1k2fsg9fw05qa5s9x187"))))
5909 (build-system python-build-system)
5910 (inputs
5911 `(("python2-dnspython" ,python2-dnspython)
5912 ("python2-pyxdg" ,python2-pyxdg)
5913 ("python2-requests" ,python2-requests)))
5914 (native-inputs
5915 `(("gettext" ,gettext-minimal)
5916 ("python2-pytest" ,python2-pytest)
5917 ("python2-miniboa" ,python2-miniboa)
5918 ("python2-parameterized" ,python2-parameterized)))
5919 (arguments
5920 `(#:python ,python-2
5921 #:phases
5922 (modify-phases %standard-phases
5923 ;; Move the 'check phase to after 'install, so that the installed
5924 ;; library can be used
5925 (delete 'check)
5926 (add-after 'install 'check
5927 (lambda* (#:key outputs #:allow-other-keys)
5928 (let ((out (assoc-ref outputs "out")))
5929 ;; Set PYTHONPATH so that the installed linkchecker is used
5930 (setenv "PYTHONPATH"
5931 (string-append out "/lib/python2.7/site-packages"
5932 ":"
5933 (getenv "PYTHONPATH")))
5934 ;; Remove this directory to avoid it being used when running
5935 ;; the tests
5936 (delete-file-recursively "linkcheck")
5937
5938 (invoke "py.test" "tests"))
5939 #t)))))
5940 (home-page "https://linkcheck.github.io/linkchecker")
5941 (synopsis "Check websites for broken links")
5942 (description "LinkChecker is a website validator. It checks for broken
5943 links in websites. It is recursive and multithreaded providing output in
5944 colored or normal text, HTML, SQL, CSV, XML or as a sitemap graph. It
5945 supports checking HTTP/1.1, HTTPS, FTP, mailto, news, nntp, telnet and local
5946 file links.")
5947 (license (list license:gpl2+
5948 license:bsd-2 ; linkcheck/better_exchook2.py
5949 license:bsd-3 ; linkcheck/colorama.py
5950 license:psfl ; linkcheck/gzip2.py
5951 license:expat)))) ; linkcheck/mem.py
5952
5953 (define-public cadaver
5954 (package
5955 (name "cadaver")
5956 (version "0.23.3")
5957 (source
5958 (origin
5959 (method url-fetch)
5960 (uri (string-append "http://www.webdav.org/cadaver/"
5961 name "-" version ".tar.gz"))
5962 (sha256
5963 (base32
5964 "1jizq69ifrjbjvz5y79wh1ny94gsdby4gdxwjad4bfih6a5fck7x"))))
5965 (build-system gnu-build-system)
5966 ;; TODO: Unbundle libneon and make build succeed with new neon.
5967 (arguments
5968 `(#:configure-flags (list "--with-ssl=openssl")
5969 #:tests? #f)) ;No tests included
5970 (native-inputs
5971 `(("gettext" ,gnu-gettext)
5972 ("pkg-config" ,pkg-config)
5973 ("intltool" ,intltool)))
5974 (inputs
5975 `(("expat" ,expat)
5976 ("openssl" ,openssl)))
5977 (home-page "http://www.webdav.org/cadaver")
5978 (synopsis "Command-line WebDAV client")
5979 (description
5980 "Cadaver is a command-line WebDAV client for Unix. It supports
5981 file upload, download, on-screen display, namespace operations (move/copy),
5982 collection creation and deletion, and locking operations.")
5983 (license license:gpl2)))
5984
5985 (define-public python-py-ubjson
5986 (package
5987 (name "python-py-ubjson")
5988 (version "0.10.0")
5989 (source
5990 (origin
5991 (method url-fetch)
5992 (uri (pypi-uri "py-ubjson" version))
5993 (sha256
5994 (base32
5995 "03l9m9w5ip4hw0y69wlys5gzsfb7zcq3a77blj88grgiqhn5vm5n"))))
5996 (build-system python-build-system)
5997 (home-page "https://github.com/Iotic-Labs/py-ubjson")
5998 (synopsis "Universal Binary JSON encoder/decoder")
5999 (description
6000 "Py-ubjson is a Python module providing an Universal Binary JSON
6001 encoder/decoder based on the draft-12 specification for UBJSON.")
6002 (license license:asl2.0)))
6003
6004 (define-public java-tomcat
6005 (package
6006 (name "java-tomcat")
6007 (version "8.5.46")
6008 (source (origin
6009 (method url-fetch)
6010 (uri (string-append "mirror://apache/tomcat/tomcat-8/v"
6011 version "/src/apache-tomcat-" version "-src.tar.gz"))
6012 (sha256
6013 (base32
6014 "0fb49gsqa3r6jrwc54yynvsakq9qbzr2pbxr7a29c2zvja2v65iq"))
6015 (modules '((guix build utils)))
6016 ;; Delete bundled jars.
6017 (snippet
6018 '(begin
6019 (for-each delete-file (find-files "." "\\.jar$"))
6020 (for-each delete-file (find-files "." "\\.bat$"))
6021 #t))))
6022 (build-system ant-build-system)
6023 (inputs
6024 `(("java-commons-daemon" ,java-commons-daemon)
6025 ("java-ecj" ,java-ecj)))
6026 (arguments
6027 `(#:build-target "deploy"
6028 #:tests? #f; requires downloading some files.
6029 #:phases
6030 (modify-phases %standard-phases
6031 (add-after 'unpack 'prevent-download
6032 (lambda _
6033 ;; This directory must exist
6034 (mkdir "downloads")
6035 ;; We patch build.xml so it doesn't download any dependency, because
6036 ;; we already have all of them.
6037 (substitute* "build.xml"
6038 (("download-compile,") "")
6039 (("depends=\"validate\"") "depends=\"build-prepare\"")
6040 ((",download-validate") ""))
6041 #t))
6042 (add-after 'unpack 'strip-timestamps
6043 (lambda _
6044 (substitute* "build.xml"
6045 (("<filter token=\"YEAR\" value=.*")
6046 "<filter token=\"YEAR\" value=\"1970\"/>")
6047 (("<filter token=\"VERSION_BUILT\" value=.*")
6048 "<filter token=\"VERSION_BUILT\" value=\"Jan 1 1970 00:00:00 UTC\"/>"))
6049 #t))
6050 (add-after 'unpack 'modify-deploy
6051 (lambda _
6052 ;; The Tomcat build downloads and copies these files to the
6053 ;; bin and lib directory.
6054 ;; We instead symlink to the input (see below).
6055 (substitute* "build.xml"
6056 (("<copy tofile=\"\\$\\{tomcat.build\\}/bin/commons-daemon.jar.*") "")
6057 (("<copy file=\"\\$\\{jdt.jar\\}\" todir=\"\\$\\{tomcat.build\\}/lib\"/>")
6058 ""))
6059 #t))
6060 (add-after 'install 'symlink-commons-daemon
6061 (lambda* (#:key inputs outputs #:allow-other-keys)
6062 (let* ((commons-daemon (assoc-ref inputs "java-commons-daemon"))
6063 (files (find-files commons-daemon "commons-daemon-.*\\.jar"))
6064 (daemon-jar (car files))
6065 (out-bin (string-append (assoc-ref outputs "out") "/bin"))
6066 (target (string-append out-bin "/commons-daemon.jar")))
6067 (symlink daemon-jar target)
6068 #t)))
6069 (add-after 'install 'symlink-java-ecj
6070 (lambda* (#:key inputs outputs #:allow-other-keys)
6071 (let* ((java-ecj (assoc-ref inputs "java-ecj"))
6072 (files (find-files java-ecj "ecj.*\\.jar"))
6073 (java-ecj-jar (car files))
6074 (out-lib (string-append (assoc-ref outputs "out") "/lib"))
6075 (target (string-append out-lib "/java-ecj.jar")))
6076 (symlink java-ecj-jar target)
6077 #t)))
6078 (add-after 'unpack 'generate-properties
6079 (lambda _
6080 ;; This could have been passed to make-flags, but getcwd returns
6081 ;; a different directory then.
6082 (with-output-to-file "build.properties"
6083 (lambda _
6084 (display
6085 (string-append "base.path=" (getcwd) "/downloads\n"))))
6086 #t))
6087 (replace 'install
6088 (lambda* (#:key outputs #:allow-other-keys)
6089 (let ((out (assoc-ref outputs "out")))
6090 (copy-recursively "output/build" out))
6091 #t)))))
6092 (home-page "https://tomcat.apache.org")
6093 (synopsis "Java Servlet, JavaServer Pages, Java Expression Language and Java
6094 WebSocket")
6095 (description "Apache Tomcat is a free implementation of the Java
6096 Servlet, JavaServer Pages, Java Expression Language and Java WebSocket
6097 technologies.")
6098 (license license:asl2.0)))
6099
6100 (define-public java-eclipse-jetty-test-helper
6101 (package
6102 (name "java-eclipse-jetty-test-helper")
6103 (version "4.2")
6104 (source (origin
6105 (method url-fetch)
6106 (uri (string-append "https://github.com/eclipse/jetty.toolchain/"
6107 "archive/jetty-test-helper-" version ".tar.gz"))
6108 (sha256
6109 (base32
6110 "1jd6r9wc26fa11si4rn2gvy8ml8q4zw1nr6v04mjp8wvwpgvzwx5"))))
6111 (build-system ant-build-system)
6112 (arguments
6113 `(#:jar-name "eclipse-jetty-test-helper.jar"
6114 #:source-dir "src/main/java"
6115 #:test-dir "src/test"
6116 #:jdk ,icedtea-8
6117 #:phases
6118 (modify-phases %standard-phases
6119 (add-before 'configure 'chdir
6120 (lambda _
6121 (chdir "jetty-test-helper")
6122 #t))
6123 (add-before 'build 'fix-paths
6124 (lambda _
6125 ;; TODO:
6126 ;; This file assumes that the build directory is named "target"
6127 ;; but it is not the case with our ant-build-system. Once we have
6128 ;; maven though, we will have to rebuild this package because this
6129 ;; assumption is correct with maven-build-system.
6130 (substitute*
6131 "src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java"
6132 (("\"target\"") "\"build\"")
6133 (("\"tests\"") "\"test-classes\""))
6134 ;; Tests assume we are building with maven, so that the build
6135 ;; directory is named "target", and not "build".
6136 (with-directory-excursion "src/test/java/org/eclipse/jetty/toolchain/test"
6137 (substitute* '("FSTest.java" "OSTest.java" "TestingDirTest.java"
6138 "MavenTestingUtilsTest.java")
6139 (("target/tests") "build/test-classes")
6140 (("\"target") "\"build")))
6141 #t)))))
6142 (inputs
6143 `(("junit" ,java-junit)
6144 ("hamcrest" ,java-hamcrest-all)))
6145 (home-page "https://www.eclipse.org/jetty/")
6146 (synopsis "Helper classes for jetty tests")
6147 (description "This package contains helper classes for testing the Jetty
6148 Web Server.")
6149 ;; This program is licensed under both epl and asl.
6150 (license (list license:epl1.0 license:asl2.0))))
6151
6152 (define-public java-eclipse-jetty-perf-helper
6153 (package
6154 (inherit java-eclipse-jetty-test-helper)
6155 (name "java-eclipse-jetty-perf-helper")
6156 (arguments
6157 `(#:jar-name "eclipse-jetty-perf-helper.jar"
6158 #:source-dir "src/main/java"
6159 #:tests? #f; no tests
6160 #:jdk ,icedtea-8
6161 #:phases
6162 (modify-phases %standard-phases
6163 (add-before 'configure 'chdir
6164 (lambda _
6165 (chdir "jetty-perf-helper")
6166 #t)))))
6167 (inputs
6168 `(("hdrhistogram" ,java-hdrhistogram)))))
6169
6170 (define-public java-eclipse-jetty-util
6171 (package
6172 (name "java-eclipse-jetty-util")
6173 (version "9.4.6")
6174 (source (origin
6175 (method url-fetch)
6176 (uri (string-append "https://github.com/eclipse/jetty.project/"
6177 "archive/jetty-" version ".v20170531.tar.gz"))
6178 (sha256
6179 (base32
6180 "0x7kbdvkmgr6kbsmbwiiyv3bb0d6wk25frgvld9cf8540136z9p1"))))
6181 (build-system ant-build-system)
6182 (arguments
6183 `(#:jar-name "eclipse-jetty-util.jar"
6184 #:source-dir "src/main/java"
6185 #:test-exclude
6186 (list "**/Abstract*.java"
6187 ;; requires network
6188 "**/InetAddressSetTest.java"
6189 ;; Assumes we are using maven
6190 "**/TypeUtilTest.java"
6191 ;; Error on the style of log
6192 "**/StdErrLogTest.java")
6193 #:jdk ,icedtea-8
6194 #:phases
6195 (modify-phases %standard-phases
6196 (add-before 'configure 'chdir
6197 (lambda _
6198 (chdir "jetty-util")
6199 #t)))))
6200 (inputs
6201 `(("slf4j" ,java-slf4j-api)
6202 ("servlet" ,java-javaee-servletapi)))
6203 (native-inputs
6204 `(("junit" ,java-junit)
6205 ("hamcrest" ,java-hamcrest-all)
6206 ("perf-helper" ,java-eclipse-jetty-perf-helper)
6207 ("test-helper" ,java-eclipse-jetty-test-helper)))
6208 (home-page "https://www.eclipse.org/jetty/")
6209 (synopsis "Utility classes for Jetty")
6210 (description "The Jetty Web Server provides an HTTP server and Servlet
6211 container capable of serving static and dynamic content either from a standalone
6212 or embedded instantiation. This package provides utility classes.")
6213 (license (list license:epl1.0 license:asl2.0))))
6214
6215 ;; This version is required by maven-wagon
6216 (define-public java-eclipse-jetty-util-9.2
6217 (package
6218 (inherit java-eclipse-jetty-util)
6219 (version "9.2.22")
6220 (source (origin
6221 (method url-fetch)
6222 (uri (string-append "https://github.com/eclipse/jetty.project/"
6223 "archive/jetty-" version ".v20170606.tar.gz"))
6224 (sha256
6225 (base32
6226 "1i51qlsd7h06d35kx5rqpzbfadbcszycx1iwr6vz7qc9gf9f29la"))))
6227 (arguments
6228 `(#:jar-name "eclipse-jetty-util.jar"
6229 #:source-dir "src/main/java"
6230 #:jdk ,icedtea-8
6231 #:test-exclude
6232 (list "**/Abstract*.java"
6233 ;; requires network
6234 "**/InetAddressSetTest.java"
6235 ;; Assumes we are using maven
6236 "**/TypeUtilTest.java"
6237 ;; We don't have an implementation for slf4j
6238 "**/LogTest.java"
6239 ;; Error on the style of log
6240 "**/StdErrLogTest.java")
6241 #:phases
6242 (modify-phases %standard-phases
6243 (add-before 'configure 'chdir
6244 (lambda _
6245 (chdir "jetty-util")
6246 #t))
6247 (add-before 'build 'fix-test-sources
6248 (lambda _
6249 ;; We need to fix issues caused by changes in newer versions of
6250 ;; jetty-test-helper
6251 (let ((src "src/test/java/org/eclipse/jetty/util/resource"))
6252 (substitute* (string-append src "/AbstractFSResourceTest.java")
6253 (("testdir.getDir\\(\\)") "testdir.getPath().toFile()")
6254 (("testdir.getFile\\(\"foo\"\\)")
6255 "testdir.getPathFile(\"foo\").toFile()")
6256 (("testdir.getFile\\(name\\)")
6257 "testdir.getPathFile(name).toFile()")))
6258 #t)))))))
6259
6260 (define-public java-eclipse-jetty-io
6261 (package
6262 (inherit java-eclipse-jetty-util)
6263 (name "java-eclipse-jetty-io")
6264 (arguments
6265 `(#:jar-name "eclipse-jetty-io.jar"
6266 #:source-dir "src/main/java"
6267 #:jdk ,icedtea-8
6268 #:test-exclude (list "**/Abstract*.java"
6269 ;; Abstract class
6270 "**/EndPointTest.java")
6271 #:phases
6272 (modify-phases %standard-phases
6273 (add-before 'configure 'chdir
6274 (lambda _
6275 (chdir "jetty-io")
6276 #t)))))
6277 (inputs
6278 `(("slf4j" ,java-slf4j-api)
6279 ("servlet" ,java-javaee-servletapi)
6280 ("util" ,java-eclipse-jetty-util)))
6281 (synopsis "Jetty :: IO Utility")
6282 (description "The Jetty Web Server provides an HTTP server and Servlet
6283 container capable of serving static and dynamic content either from a standalone
6284 or embedded instantiation. This package provides IO-related utility classes.")))
6285
6286 (define-public java-eclipse-jetty-io-9.2
6287 (package
6288 (inherit java-eclipse-jetty-io)
6289 (version (package-version java-eclipse-jetty-util-9.2))
6290 (source (package-source java-eclipse-jetty-util-9.2))
6291 (inputs
6292 `(("util" ,java-eclipse-jetty-util-9.2)
6293 ,@(package-inputs java-eclipse-jetty-util-9.2)))
6294 (native-inputs
6295 `(("mockito" ,java-mockito-1)
6296 ("cglib" ,java-cglib)
6297 ("objenesis" ,java-objenesis)
6298 ("asm" ,java-asm)
6299 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
6300
6301 (define-public java-eclipse-jetty-http
6302 (package
6303 (inherit java-eclipse-jetty-util)
6304 (name "java-eclipse-jetty-http")
6305 (arguments
6306 `(#:jar-name "eclipse-jetty-http.jar"
6307 #:source-dir "src/main/java"
6308 #:jdk ,icedtea-8
6309 #:phases
6310 (modify-phases %standard-phases
6311 (add-before 'configure 'chdir
6312 (lambda _
6313 (chdir "jetty-http")
6314 #t))
6315 (add-before 'build 'copy-resources
6316 (lambda _
6317 (mkdir-p "build/classes")
6318 (copy-recursively "src/main/resources/" "build/classes/")
6319 #t)))))
6320 (inputs
6321 `(("slf4j" ,java-slf4j-api)
6322 ("servlet" ,java-javaee-servletapi)
6323 ("io" ,java-eclipse-jetty-io)
6324 ("util" ,java-eclipse-jetty-util)))
6325 (synopsis "Jetty :: Http Utility")
6326 (description "The Jetty Web Server provides an HTTP server and Servlet
6327 container capable of serving static and dynamic content either from a standalone
6328 or embedded instantiation. This package provides HTTP-related utility classes.")))
6329
6330 (define-public java-eclipse-jetty-http-9.2
6331 (package
6332 (inherit java-eclipse-jetty-http)
6333 (version (package-version java-eclipse-jetty-util-9.2))
6334 (source (package-source java-eclipse-jetty-util-9.2))
6335 (inputs
6336 `(("util" ,java-eclipse-jetty-util-9.2)
6337 ("io" ,java-eclipse-jetty-io-9.2)
6338 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
6339
6340 (define-public java-eclipse-jetty-jmx
6341 (package
6342 (inherit java-eclipse-jetty-util)
6343 (name "java-eclipse-jetty-jmx")
6344 (arguments
6345 `(#:jar-name "eclipse-jetty-jmx.jar"
6346 #:source-dir "src/main/java"
6347 #:jdk ,icedtea-8
6348 #:tests? #f; FIXME: requires com.openpojo.validation
6349 #:phases
6350 (modify-phases %standard-phases
6351 (add-before 'configure 'chdir
6352 (lambda _
6353 (chdir "jetty-jmx")
6354 #t)))))
6355 (inputs
6356 `(("slf4j" ,java-slf4j-api)
6357 ("servlet" ,java-javaee-servletapi)
6358 ("util" ,java-eclipse-jetty-util)))
6359 (synopsis "Jetty :: JMX Management")
6360 (description "The Jetty Web Server provides an HTTP server and Servlet
6361 container capable of serving static and dynamic content either from a standalone
6362 or embedded instantiation. This package provides the JMX management.")))
6363
6364 (define-public java-eclipse-jetty-jmx-9.2
6365 (package
6366 (inherit java-eclipse-jetty-jmx)
6367 (version (package-version java-eclipse-jetty-util-9.2))
6368 (source (package-source java-eclipse-jetty-util-9.2))
6369 (inputs
6370 `(("util" ,java-eclipse-jetty-util-9.2)
6371 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
6372
6373 (define java-eclipse-jetty-http-test-classes
6374 (package
6375 (inherit java-eclipse-jetty-util)
6376 (name "java-eclipse-jetty-http-test-classes")
6377 (arguments
6378 `(#:jar-name "eclipse-jetty-http.jar"
6379 #:source-dir "src/test"
6380 #:tests? #f
6381 #:jdk ,icedtea-8
6382 #:phases
6383 (modify-phases %standard-phases
6384 (add-before 'configure 'chdir
6385 (lambda _
6386 (chdir "jetty-http")
6387 #t)))))
6388 (inputs
6389 `(("slf4j" ,java-slf4j-api)
6390 ("java-javaee-servletapi" ,java-javaee-servletapi)
6391 ("http" ,java-eclipse-jetty-http)
6392 ("io" ,java-eclipse-jetty-io)
6393 ("util" ,java-eclipse-jetty-util)))))
6394
6395 (define java-eclipse-jetty-http-test-classes-9.2
6396 (package
6397 (inherit java-eclipse-jetty-http-test-classes)
6398 (version (package-version java-eclipse-jetty-util-9.2))
6399 (source (package-source java-eclipse-jetty-util-9.2))
6400 (inputs
6401 `(("http" ,java-eclipse-jetty-http-9.2)
6402 ,@(package-inputs java-eclipse-jetty-http-9.2)))))
6403
6404 (define-public java-eclipse-jetty-server
6405 (package
6406 (inherit java-eclipse-jetty-util)
6407 (name "java-eclipse-jetty-server")
6408 (arguments
6409 `(#:jar-name "eclipse-jetty-server.jar"
6410 #:source-dir "src/main/java"
6411 #:jdk ,icedtea-8
6412 #:tests? #f; requires a mockito version we don't have
6413 #:phases
6414 (modify-phases %standard-phases
6415 (add-before 'configure 'chdir
6416 (lambda _
6417 (chdir "jetty-server")
6418 #t))
6419 (add-before 'build 'fix-source
6420 (lambda _
6421 ;; Explicit casts to prevent build failures
6422 (substitute* "src/main/java/org/eclipse/jetty/server/Request.java"
6423 (("append\\(LazyList")
6424 "append((CharSequence)LazyList"))
6425 (substitute*
6426 "src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java"
6427 (((string-append
6428 "Class<\\? extends EventListener> clazz = _classLoader==null"
6429 "\\?Loader.loadClass\\(ContextHandler.class,className\\):"
6430 "_classLoader.loadClass\\(className\\);"))
6431 (string-append "Class<? extends EventListener> clazz = "
6432 "(Class<? extends EventListener>) "
6433 "(_classLoader==null?Loader.loadClass("
6434 "ContextHandler.class,className):"
6435 "_classLoader.loadClass(className));")))
6436 #t)))))
6437 (inputs
6438 `(("slf4j" ,java-slf4j-api)
6439 ("servlet" ,java-javaee-servletapi)
6440 ("http" ,java-eclipse-jetty-http)
6441 ("io" ,java-eclipse-jetty-io)
6442 ("jmx" ,java-eclipse-jetty-jmx)
6443 ("util" ,java-eclipse-jetty-util)))
6444 (native-inputs
6445 `(("test-classes" ,java-eclipse-jetty-http-test-classes)
6446 ,@(package-native-inputs java-eclipse-jetty-util)))
6447 (synopsis "Core jetty server artifact")
6448 (description "The Jetty Web Server provides an HTTP server and Servlet
6449 container capable of serving static and dynamic content either from a standalone
6450 or embedded instantiation. This package provides the core jetty server
6451 artifact.")))
6452
6453 (define-public java-eclipse-jetty-server-9.2
6454 (package
6455 (inherit java-eclipse-jetty-server)
6456 (version (package-version java-eclipse-jetty-util-9.2))
6457 (source (package-source java-eclipse-jetty-util-9.2))
6458 (inputs
6459 `(("util" ,java-eclipse-jetty-util-9.2)
6460 ("jmx" ,java-eclipse-jetty-jmx-9.2)
6461 ("io" ,java-eclipse-jetty-io-9.2)
6462 ("http" ,java-eclipse-jetty-http-9.2)
6463 ,@(package-inputs java-eclipse-jetty-util-9.2)))
6464 (native-inputs
6465 `(("test-classes" ,java-eclipse-jetty-http-test-classes-9.2)
6466 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
6467
6468 (define-public java-eclipse-jetty-security
6469 (package
6470 (inherit java-eclipse-jetty-util)
6471 (name "java-eclipse-jetty-security")
6472 (arguments
6473 `(#:jar-name "eclipse-jetty-security.jar"
6474 #:source-dir "src/main/java"
6475 #:jdk ,icedtea-8
6476 #:test-exclude (list "**/ConstraintTest.*") ; This test fails
6477 #:phases
6478 (modify-phases %standard-phases
6479 (add-before 'configure 'chdir
6480 (lambda _
6481 (chdir "jetty-security")
6482 #t)))))
6483 (inputs
6484 `(("slf4j" ,java-slf4j-api)
6485 ("servlet" ,java-javaee-servletapi)
6486 ("http" ,java-eclipse-jetty-http)
6487 ("server" ,java-eclipse-jetty-server)
6488 ("util" ,java-eclipse-jetty-util)))
6489 (native-inputs
6490 `(("io" ,java-eclipse-jetty-io)
6491 ,@(package-native-inputs java-eclipse-jetty-util)))
6492 (synopsis "Jetty security infrastructure")
6493 (description "The Jetty Web Server provides an HTTP server and Servlet
6494 container capable of serving static and dynamic content either from a standalone
6495 or embedded instantiation. This package provides the core jetty security
6496 infrastructure")))
6497
6498 (define-public java-eclipse-jetty-security-9.2
6499 (package
6500 (inherit java-eclipse-jetty-security)
6501 (version (package-version java-eclipse-jetty-util-9.2))
6502 (source (package-source java-eclipse-jetty-util-9.2))
6503 (inputs
6504 `(("util" ,java-eclipse-jetty-util-9.2)
6505 ("http" ,java-eclipse-jetty-http-9.2)
6506 ("server" ,java-eclipse-jetty-server-9.2)
6507 ,@(package-inputs java-eclipse-jetty-util-9.2)))
6508 (native-inputs
6509 `(("io" ,java-eclipse-jetty-io-9.2)
6510 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
6511
6512 (define-public java-eclipse-jetty-servlet
6513 (package
6514 (inherit java-eclipse-jetty-util)
6515 (name "java-eclipse-jetty-servlet")
6516 (arguments
6517 `(#:jar-name "eclipse-jetty-servlet.jar"
6518 #:source-dir "src/main/java"
6519 #:jdk ,icedtea-8
6520 #:phases
6521 (modify-phases %standard-phases
6522 (add-before 'configure 'chdir
6523 (lambda _
6524 (chdir "jetty-servlet")
6525 #t)))))
6526 (inputs
6527 `(("slf4j" ,java-slf4j-api)
6528 ("java-javaee-servletapi" ,java-javaee-servletapi)
6529 ("http" ,java-eclipse-jetty-http)
6530 ("http-test" ,java-eclipse-jetty-http-test-classes)
6531 ("io" ,java-eclipse-jetty-io)
6532 ("jmx" ,java-eclipse-jetty-jmx)
6533 ("security" ,java-eclipse-jetty-security)
6534 ("server" ,java-eclipse-jetty-server)
6535 ("util" ,java-eclipse-jetty-util)))
6536 (synopsis "Jetty Servlet Container")
6537 (description "The Jetty Web Server provides an HTTP server and Servlet
6538 container capable of serving static and dynamic content either from a standalone
6539 or embedded instantiation. This package provides the core jetty servlet
6540 container.")))
6541
6542 (define-public java-eclipse-jetty-servlet-9.2
6543 (package
6544 (inherit java-eclipse-jetty-servlet)
6545 (version (package-version java-eclipse-jetty-util-9.2))
6546 (source (package-source java-eclipse-jetty-util-9.2))
6547 (arguments
6548 `(#:jar-name "eclipse-jetty-servlet.jar"
6549 #:source-dir "src/main/java"
6550 #:jdk ,icedtea-8
6551 #:tests? #f; doesn't work
6552 #:phases
6553 (modify-phases %standard-phases
6554 (add-before 'configure 'chdir
6555 (lambda _
6556 (chdir "jetty-servlet")
6557 #t)))))
6558 (inputs
6559 `(("util" ,java-eclipse-jetty-util-9.2)
6560 ("jmx" ,java-eclipse-jetty-jmx-9.2)
6561 ("io" ,java-eclipse-jetty-io-9.2)
6562 ("http" ,java-eclipse-jetty-http-9.2)
6563 ("security" ,java-eclipse-jetty-security-9.2)
6564 ("http-test" ,java-eclipse-jetty-http-test-classes-9.2)
6565 ("server" ,java-eclipse-jetty-server-9.2)
6566 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
6567
6568 (define-public java-eclipse-jetty-xml
6569 (package
6570 (inherit java-eclipse-jetty-util)
6571 (name "java-eclipse-jetty-xml")
6572 (arguments
6573 `(#:jar-name "eclipse-jetty-xml.jar"
6574 #:source-dir "src/main/java"
6575 #:jdk ,icedtea-8
6576 #:tests? #f; most tests require network
6577 #:phases
6578 (modify-phases %standard-phases
6579 (add-before 'configure 'chdir
6580 (lambda _
6581 (chdir "jetty-xml")
6582 #t)))))
6583 (inputs
6584 `(("java-eclipse-jetty-util" ,java-eclipse-jetty-util)))
6585 (native-inputs
6586 `(("java-eclipse-jetty-io" ,java-eclipse-jetty-io)
6587 ,@(package-native-inputs java-eclipse-jetty-util)))))
6588
6589 (define-public java-eclipse-jetty-xml-9.2
6590 (package
6591 (inherit java-eclipse-jetty-xml)
6592 (version (package-version java-eclipse-jetty-util-9.2))
6593 (source (package-source java-eclipse-jetty-util-9.2))
6594 (arguments
6595 `(#:jar-name "eclipse-jetty-xml.jar"
6596 #:source-dir "src/main/java"
6597 #:jdk ,icedtea-8
6598 #:tests? #f; most tests require network
6599 #:phases
6600 (modify-phases %standard-phases
6601 (add-before 'configure 'chdir
6602 (lambda _
6603 (chdir "jetty-xml")
6604 #t)))))
6605 (inputs
6606 `(("java-eclipse-jetty-util-9.2" ,java-eclipse-jetty-util-9.2)
6607 ,@(package-inputs java-eclipse-jetty-util-9.2)))
6608 (native-inputs
6609 `(("java-eclipse-jetty-io-9.2" ,java-eclipse-jetty-io-9.2)
6610 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
6611
6612 (define-public java-eclipse-jetty-webapp
6613 (package
6614 (inherit java-eclipse-jetty-util)
6615 (name "java-eclipse-jetty-webapp")
6616 (arguments
6617 `(#:jar-name "eclipse-jetty-webapp.jar"
6618 #:source-dir "src/main/java"
6619 #:jdk ,icedtea-8
6620 ;; One test fails
6621 #:test-exclude (list "**/WebAppContextTest.java")
6622 #:phases
6623 (modify-phases %standard-phases
6624 (add-before 'configure 'chdir
6625 (lambda _
6626 (chdir "jetty-webapp")
6627 #t)))))
6628 (inputs
6629 `(("java-eclipse-jetty-util" ,java-eclipse-jetty-util)
6630 ("java-eclipse-jetty-http" ,java-eclipse-jetty-http)
6631 ("java-eclipse-jetty-server" ,java-eclipse-jetty-server)
6632 ("java-eclipse-jetty-servlet" ,java-eclipse-jetty-servlet)
6633 ("java-eclipse-jetty-security" ,java-eclipse-jetty-security)
6634 ("java-eclipse-jetty-xml" ,java-eclipse-jetty-xml)
6635 ("java-javaee-servletapi" ,java-javaee-servletapi)))
6636 (native-inputs
6637 `(("java-eclipse-jetty-io" ,java-eclipse-jetty-io)
6638 ,@(package-native-inputs java-eclipse-jetty-util)))))
6639
6640 (define-public java-eclipse-jetty-webapp-9.2
6641 (package
6642 (inherit java-eclipse-jetty-webapp)
6643 (version (package-version java-eclipse-jetty-util-9.2))
6644 (source (package-source java-eclipse-jetty-util-9.2))
6645 (arguments
6646 `(#:jar-name "eclipse-jetty-webapp.jar"
6647 #:source-dir "src/main/java"
6648 #:jdk ,icedtea-8
6649 #:test-exclude (list "**/WebAppContextTest.java")
6650 #:phases
6651 (modify-phases %standard-phases
6652 (add-before 'configure 'chdir
6653 (lambda _
6654 (chdir "jetty-webapp")
6655 #t)))))
6656 (inputs
6657 `(("java-eclipse-jetty-util-9.2" ,java-eclipse-jetty-util-9.2)
6658 ("java-eclipse-jetty-http-9.2" ,java-eclipse-jetty-http-9.2)
6659 ("java-eclipse-jetty-server-9.2" ,java-eclipse-jetty-server-9.2)
6660 ("java-eclipse-jetty-servlet-9.2" ,java-eclipse-jetty-servlet-9.2)
6661 ("java-eclipse-jetty-security-9.2" ,java-eclipse-jetty-security-9.2)
6662 ("java-eclipse-jetty-xml-9.2" ,java-eclipse-jetty-xml-9.2)
6663 ("java-javaee-servletapi" ,java-javaee-servletapi)
6664 ,@(package-inputs java-eclipse-jetty-util-9.2)))
6665 (native-inputs
6666 `(("java-eclipse-jetty-io-9.2" ,java-eclipse-jetty-io-9.2)
6667 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
6668
6669 (define-public java-jsoup
6670 (package
6671 (name "java-jsoup")
6672 (version "1.10.3")
6673 (source (origin
6674 (method git-fetch)
6675 (uri (git-reference
6676 (url "https://github.com/jhy/jsoup")
6677 (commit (string-append "jsoup-" version))))
6678 (file-name (git-file-name name version))
6679 (sha256
6680 (base32
6681 "1hdpdx0x140r5x3yc251v7dj1h4j5a7nh9k885aw9q5vvz49lkf4"))))
6682 (build-system ant-build-system)
6683 (arguments
6684 `(#:jar-name "jsoup.jar"
6685 #:source-dir "src/main/java"
6686 #:phases
6687 (modify-phases %standard-phases
6688 (add-before 'build 'copy-resources
6689 (lambda _
6690 (let ((classes-dir (string-append (getcwd) "/build/classes")))
6691 (with-directory-excursion "src/main/java"
6692 (for-each (lambda (file)
6693 (let ((dist (string-append classes-dir "/" file)))
6694 (mkdir-p (dirname dist))
6695 (copy-file file dist)))
6696 (find-files "." ".*.properties"))))
6697 #t)))))
6698 (native-inputs
6699 `(("java-junit" ,java-junit)
6700 ("java-hamcrest-core" ,java-hamcrest-core)
6701 ("java-gson" ,java-gson)))
6702 (home-page "https://jsoup.org")
6703 (synopsis "HTML parser")
6704 (description "Jsoup is a Java library for working with real-world HTML. It
6705 provides a very convenient API for extracting and manipulating data, using the
6706 best of DOM, CSS, and jQuery-like methods.")
6707 (license license:expat)))
6708
6709 (define-public java-signpost-core
6710 (package
6711 (name "java-signpost-core")
6712 (version "1.2.1.2")
6713 (source (origin
6714 (method git-fetch)
6715 (uri (git-reference
6716 (url "https://github.com/mttkay/signpost")
6717 (commit version)))
6718 (file-name (git-file-name name version))
6719 (sha256
6720 (base32
6721 "1l04yj2znch3hpyw90c4g4jan453w7d88l84bgl0c72i2kbb8z7h"))))
6722 (build-system ant-build-system)
6723 (arguments
6724 `(#:jar-name "signpost-core.jar"
6725 #:source-dir "signpost-core/src/main/java"
6726 #:test-dir "signpost-core/src/test"
6727 ;; Tests all fail with InstantiationException from mockito
6728 #:tests? #f))
6729 (propagated-inputs
6730 `(("java-commons-codec" ,java-commons-codec)))
6731 (home-page "https://github.com/mttkay/signpost")
6732 (synopsis "Lightweight client-side OAuth library for Java")
6733 (description "Signpost is the easy and intuitive solution for signing
6734 HTTP messages on the Java platform in conformance with the OAuth Core 1.0a
6735 standard. Signpost follows a modular and flexible design, allowing you to
6736 combine it with different HTTP messaging layers.")
6737 (license license:asl2.0)))
6738
6739 (define-public tidyp
6740 (package
6741 (name "tidyp")
6742 (version "1.04")
6743 (source
6744 (origin
6745 (method url-fetch)
6746 (uri (string-append "https://github.com/downloads/petdance/tidyp/tidyp-"
6747 version ".tar.gz"))
6748 (sha256
6749 (base32
6750 "0f5ky0ih4vap9c6j312jn73vn8m2bj69pl2yd3a5nmv35k9zmc10"))))
6751 (build-system gnu-build-system)
6752 ;; ./test-thing.sh tries to run ./testall.sh, which is not included.
6753 (arguments `(#:tests? #f))
6754 (home-page "http://www.tidyp.com/")
6755 (synopsis "Validate HTML")
6756 (description "Tidyp is a program that can validate your HTML, as well as
6757 modify it to be more clean and standard. tidyp does not validate HTML 5.
6758
6759 libtidyp is the library on which the program is based. It can be used by any
6760 other program that can interface to it. The Perl module @code{HTML::Tidy} is
6761 based on this library, allowing Perl programmers to easily validate HTML.")
6762 ;; See htmldoc/license.html
6763 (license license:bsd-3)))
6764
6765 (define-public perl-html-tidy
6766 (package
6767 (name "perl-html-tidy")
6768 (version "1.60")
6769 (source
6770 (origin
6771 (method url-fetch)
6772 (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/HTML-Tidy-"
6773 version ".tar.gz"))
6774 (sha256
6775 (base32
6776 "1iyp2fd6j75cn1xvcwl2lxr8qpjxssy2360cyqn6g3kzd1fzdyxw"))))
6777 (build-system perl-build-system)
6778 (arguments
6779 '(#:phases
6780 (modify-phases %standard-phases
6781 (add-after 'unpack 'fix-tidyp-paths
6782 (lambda* (#:key inputs #:allow-other-keys)
6783 (substitute* "Makefile.PL"
6784 (("^my \\$inc = \"" line)
6785 (string-append line
6786 "-I" (assoc-ref inputs "tidyp") "/include/tidyp "))
6787 (("-L/usr/lib")
6788 (string-append
6789 "-L" (assoc-ref inputs "tidyp") "/lib")))
6790 #t)))))
6791 (inputs
6792 `(("perl-libwww" ,perl-libwww)
6793 ("tidyp" ,tidyp)))
6794 (native-inputs
6795 `(("perl-test-exception" ,perl-test-exception)))
6796 (home-page "https://metacpan.org/release/HTML-Tidy")
6797 (synopsis "(X)HTML validation in a Perl object")
6798 (description "@code{HTML::Tidy} is an HTML checker in a handy dandy
6799 object. It's meant as a replacement for @code{HTML::Lint}, which is written
6800 in Perl but is not nearly as capable as @code{HTML::Tidy}.")
6801 (license license:artistic2.0)))
6802
6803 (define-public geomyidae
6804 (package
6805 (name "geomyidae")
6806 (version "0.34")
6807 (source
6808 (origin
6809 (method git-fetch)
6810 (uri (git-reference
6811 (url "git://r-36.net/geomyidae")
6812 (commit (string-append "v" version))))
6813 (file-name (git-file-name name version))
6814 (sha256
6815 (base32 "02afgrk36wkdkflyqr2xgh49v9zq6ma454jshk7igvhpxfb5l3ks"))))
6816 (build-system gnu-build-system)
6817 (arguments
6818 `(#:make-flags (list "CC=gcc"
6819 (string-append "PREFIX="
6820 (assoc-ref %outputs "out")))
6821 #:tests? #f ; no tests
6822 #:phases (modify-phases %standard-phases
6823 (delete 'configure))))
6824 (home-page "http://r-36.net/scm/geomyidae/file/README.html")
6825 (synopsis "Small Gopher server")
6826 (description
6827 "Geomyidae is a server for distributed hypertext protocol Gopher. Its
6828 features include:
6829
6830 @enumerate
6831 @item Gopher menus (see @file{index.gph} for an example);
6832 @item directory listings (if no @file{index.gph} was found);
6833 @item CGI support (@file{.cgi} files are executed);
6834 @item search support in CGI files;
6835 @item logging with multiple log levels.
6836 @end enumerate\n")
6837 (license license:expat)))
6838
6839 (define-public cat-avatar-generator
6840 (package
6841 (name "cat-avatar-generator")
6842 (version "1")
6843 (source (origin
6844 (method git-fetch)
6845 (uri (git-reference
6846 (url "https://framagit.org/Deevad/cat-avatar-generator.git")
6847 (commit "71c0c662742cafe8afd2d2d50ec84243113e35ad")))
6848 (file-name (string-append name "-" version))
6849 (sha256
6850 (base32
6851 "0s7b5whqsmfa57prbgl66ym551kg6ly0z14h5dgrlx4lqm70y2yw"))))
6852 (build-system trivial-build-system)
6853 (arguments
6854 `(#:modules ((guix build utils))
6855 #:builder
6856 (begin
6857 (use-modules (guix build utils)
6858 (srfi srfi-1)
6859 (srfi srfi-26))
6860
6861 (let ((source (assoc-ref %build-inputs "source"))
6862 (php-dir (string-append %output "/share/web/" ,name "/")))
6863 ;; The cache directory must not be in the store, but in a writable
6864 ;; location. The webserver will give us this location.
6865 (copy-recursively source php-dir)
6866 (substitute* (string-append php-dir "/cat-avatar-generator.php")
6867 (("\\$cachepath = .*")
6868 "if(isset($_SERVER['CACHE_DIR']))
6869 $cachepath = $_SERVER['CACHE_DIR'];
6870 else
6871 die('You need to set the CACHE_DIR variable first.');"))
6872 #t))))
6873 (home-page "https://framagit.org/Deevad/cat-avatar-generator")
6874 (synopsis "Random avatar generator")
6875 (description "Cat avatar generator is a generator of cat pictures optimised
6876 to generate random avatars, or defined avatar from a \"seed\". This is a
6877 derivation by David Revoy from the original MonsterID by Andreas Gohr.")
6878 ;; expat for the code, CC-BY 4.0 for the artwork
6879 (license (list license:expat
6880 license:cc-by4.0))))
6881
6882 (define-public nghttp2
6883 (package
6884 (name "nghttp2")
6885 (version "1.39.1")
6886 (replacement nghttp2-1.39.2)
6887 (source
6888 (origin
6889 (method url-fetch)
6890 (uri (string-append "https://github.com/nghttp2/nghttp2/"
6891 "releases/download/v" version "/"
6892 "nghttp2-" version ".tar.xz"))
6893 (sha256
6894 (base32
6895 "0j0lk37k8k3f61r9nw647hg4b22z1753l36n3xrp9x01civ614b7"))))
6896 (build-system gnu-build-system)
6897 (outputs (list "out"
6898 "lib")) ; only libnghttp2
6899 (native-inputs
6900 `(("pkg-config" ,pkg-config)
6901
6902 ;; Required by tests.
6903 ("cunit" ,cunit)
6904 ("tzdata" ,tzdata-for-tests)))
6905 (inputs
6906 ;; Required to build the tools (i.e. without ‘--enable-lib-only’).
6907 `(("c-ares" ,c-ares)
6908 ("jansson" ,jansson) ; for HPACK tools
6909 ("jemalloc" ,jemalloc) ; fight nghttpd{,x} heap fragmentation
6910 ("libev" ,libev)
6911 ("libxml2" ,libxml2) ; for ‘nghttp -a’
6912 ("openssl" ,openssl)))
6913 (arguments
6914 `(#:configure-flags
6915 (list (string-append "--libdir=" (assoc-ref %outputs "lib") "/lib")
6916 "--enable-app" ; build all the tools
6917 "--enable-hpack-tools" ; ...all the tools
6918 "--disable-examples"
6919 "--disable-static") ; don't bother building .a files
6920 #:phases
6921 (modify-phases %standard-phases
6922 (add-after 'unpack 'break-circular-reference
6923 ;; libnghttp2.pc by default retains a reference to the ‘out’ output,
6924 ;; which is not allowed. Break this cycle. While we could install
6925 ;; only the library to ‘out’ and move everything else to a separate
6926 ;; output, this would inconvenience the majority of (human) users.
6927 (lambda* (#:key outputs #:allow-other-keys)
6928 (substitute* "lib/libnghttp2.pc.in"
6929 (("@prefix@")
6930 (assoc-ref outputs "lib")))
6931 #t))
6932 (add-before 'check 'set-timezone-directory
6933 (lambda* (#:key inputs #:allow-other-keys)
6934 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
6935 "/share/zoneinfo"))
6936 #t)))))
6937 (home-page "https://nghttp2.org/")
6938 (synopsis "HTTP/2 protocol client, proxy, server, and library")
6939 (description
6940 "nghttp2 implements the Hypertext Transfer Protocol, version
6941 2 (@dfn{HTTP/2}).
6942
6943 A reusable C library provides the HTTP/2 framing layer, with several tools built
6944 on top of it:
6945
6946 @itemize
6947 @item @command{nghttp}, a command-line HTTP/2 client. It exposes many advanced
6948 and low-level aspects of the protocol and is useful for debugging.
6949 @item @command{nghttpd}, a fast, multi-threaded HTTP/2 static web server that
6950 serves files from a local directory.
6951 @item @command{nghttpx}, a fast, multi-threaded HTTP/2 reverse proxy that can be
6952 deployed in front of existing web servers that don't support HTTP/2.
6953 Both @command{nghttpd} and @command{nghttpx} can fall back to HTTP/1.1 for
6954 backwards compatibility with clients that don't speak HTTP/2.
6955 @item @command{h2load} for benchmarking (only!) your own HTTP/2 servers.
6956 @item HTTP/2 uses a header compression method called @dfn{HPACK}.
6957 nghttp2 provides a HPACK encoder and decoder as part of its public API.
6958 @item @command{deflatehd} converts JSON data or HTTP/1-style header fields to
6959 compressed JSON header blocks.
6960 @item @command{inflatehd} converts such compressed headers back to JSON pairs.
6961 @end itemize\n")
6962 (license license:expat)))
6963
6964 (define nghttp2-1.39.2
6965 (package
6966 (inherit nghttp2)
6967 (version "1.39.2")
6968 (source (origin
6969 (method url-fetch)
6970 (uri (string-append "https://github.com/nghttp2/nghttp2/"
6971 "releases/download/v" version "/"
6972 "nghttp2-" version ".tar.xz"))
6973 (sha256
6974 (base32
6975 "12yfsjghbaypp4w964d45ih9vs38g6anih80wbsflaxx192idlm2"))))))
6976
6977 (define-public hpcguix-web
6978 (let ((commit "f39c90b35e99e4122b0866ec4337020d61c81508")
6979 (revision "4"))
6980 (package
6981 (name "hpcguix-web")
6982 (version (git-version "0.0.1" revision commit))
6983 (source (origin
6984 (method git-fetch)
6985 (uri (git-reference
6986 (url "https://github.com/UMCUGenetics/hpcguix-web.git")
6987 (commit commit)))
6988 (file-name (git-file-name name version))
6989 (sha256
6990 (base32
6991 "0idzzlwnaymk6hm5q9nh146h5m6vd8acp32vlmzp6qq08mimfkq7"))))
6992 (build-system gnu-build-system)
6993 (arguments
6994 `(#:modules ((guix build gnu-build-system)
6995 (guix build utils)
6996 (srfi srfi-26)
6997 (ice-9 popen)
6998 (ice-9 rdelim))
6999 #:phases
7000 (modify-phases %standard-phases
7001 (add-before 'configure 'set-variables
7002 (lambda _
7003 ;; This prevents a few warnings
7004 (setenv "GUILE_AUTO_COMPILE" "0")
7005 (setenv "XDG_CACHE_HOME" (getcwd))
7006 #t))
7007 (add-after 'install 'wrap-program
7008 (lambda* (#:key inputs outputs #:allow-other-keys)
7009 (let* ((out (assoc-ref outputs "out"))
7010 (guix (assoc-ref inputs "guix"))
7011 (guile (assoc-ref inputs "guile"))
7012 (gcrypt (assoc-ref inputs "guile-gcrypt"))
7013 (git (assoc-ref inputs "guile-git"))
7014 (bs (assoc-ref inputs "guile-bytestructures"))
7015 (json (assoc-ref inputs "guile-json"))
7016 (guile-cm (assoc-ref inputs
7017 "guile-commonmark"))
7018 (deps (list guile gcrypt git bs guile-cm guix json))
7019 (effective
7020 (read-line
7021 (open-pipe* OPEN_READ
7022 (string-append guile "/bin/guile")
7023 "-c" "(display (effective-version))")))
7024 (path (string-join
7025 (map (cut string-append <>
7026 "/share/guile/site/"
7027 effective)
7028 deps)
7029 ":"))
7030 (gopath (string-join
7031 (map (cut string-append <>
7032 "/lib/guile/" effective
7033 "/site-ccache")
7034 deps)
7035 ":")))
7036 (wrap-program (string-append out "/bin/run")
7037 `("GUILE_LOAD_PATH" ":" prefix (,path))
7038 `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,gopath)))
7039
7040 #t))))))
7041 (native-inputs
7042 `(("autoconf" ,autoconf)
7043 ("automake" ,automake)
7044 ("uglify-js" ,uglify-js)
7045 ("pkg-config" ,pkg-config)))
7046 (inputs
7047 `(("guix" ,guix)))
7048 (propagated-inputs
7049 `(("guile" ,guile-2.2)
7050 ("guile-commonmark" ,guile-commonmark)
7051 ("guile-json" ,guile-json-3)))
7052 (home-page "https://github.com/UMCUGenetics/hpcguix-web")
7053 (synopsis "Web interface for cluster deployments of Guix")
7054 (description "Hpcguix-web provides a web interface to the list of packages
7055 provided by Guix. The list of packages is searchable and provides
7056 instructions on how to use Guix in a shared HPC environment.")
7057 (license license:agpl3+))))
7058
7059 (define-public httrack
7060 (package
7061 (name "httrack")
7062 (version "3.49.2")
7063 (source (origin
7064 (method url-fetch)
7065 (uri (string-append "https://mirror.httrack.com/historical/"
7066 "httrack-" version ".tar.gz"))
7067 (sha256
7068 (base32
7069 "09a0gm67nml86qby1k1gh7rdxamnrnzwr6l9r5iiq94favjs0xrl"))))
7070 (build-system gnu-build-system)
7071 (inputs
7072 `(("libressl" ,libressl)
7073 ("zlib" ,zlib)))
7074 (home-page "https://www.httrack.com/")
7075 (synopsis "Easy-to-use offline browser utility")
7076 (description "HTTrack allows you to download a World Wide Web site from
7077 the Internet to a local directory, building recursively all directories,
7078 getting HTML, images, and other files from the server to your computer.
7079
7080 HTTrack arranges the original site's relative link-structure. Simply open
7081 a page of the ``mirrored'' website in your browser, and you can browse the
7082 site from link to link, as if you were viewing it online. HTTrack can also
7083 update an existing mirrored site, and resume interrupted downloads.
7084
7085 HTTrack is fully configurable, and has an integrated help system.")
7086 (license license:gpl3+)))
7087
7088 (define-public anonip
7089 (package
7090 (name "anonip")
7091 (version "1.0.0")
7092 (source (origin
7093 (method url-fetch)
7094 (uri (pypi-uri "anonip" version))
7095 (sha256
7096 (base32
7097 "0ckn9nnfhpdnz8b92q8pkysdqj6pdh71ckfqvfj0z01cq0hzbhd2"))))
7098 (build-system python-build-system)
7099 (home-page "https://github.com/DigitaleGesellschaft/Anonip")
7100 (synopsis "Anonymize IP addresses in log files")
7101 (description
7102 "Anonip masks the last bits of IPv4 and IPv6 addresses in log files.
7103 That way most of the relevant information is preserved, while the IP address
7104 does not match a particular individuum anymore.
7105
7106 Depending on your Web server, the log entries may be piped to Anonip directly
7107 or via a FIFO (named pipe). Thus the unmasked IP addresses will never be
7108 written to any file.
7109
7110 It's also possible to rewrite existing log files.
7111
7112 Anonip can also be uses as a Python module in your own Python application.")
7113 (license license:bsd-3)))
7114
7115 (define-public poussetaches
7116 (package
7117 (name "poussetaches")
7118 (version "0.0.2")
7119 (source
7120 (origin
7121 (method git-fetch)
7122 (uri (git-reference
7123 (url "https://github.com/tsileo/poussetaches")
7124 (commit version)))
7125 (file-name (git-file-name name version))
7126 (sha256
7127 (base32
7128 "0kckcwvqklavd855np9aq5js6mg84isrlwchr504yigwma0sm7hm"))))
7129 (build-system go-build-system)
7130 (propagated-inputs
7131 `(("go-github-com-robfig-cron" ,go-github-com-robfig-cron)
7132 ("go-golang-org-x-time" ,go-golang-org-x-time)))
7133 (arguments
7134 `(#:import-path "github.com/tsileo/poussetaches"))
7135 (home-page "https://github.com/tsileo/poussetaches")
7136 (synopsis "Lightweight asynchronous task execution service")
7137 (description "Poussetaches (which literally means \"push tasks\" in
7138 French) is a lightweight asynchronous task execution service that aims to
7139 replace Celery and RabbitMQ for small Python applications.
7140
7141 The app posts base64-encoded payload to poussetaches and specifies the
7142 endpoint that will be used to trigger the task. Poussetaches makes HTTP
7143 requests with the registered payload until the right status code is
7144 returned.")
7145 (license license:isc)))
7146
7147 (define-public htmlcxx
7148 (package
7149 (name "htmlcxx")
7150 (version "0.87")
7151 (source
7152 (origin
7153 (method url-fetch)
7154 (uri
7155 (string-append "mirror://sourceforge/htmlcxx/v"
7156 version "/htmlcxx-" version ".tar.gz"))
7157 (sha256
7158 (base32 "1j3mzjlczjrk4ahc43s6kzpvzypzjmqz4sillnca5yadrwwgjf2x"))))
7159 (build-system gnu-build-system)
7160 (home-page "http://htmlcxx.sourceforge.net/")
7161 (synopsis "Simple non-validating CSS1 and HTML parser for C++")
7162 (description "htmlcxx is a simple non-validating CSS1 and HTML parser for
7163 C++. Although there are several other HTML parsers available, htmlcxx has some
7164 characteristics that make it unique:
7165 @itemize
7166 @item STL like navigation of DOM tree, using excelent's tree.hh library from
7167 Kasper Peeters
7168 @item It is possible to reproduce exactly, character by character, the original
7169 document from the parse tree
7170 @item Bundled CSS parser
7171 @item Optional parsing of attributes
7172 @item C++ code that looks like C++ (not so true anymore)
7173 @item Offsets of tags/elements in the original document are stored in the nodes
7174 of the DOM tree
7175 @end itemize")
7176 (license (list license:lgpl2.0
7177 license:gpl2
7178 license:asl2.0))))