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