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