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