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