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 Ludovic Courtès <ludo@gnu.org>
5 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2018 Raoul Jean Pierre Bonnal <ilpuccio.febo@gmail.com>
8 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
9 ;;; Copyright © 2015, 2016, 2017, 2018 Eric Bavier <bavier@member.fsf.org>
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 Efraim Flashner <efraim@flashner.co.il>
14 ;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
15 ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
16 ;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
17 ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
18 ;;; Copyright © 2016, 2017, 2018, 2019 Arun Isaac <arunisaac@systemreboot.net>
19 ;;; Copyright © 2016, 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
20 ;;; Copyright © 2016 Bake Timmons <b3timmons@speedymail.org>
21 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
22 ;;; Copyright © 2017, 2018 Marius Bakke <mbakke@fastmail.com>
23 ;;; Copyright © 2017 Kei Kebreau <kkebreau@posteo.net>
24 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
25 ;;; Copyright © 2017 Pierre Langlois <pierre.langlois@gmx.com>
26 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
27 ;;; Copyright © 2017, 2019 Christopher Baines <mail@cbaines.net>
28 ;;; Copyright © 2018 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>
34 ;;; This file is part of GNU Guix.
36 ;;; GNU Guix is free software; you can redistribute it and/or modify it
37 ;;; under the terms of the GNU General Public License as published by
38 ;;; the Free Software Foundation; either version 3 of the License, or (at
39 ;;; your option) any later version.
41 ;;; GNU Guix is distributed in the hope that it will be useful, but
42 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
43 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44 ;;; GNU General Public License for more details.
46 ;;; You should have received a copy of the GNU General Public License
47 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
49 (define-module (gnu packages web)
50 #:use-module (ice-9 match)
51 #:use-module ((guix licenses) #:prefix l:)
52 #:use-module (guix packages)
53 #:use-module (guix download)
54 #:use-module (guix git-download)
55 #:use-module (guix cvs-download)
56 #:use-module (guix hg-download)
57 #:use-module (guix utils)
58 #:use-module (guix build-system gnu)
59 #:use-module (guix build-system glib-or-gtk)
60 #:use-module (guix build-system perl)
61 #:use-module (guix build-system cmake)
62 #:use-module (guix build-system trivial)
63 #:use-module (guix build-system python)
64 #:use-module (guix build-system ant)
65 #:use-module (guix build-system scons)
66 #:use-module (gnu packages)
67 #:use-module (gnu packages admin)
68 #:use-module (gnu packages adns)
69 #:use-module (gnu packages apr)
70 #:use-module (gnu packages check)
71 #:use-module (gnu packages documentation)
72 #:use-module (gnu packages docbook)
73 #:use-module (gnu packages autotools)
74 #:use-module (gnu packages compression)
75 #:use-module (gnu packages cyrus-sasl)
76 #:use-module (gnu packages databases)
77 #:use-module (gnu packages bison)
78 #:use-module (gnu packages flex)
79 #:use-module (gnu packages freedesktop)
80 #:use-module (gnu packages kerberos)
81 #:use-module (gnu packages gcc)
82 #:use-module (gnu packages gd)
83 #:use-module (gnu packages gettext)
84 #:use-module (gnu packages glib)
85 #:use-module (gnu packages gnome)
86 #:use-module (gnu packages gnu-doc)
87 #:use-module (gnu packages gnupg)
88 #:use-module (gnu packages gnuzilla)
89 #:use-module (gnu packages gperf)
90 #:use-module (gnu packages gtk)
91 #:use-module (gnu packages guile)
92 #:use-module (gnu packages guile-xyz)
93 #:use-module (gnu packages java)
94 #:use-module (gnu packages jemalloc)
95 #:use-module (gnu packages image)
96 #:use-module (gnu packages imagemagick)
97 #:use-module (gnu packages libevent)
98 #:use-module (gnu packages libidn)
99 #:use-module (gnu packages libunistring)
100 #:use-module (gnu packages linux)
101 #:use-module (gnu packages lisp)
102 #:use-module (gnu packages lua)
103 #:use-module (gnu packages markup)
104 #:use-module (gnu packages ncurses)
105 #:use-module (gnu packages openstack)
106 #:use-module (gnu packages base)
107 #:use-module (gnu packages package-management)
108 #:use-module (gnu packages perl)
109 #:use-module (gnu packages perl-check)
110 #:use-module (gnu packages python)
111 #:use-module (gnu packages python-web)
112 #:use-module (gnu packages python-xyz)
113 #:use-module (gnu packages pcre)
114 #:use-module (gnu packages pkg-config)
115 #:use-module (gnu packages qt)
116 #:use-module (gnu packages readline)
117 #:use-module (gnu packages valgrind)
118 #:use-module (gnu packages xml)
119 #:use-module (gnu packages curl)
120 #:use-module (gnu packages texinfo)
121 #:use-module (gnu packages textutils)
122 #:use-module (gnu packages tls)
123 #:use-module (gnu packages version-control))
131 (uri (string-append "mirror://apache/httpd/httpd-"
135 "18ngvsjq65qxk3biggnkhkq8jlll9dsg9n3csra9p99sfw2rvjml"))))
136 (build-system gnu-build-system)
137 (native-inputs `(("pcre" ,pcre "bin"))) ;for 'pcre-config'
138 (inputs `(("apr" ,apr)
139 ("apr-util" ,apr-util)
141 ("perl" ,perl))) ; needed to run bin/apxs
143 `(#:test-target "test"
144 #:configure-flags (list "--enable-rewrite"
146 "--enable-vhost-alias"
148 "--enable-mime-magic"
149 (string-append "--sysconfdir="
150 (assoc-ref %outputs "out")
152 (synopsis "Featureful HTTP server")
154 "The Apache HTTP Server Project is a collaborative software development
155 effort aimed at creating a robust, commercial-grade, featureful, and
156 freely-available source code implementation of an HTTP (Web) server. The
157 project is jointly managed by a group of volunteers located around the world,
158 using the Internet and the Web to communicate, plan, and develop the server
159 and its related documentation.")
161 (home-page "https://httpd.apache.org/")))
163 (define-public mod-wsgi
170 (url "https://github.com/GrahamDumpleton/mod_wsgi.git")
172 (file-name (git-file-name name version))
175 "1q90xw2cbhka5gcd6yc69iir73x4gm7fm75qpkins2ryfl6w1q3f"))))
176 (build-system gnu-build-system)
178 '(#:tests? #f ; TODO: can't figure out if there are tests
180 (string-append "DESTDIR="
181 (assoc-ref %outputs "out"))
182 "LIBEXECDIR=/modules")))
185 ("python" ,python-wrapper)))
186 (synopsis "Apache HTTPD module for Python WSGI applications")
188 "The mod_wsgi module for the Apache HTTPD Server adds support for running
189 applications that support the Python @acronym{WSGI, Web Server Gateway
190 Interface} specification.")
192 (home-page "https://modwsgi.readthedocs.io/")))
197 ;; Track the ‘mainline’ branch. Upstream considers it more reliable than
198 ;; ’stable’ and recommends that “in general you deploy the NGINX mainline
199 ;; branch at all times” (https://www.nginx.com/blog/nginx-1-6-1-7-released/)
200 ;; Consider updating the nginx-documentation package together with this one.
204 (uri (string-append "https://nginx.org/download/nginx-"
208 "0hxfsz1117r91b9fb5hjddyrf1czvb36lh1z7zalqqdskfcbmkz4"))))
209 (build-system gnu-build-system)
210 (inputs `(("openssl" ,openssl)
214 `(#:tests? #f ; no test target
216 (modify-phases %standard-phases
217 (add-before 'configure 'patch-/bin/sh
219 (substitute* "auto/feature"
220 (("/bin/sh") (which "sh")))
223 ;; The configure script is hand-written, not from GNU autotools.
224 (lambda* (#:key outputs #:allow-other-keys)
226 (list (string-append "--prefix=" (assoc-ref outputs "out"))
227 "--with-http_ssl_module"
228 "--with-http_v2_module"
231 ;; Even when not cross-building, we pass the
232 ;; --crossbuild option to avoid customizing for the
233 ;; kernel version on the build machine.
234 ,(let ((system "Linux") ; uname -s
235 (release "3.2.0") ; uname -r
237 (machine (match (or (%current-target-system)
239 ("x86_64-linux" "x86_64")
240 ("i686-linux" "i686")
241 ("mips64el-linux" "mips64")
242 ;; Prevent errors when querying
243 ;; this package on unsupported
244 ;; platforms, e.g. when running
245 ;; "guix package --search="
247 (string-append "--crossbuild="
248 system ":" release ":" machine)))))
250 (format #t "environment variable `CC' set to `gcc'~%")
251 (format #t "configure flags: ~s~%" flags)
252 (apply invoke "./configure" flags)
254 (add-after 'install 'install-man-page
255 (lambda* (#:key outputs #:allow-other-keys)
256 (let* ((out (assoc-ref outputs "out"))
257 (man (string-append out "/share/man")))
258 (install-file "objs/nginx.8" (string-append man "/man8"))
260 (add-after 'install 'fix-root-dirs
261 (lambda* (#:key outputs #:allow-other-keys)
262 ;; 'make install' puts things in strange places, so we need to
263 ;; clean it up ourselves.
264 (let* ((out (assoc-ref outputs "out"))
265 (share (string-append out "/share/nginx")))
266 ;; This directory is empty, so get rid of it.
267 (rmdir (string-append out "/logs"))
268 ;; Example configuration and HTML files belong in
271 (rename-file (string-append out "/conf")
272 (string-append share "/conf"))
273 (rename-file (string-append out "/html")
274 (string-append share "/html"))
276 (home-page "https://nginx.org")
277 (synopsis "HTTP and reverse proxy server")
279 "Nginx (\"engine X\") is a high-performance web and reverse proxy server
280 created by Igor Sysoev. It can be used both as a stand-alone web server
281 and as a proxy to reduce the load on back-end HTTP or mail servers.")
282 ;; Almost all of nginx is distributed under the bsd-2 license.
283 ;; The exceptions are:
284 ;; * The 'nginx-http-push' module is covered by the expat license.
285 ;; * The 'nginx-development-kit' module is mostly covered by bsd-3,
286 ;; except for two source files which are bsd-4 licensed.
287 (license (list l:bsd-2 l:expat l:bsd-3 l:bsd-4))))
289 (define nginx-xslscript
291 (changeset "01dc9ba12e1b"))
293 (name "nginx-xslscript")
295 (simple-format #f "2014-03-31-~A-~A" revision changeset))
299 (url "http://hg.nginx.org/xslscript")
300 (changeset changeset)))
301 (file-name (string-append name "-" version))
304 "0am8zvdx3jmiwkg5q07qjaw5r26r4i2v5i4yr8a1k0jgib6ii08g"))))
305 (build-system gnu-build-system)
307 '(#:tests? #f ; No test suite
309 (modify-phases %standard-phases
313 (lambda* (#:key outputs #:allow-other-keys)
314 (let ((out-bin (string-append
315 (assoc-ref outputs "out")
318 (copy-file "xslscript.pl"
323 (home-page "http://hg.nginx.org/xslscript")
324 (synopsis "XSLScript with NGinx specific modifications")
326 "XSLScript is a terse notation for writing complex XSLT stylesheets.
327 This is modified version, specifically intended for use with the NGinx
331 (define-public nginx-documentation
332 ;; This documentation should be relevant for nginx@1.15.9.
333 (let ((revision 2345)
334 (changeset "7ef11708457e"))
336 (name "nginx-documentation")
338 (simple-format #f "2019-03-01-~A-~A" revision changeset))
340 (origin (method hg-fetch)
342 (url "http://hg.nginx.org/nginx.org")
343 (changeset changeset)))
344 (file-name (string-append name "-" version))
347 "15975jvh53mnsgi4hhgrwdwy3by23v4kxnhy2vnkziq8v7wkmy4y"))))
348 (build-system gnu-build-system)
350 '(#:tests? #f ; no test suite
352 (modify-phases %standard-phases
353 (delete 'configure) ; no configure script
355 (lambda* (#:key outputs #:allow-other-keys)
356 (let ((output (assoc-ref outputs "out")))
357 (substitute* "umasked.sh"
358 ((" /bin/sh") (string-append " " (which "sh"))))
359 ;; The documentation includes a banner, which makes sense on
360 ;; the NGinx website, but doesn't make much sense when
361 ;; viewing locally. Therefore, modify the CSS to remove the
363 (substitute* "xslt/style.xslt"
364 (("#banner \\{ background: black;")
365 "#banner { display: none;"))
369 (lambda* (#:key outputs #:allow-other-keys)
370 (let ((output (assoc-ref outputs "out")))
372 (copy-recursively "libxslt" output)
375 `(("libxml2" ,libxml2)
377 ("nginx-xslscript" ,nginx-xslscript)))
378 (home-page "https://nginx.org")
379 (synopsis "Documentation for the nginx web server")
381 "This package provides HTML documentation for the nginx web server.")
391 ;; Upstream has disappeared.
392 (uri (string-append "https://sources.archlinux.org/other/packages/fcgi/"
393 "fcgi-" version ".tar.gz"))
396 "1f857wnl1d6jfrgfgfpz3zdaj8fch3vr13mnpcpvy8bang34bz36"))
397 (patches (search-patches "fcgi-2.4.0-poll.patch"
398 "fcgi-2.4.0-gcc44-fixes.patch"))))
399 (build-system gnu-build-system)
400 ;; Parallel building is not supported.
401 (arguments `(#:parallel-build? #f))
402 ;; This is an archived fork of the original home page, www.fastcgi.com.
403 (home-page "https://fastcgi-archives.github.io/")
404 (synopsis "Language-independent, high-performant extension to CGI")
405 (description "FastCGI is a language-independent, scalable extension to CGI
406 that provides high performance without the limitations of server specific
408 ;; This package is released under the Open Market License, a variant of
409 ;; the Expat license, incompatible with the GPL.
410 (license (l:non-copyleft "file://LICENSE.TERMS"))))
412 (define-public fcgiwrap
420 (url "https://github.com/gnosek/fcgiwrap.git")
422 (file-name (git-file-name name version))
424 (base32 "1ryw66h9aazi83amk8l7ha8k5g0c7qvk5g6jv376a1ws9xk2qw6f"))))
425 (build-system gnu-build-system)
427 `(#:tests? #f ; no tests included
428 #:make-flags (list "CC=gcc")))
430 `(("autoconf" ,autoconf)
431 ("automake" ,automake)
432 ("pkg-config" ,pkg-config)))
435 (home-page "https://nginx.localdomain.pl/wiki/FcgiWrap")
436 (synopsis "Simple server for running CGI applications over FastCGI")
437 (description "Fcgiwrap is a simple server for running CGI applications
438 over FastCGI. It hopes to provide clean CGI support to Nginx (and other web
439 servers that may need it).")
442 (define-public starman
449 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
450 "Starman-" version ".tar.gz"))
453 "1sbb5rb3vs82rlh1fjkgkcmj5pj62b4y9si4ihh45sl9m8c2qxx5"))))
454 (build-system perl-build-system)
456 `(("perl-libwww" ,perl-libwww)
457 ("perl-module-build-tiny" ,perl-module-build-tiny)
458 ("perl-test-requires" ,perl-test-requires)))
460 `(("perl-data-dump" ,perl-data-dump)
461 ("perl-http-date" ,perl-http-date)
462 ("perl-http-message" ,perl-http-message)
463 ("perl-http-parser-xs" ,perl-http-parser-xs)
464 ("perl-net-server" ,perl-net-server)
465 ("perl-plack" ,perl-plack)
466 ("perl-test-tcp" ,perl-test-tcp)))
467 (home-page "https://metacpan.org/release/Starman")
468 (synopsis "PSGI/Plack web server")
469 (description "Starman is a PSGI perl web server that has unique features
470 such as high performance, preforking, signal support, superdaemon awareness,
471 and UNIX socket support.")
472 (license l:perl-license)))
474 (define-public icedtea-web
481 "http://icedtea.wildebeest.org/download/source/"
482 name "-" version ".tar.gz"))
485 "004kwrngyxxlrlzby4vzxjr0xcyngcdc9dfgnvi61ffnjr006ryf"))))
486 (build-system gnu-build-system)
489 (list "--disable-plugin" ;NPAPI plugins are obsolete nowadays.
490 (string-append "BIN_BASH=" (assoc-ref %build-inputs "bash")
492 (string-append "--with-jdk-home=" (assoc-ref %build-inputs "jdk")))))
493 (outputs '("out" "doc"))
495 `(("pkg-config" ,pkg-config)
499 ("jdk" ,icedtea "jdk")))
500 (home-page "http://icedtea.classpath.org/wiki/IcedTea-Web")
501 (synopsis "Java Web Start")
503 "IcedTea-Web is an implementation of the @dfn{Java Network Launching
504 Protocol}, also known as Java Web Start. This package provides tools and
505 libraries for working with JNLP applets.")
506 ;; The program is mainly GPL2+, with some individual files under LGPL2.1+
510 (define-public jansson
517 (string-append "http://www.digip.org/jansson/releases/jansson-"
521 "1lp1mv8pjp5yziws66cy0dhpcam4bbjqhffk13v4vgdybp674pb4"))))
522 (build-system gnu-build-system)
524 `(#:configure-flags '("--disable-static")))
525 (home-page "http://www.digip.org/jansson/")
526 (synopsis "JSON C library")
528 "Jansson is a C library for encoding, decoding and manipulating JSON
532 (define-public json-c
539 "https://s3.amazonaws.com/json-c_releases/releases/json-c-"
543 "0ws8dz9nk8q2c0gbf66kg2r6mrkl7kamd3gpdv9zsyrz9n6n0zmq"))
544 (modules '((guix build utils)))
547 ;; Somehow 'config.h.in' is older than
548 ;; 'aclocal.m4', which would trigger a rule to
550 (set-file-time "config.h.in"
553 (build-system gnu-build-system)
554 (home-page "https://github.com/json-c/json-c/wiki")
555 (synopsis "JSON implementation in C")
557 "JSON-C implements a reference counting object model that allows you to
558 easily construct JSON objects in C, output them as JSON-formatted strings and
559 parse JSON-formatted strings back into the C representation of JSON objects.
560 It aims to conform to RFC 7159.")
563 ;; TODO: remove this old version when all dependents have been updated.
564 (define-public json-c-0.12
571 "https://s3.amazonaws.com/json-c_releases/releases/json-c-"
574 (base32 "08qibrq29a5v7g23wi5icy6l4fbfw90h9ccps6vq0bcklx8n84ra"))
575 (modules '((guix build utils)))
578 ;; Somehow 'config.h.in' is older than
579 ;; 'aclocal.m4', which would trigger a rule to
581 (set-file-time "config.h.in"
584 ;; Don't try to build with -Werror.
585 (substitute* (find-files "." "Makefile\\.in")
589 (define-public json-parser
594 ;; do not use auto-generated tarballs
597 (url "https://github.com/udp/json-parser.git")
598 (commit (string-append "v" version))))
599 (file-name (git-file-name name version))
602 "1ls7z4fx0sq633s5bc0j1gh36sv087gmrgr7rza22wjq2d4606yf"))))
603 ;; FIXME: we should build the python bindings in a separate package
604 (build-system gnu-build-system)
605 ;; the tests are written for the python bindings which are not built here
606 (arguments '(#:tests? #f))
607 (home-page "https://github.com/udp/json-parser")
608 (synopsis "JSON parser written in ANSI C")
609 (description "This package provides a very low footprint JSON parser
610 written in portable ANSI C.
613 @item BSD licensed with no dependencies (i.e. just drop the C file into your
615 @item Never recurses or allocates more memory than it needs
616 @item Very simple API with operator sugar for C++
627 (url "https://github.com/flavio/qjson.git")
629 (file-name (git-file-name name version))
632 "1f4wnxzx0qdmxzc7hqk28m0sva7z9p9xmxm6aifvjlp0ha6pmfxs"))))
633 (build-system cmake-build-system)
635 ;; The tests require a running X server.
636 `(#:configure-flags '("-DQJSON_BUILD_TESTS=ON"
637 "-DCMAKE_CXX_FLAGS=-std=gnu++11 -fPIC")
639 (modify-phases %standard-phases
640 (add-after 'unpack 'disable-broken-test
642 ;; FIXME: One test fails. See
643 ;; https://github.com/flavio/qjson/issues/105
644 (substitute* "tests/scanner/testscanner.cpp"
645 (("QTest::newRow\\(\"too large exponential\"\\)" line)
646 (string-append "//" line)))
648 (add-before 'check 'render-offscreen
649 (lambda _ (setenv "QT_QPA_PLATFORM" "offscreen") #t)))))
651 `(("qtbase" ,qtbase)))
652 (home-page "http://qjson.sourceforge.net")
653 (synopsis "Library that maps JSON data to QVariant objects")
654 (description "QJson is a Qt-based library that maps JSON data to
655 @code{QVariant} objects. JSON arrays will be mapped to @code{QVariantList}
656 instances, while JSON's objects will be mapped to @code{QVariantMap}.")
657 ;; Only version 2.1 of the license
658 (license l:lgpl2.1)))
660 (define-public krona-tools
667 "https://github.com/marbl/Krona/releases/download/v"
668 version "/KronaTools-" version ".tar"))
671 "0wvgllcqscsfb4xc09y3fqhx8i38pmr4w55vjs5y79wx56n710iq"))))
672 (build-system perl-build-system)
675 (modify-phases %standard-phases
676 ;; There is no configure or build steps.
679 ;; Install script "install.pl" expects the build directory to remain
680 ;; after installation, creating symlinks etc., so re-implement it
683 (lambda* (#:key outputs #:allow-other-keys)
684 (let ((bin (string-append (assoc-ref outputs "out") "/bin"))
685 (perl (string-append (assoc-ref outputs "out")
686 "/lib/perl5/site_perl/krona-tools/lib")))
690 (let* ((executable (string-append "scripts/" script ".pl")))
691 ;; Prefix executables with 'kt' as install script does.
692 (copy-file executable (string-append bin "/kt" script))))
694 "GetContigMagnitudes"
704 "ImportMETAREP-BLAST"
709 "ImportRDPComparison"
715 (copy-recursively directory
716 (string-append perl "/../" directory)))
717 (list "data" "img" "taxonomy" "src"))
718 (install-file "lib/KronaTools.pm" perl))))
719 (add-after 'install 'wrap-program
720 (lambda* (#:key inputs outputs #:allow-other-keys)
721 (let* ((out (assoc-ref outputs "out"))
722 (path (getenv "PERL5LIB")))
725 (wrap-program executable
726 `("PERL5LIB" ":" prefix
727 (,(string-append out "/lib/perl5/site_perl/krona-tools/lib")))))
728 (find-files (string-append out "/bin/") ".*")))))
730 (add-after 'wrap-program 'check
731 (lambda* (#:key inputs outputs #:allow-other-keys)
732 (with-directory-excursion "data"
733 (invoke (string-append (assoc-ref outputs "out") "/bin/ktImportText")
737 (home-page "https://github.com/marbl/Krona/wiki")
738 (synopsis "Hierarchical data exploration with zoomable HTML5 pie charts")
740 "Krona is a flexible tool for exploring the relative proportions of
741 hierarchical data, such as metagenomic classifications, using a radial,
742 space-filling display. It is implemented using HTML5 and JavaScript, allowing
743 charts to be explored locally or served over the Internet, requiring only a
744 current version of any major web browser.")
747 (define-public rapidjson
754 (url "https://github.com/Tencent/rapidjson.git")
755 (commit (string-append "v" version))))
756 (file-name (git-file-name name version))
759 "1jixgb8w97l9gdh3inihz7avz7i770gy2j2irvvlyrq3wi41f5ab"))
760 (modules '((guix build utils)))
763 ;; Remove code using the problematic JSON license (see
764 ;; <https://www.gnu.org/licenses/license-list.html#JSON>).
765 (delete-file-recursively "bin/jsonchecker")
767 (build-system cmake-build-system)
769 (if (string-prefix? "aarch64" (or (%current-target-system)
772 (modify-phases %standard-phases
773 (add-after 'unpack 'patch-aarch-march-detection
775 (substitute* (find-files "." "^CMakeLists\\.txt$")
776 (("native") "armv8-a"))
778 ;; Disable CPU optimization for reproducibility.
779 '(#:configure-flags '("-DRAPIDJSON_ENABLE_INSTRUMENTATION_OPT=OFF"))))
780 (home-page "https://github.com/Tencent/rapidjson")
781 (synopsis "JSON parser/generator for C++ with both SAX/DOM style API")
783 "RapidJSON is a fast JSON parser/generator for C++ with both SAX/DOM
787 (define-public libyajl
794 (url "https://github.com/lloyd/yajl.git")
796 (file-name (git-file-name name version))
799 "00yj06drb6izcxfxfqlhimlrb089kka0w0x8k27pyzyiq7qzcvml"))))
800 (build-system cmake-build-system)
803 (modify-phases %standard-phases
804 (add-after 'patch-source-shebangs 'patch-tests
806 (substitute* "test/parsing/run_tests.sh"
807 (("`which echo`") (which "echo")))
809 (home-page "https://lloyd.github.io/yajl/")
810 (synopsis "C library for parsing JSON")
812 "Yet Another JSON Library (YAJL) is a small event-driven (SAX-style) JSON
813 parser written in ANSI C and a small validating JSON generator.")
816 (define-public libwebsockets
818 (name "libwebsockets")
821 ;; The project does not publish tarballs, so we have to take
825 (url "https://github.com/warmcat/libwebsockets.git")
826 (commit (string-append "v" version
827 "-chrome37-firefox30"))))
830 "12fqh2d2098mgf0ls19p9lzibpsqhv7mc5rn1yvrbfnazmcr40g4"))
831 (file-name (string-append name "-" version))))
833 (build-system cmake-build-system)
835 ;; XXX: The thing lacks a 'make test' target, because CMakeLists.txt
836 ;; doesn't use 'add_test', and it's unclear how to run the test suite.
839 (native-inputs `(("perl" ,perl))) ; to build the HTML doc
840 (inputs `(("zlib" ,zlib)
841 ("openssl" ,openssl)))
842 (synopsis "WebSockets library written in C")
844 "Libwebsockets is a library that allows C programs to establish client
845 and server WebSockets connections---a protocol layered above HTTP that allows
846 for efficient socket-like bidirectional reliable communication channels.")
847 (home-page "http://libwebsockets.org/")
849 ;; This is LGPLv2.1-only with extra exceptions specified in 'LICENSE'.
850 (license l:lgpl2.1)))
852 (define-public libpsl
858 (uri (string-append "https://github.com/rockdaboot/libpsl/"
859 "releases/download/libpsl-" version
860 "/libpsl-" version ".tar.gz"))
863 "03sn3fbcrmgl9x2f1gc6rbrdlbrnwbhrnkgi733gqb95cvmhmzgq"))))
864 (build-system gnu-build-system)
866 `(("pkg-config" ,pkg-config)))
868 `(("libidn2" ,libidn2)
869 ("libunistring" ,libunistring)
870 ("python-2" ,python-2)))
871 (home-page "https://github.com/rockdaboot/libpsl")
872 (synopsis "C library for the Publix Suffix List")
874 "A \"public suffix\" is a domain name under which Internet users can
875 directly register own names.
877 Browsers and other web clients can use it to avoid privacy-leaking
878 \"supercookies\", avoid privacy-leaking \"super domain\" certificates, domain
879 highlighting parts of the domain in a user interface, and sorting domain lists
882 Libpsl has built-in PSL data for fast access, allows to load PSL data from
883 files, checks if a given domain is a public suffix, provides immediate cookie
884 domain verification, finds the longest public part of a given domain, finds
885 the shortest private part of a given domain, works with international
886 domains (UTF-8 and IDNA2008 Punycode), is thread-safe, and handles IDNA2008
898 ":pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy")
900 (revision "2009-12-23")))
901 (file-name (string-append name "-" version "-checkout"))
904 "14dsnmirjcrvwsffqp3as70qr6bbfaig2fv3zvs5g7005jrsbvpb"))
905 (patches (search-patches "tidy-CVE-2015-5522+5523.patch"))))
906 (build-system gnu-build-system)
908 '(#:phases (modify-phases %standard-phases
910 (lambda* (#:key inputs #:allow-other-keys)
911 ;; configure.in and Makefile.am aren't in the root of the
913 (copy-recursively "build/gnuauto" ".")
914 (setenv "AUTOMAKE" "automake --foreign")
915 (invoke "autoreconf" "-vfi"))))))
917 `(("automake" ,automake)
918 ("autoconf" ,autoconf)
919 ("libtool" ,libtool)))
920 (synopsis "HTML validator and tidier")
921 (description "HTML Tidy is a command-line tool and C library that can be
922 used to validate and fix HTML data.")
923 (home-page "http://tidy.sourceforge.net/")
924 (license (l:x11-style "file:///include/tidy.h"))))
926 (define-public tinyproxy
932 (uri (string-append "https://github.com/tinyproxy/tinyproxy/"
933 "releases/download/" version "/tinyproxy-"
937 "10jnk6y2swld25mm47mjc0nkffyzsfysnsxwr7cs0ns1kil8ggjr"))))
938 (build-system gnu-build-system)
942 ;; For the log file, etc.
943 "--localstatedir=/var")
945 (modify-phases %standard-phases
946 (add-before 'build 'pre-build
947 (lambda* (#:key inputs #:allow-other-keys #:rest args)
948 ;; Uncommenting the next two lines may assist in debugging
949 ;; (substitute* "docs/man5/Makefile" (("a2x") "a2x -v"))
950 ;; (setenv "XML_DEBUG_CATALOG" "1")
952 (home-page "https://tinyproxy.github.io/")
953 (synopsis "Light-weight HTTP/HTTPS proxy daemon")
954 (description "Tinyproxy is a light-weight HTTP/HTTPS proxy
955 daemon. Designed from the ground up to be fast and yet small, it is an ideal
956 solution for use cases such as embedded deployments where a full featured HTTP
957 proxy is required, but the system resources for a larger proxy are
961 (define-public polipo
969 "http://www.pps.univ-paris-diderot.fr/~jch/software/files/polipo/polipo-"
973 "05g09sg9qkkhnc2mxldm1w1xkxzs2ylybkjzs28w8ydbjc3pand2"))))
974 (native-inputs `(("texinfo" ,texinfo)))
975 (build-system gnu-build-system)
977 `(#:phases (modify-phases %standard-phases
979 #:make-flags (let ((out (assoc-ref %outputs "out")))
980 (list (string-append "PREFIX=" out)
981 (string-append "LOCAL_ROOT="
982 out "/share/polipo/www")
984 ;; No 'check' target.
986 (home-page "http://www.pps.univ-paris-diderot.fr/~jch/software/polipo/")
987 (synopsis "Small caching web proxy")
989 "Polipo is a small caching web proxy (web cache, HTTP proxy, and proxy
990 server). It was primarily designed to be used by one person or a small group
994 (define-public websockify
1001 (url "https://github.com/novnc/websockify.git")
1002 (commit (string-append "v" version))))
1003 (file-name (git-file-name name version))
1006 "0pcic8qs0gdwrfjgfaf893jyddaw97wcjm2mmvwn0xyhmy8mbmw1"))))
1007 (build-system python-build-system)
1009 `(#:tests? #f)) ; FIXME: 2 out of 6 tests fail with "ImportError: No module
1010 ; named 'stubout'". The tests can be run by replacing the check phase with
1011 ; the command "python setup.py nosetests --verbosity=3".
1012 (native-inputs `(; Required for tests:
1013 ("python-mox3" ,python-mox3)
1014 ("python-nose" ,python-nose)))
1015 (propagated-inputs `(("python-numpy" ,python-numpy)))
1016 (home-page "https://github.com/novnc/websockify")
1017 (synopsis "WebSockets support for any application/server")
1018 (description "Websockify translates WebSockets traffic to normal socket
1019 traffic. Websockify accepts the WebSockets handshake, parses it, and then
1020 begins forwarding traffic between the client and the target in both
1024 (define-public wwwoffle
1030 (uri (string-append "https://www.gedanken.org.uk/software/"
1031 "wwwoffle/download/wwwoffle-"
1035 "1ihil1xq9dp21hf108khxbw6f3baq0w5c0j3af038y6lkmad4vdi"))))
1036 (build-system gnu-build-system)
1038 `(#:configure-flags '("--with-gnutls")
1039 #:tests? #f)) ; no test target
1040 (native-inputs `(("flex" ,flex)))
1041 (inputs `(("gnutls" ,gnutls)
1042 ("libcrypt" ,libgcrypt)))
1043 (home-page "https://www.gedanken.org.uk/software/wwwoffle/")
1044 (synopsis "Caching web proxy optimized for intermittent internet links")
1045 (description "WWWOFFLE is a proxy web server that is especially good for
1046 intermittent internet links. It can cache HTTP, HTTPS, FTP, and finger
1047 protocols, and supports browsing and requesting pages while offline, indexing,
1048 modifying pages and incoming and outgoing headers, monitoring pages for
1049 changes, and much more.")
1052 (define-public liboauth
1058 (uri (string-append "mirror://sourceforge/liboauth/liboauth-"
1062 "07w1aq8y8wld43wmbk2q8134p3bfkp2vma78mmsfgw2jn1bh3xhd"))))
1063 (build-system gnu-build-system)
1064 (arguments '(#:configure-flags '("--enable-nss")))
1065 (native-inputs `(("pkg-config" ,pkg-config)))
1069 (home-page "https://sourceforge.net/projects/liboauth")
1070 (synopsis "C library implementing the OAuth API")
1072 "liboauth is a collection of C functions implementing the OAuth API.
1073 liboauth provides functions to escape and encode strings according to OAuth
1074 specifications and offers high-level functionality built on top to sign
1075 requests or verify signatures using either NSS or OpenSSL for calculating the
1077 ;; Source code may be distributed under either license.
1078 (license (list l:expat l:gpl2+))))
1080 (define-public libyaml
1088 "http://pyyaml.org/download/libyaml/yaml-"
1092 "0a87931cx5m14a1x8rbjix3nz7agrcgndf4h392vm62a4rby9240"))))
1093 (build-system gnu-build-system)
1094 (home-page "http://pyyaml.org/wiki/LibYAML")
1095 (synopsis "YAML 1.1 parser and emitter written in C")
1097 "LibYAML is a YAML 1.1 parser and emitter written in C.")
1100 (define-public libquvi-scripts
1102 (name "libquvi-scripts")
1108 "mirror://sourceforge/quvi/" (version-major+minor version) "/"
1109 name "/" name "-" version ".tar.xz"))
1111 (base32 "0d0giry6bb57pnidymvdl7i5x9bq3ljk3g4bs294hcr5mj3cq0kw"))))
1112 (build-system gnu-build-system)
1113 (home-page "http://quvi.sourceforge.net/")
1114 (synopsis "Media stream URL parser")
1115 (description "This package contains support scripts called by libquvi to
1116 parse media stream properties.")
1117 (license l:lgpl2.1+)))
1119 (define-public libquvi
1127 "mirror://sourceforge/quvi/" (version-major+minor version) "/" name "/"
1128 name "-" version ".tar.xz"))
1130 (base32 "00x9gbmzc5cns0gnfag0hsphcr3cb33vbbb9s7ppvvd6bxz2z1mm"))))
1131 (build-system gnu-build-system)
1132 (native-inputs `(("pkg-config" ,pkg-config)))
1135 ("cyrus-sasl" ,cyrus-sasl)
1136 ("libquvi-scripts" ,libquvi-scripts)
1138 ("openssl" ,openssl)
1141 ;; Lua provides no .pc file, so add CFLAGS/LIBS manually.
1143 (let ((lua (assoc-ref %build-inputs "lua")))
1145 (string-append "liblua_CFLAGS=-I" lua "/include")
1146 (string-append "liblua_LIBS=-L" lua "/libs -llua")))))
1147 (home-page "http://quvi.sourceforge.net/")
1148 (synopsis "Media stream URL parser")
1149 (description "libquvi is a library with a C API for parsing media stream
1150 URLs and extracting their actual media files.")
1151 (license l:lgpl2.1+)))
1161 "mirror://sourceforge/" name "/" (version-major+minor version)
1162 "/" name "/" name "-" version ".tar.xz"))
1164 (base32 "09lhl6dv5zpryasx7yjslfrcdcqlsbwapvd5lg7w6sm5x5n3k8ci"))))
1165 (build-system gnu-build-system)
1166 (native-inputs `(("pkg-config" ,pkg-config)))
1169 ("libquvi" ,libquvi)))
1170 (home-page "http://quvi.sourceforge.net/")
1171 (synopsis "Media stream URL parser")
1172 (description "quvi is a command-line-tool suite to extract media files
1173 from streaming URLs. It is a command-line wrapper for the libquvi library.")
1174 (license l:lgpl2.1+)))
1183 (uri (string-append "https://archive.apache.org/dist/serf/serf-"
1184 version ".tar.bz2"))
1186 (base32 "1k47gbgpp52049andr28y28nbwh9m36bbb0g8p0aka3pqlhjv72l"))))
1187 (build-system scons-build-system)
1190 ("apr-util" ,apr-util)
1191 ("openssl" ,openssl)))
1193 `(;; TODO: Fix build with gss.
1197 `(#:scons ,scons-python2
1198 #:scons-flags (list (string-append "APR=" (assoc-ref %build-inputs "apr"))
1199 (string-append "APU=" (assoc-ref %build-inputs "apr-util"))
1200 (string-append "OPENSSL=" (assoc-ref %build-inputs "openssl"))
1201 ;; (string-append "GSSAPI=" (assoc-ref %build-inputs "gss"))
1202 (string-append "ZLIB=" (assoc-ref %build-inputs "zlib"))
1203 (string-append "PREFIX=" %output))
1205 (modify-phases %standard-phases
1206 (add-after 'unpack 'scons-propagate-environment
1208 ;; By design, SCons does not, by default, propagate
1209 ;; environment variables to subprocesses. See:
1210 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
1211 ;; Here, we modify the SConstruct file to arrange for
1212 ;; environment variables to be propagated.
1213 (substitute* "SConstruct"
1214 (("^env = Environment\\(")
1215 "env = Environment(ENV=os.environ, "))))
1216 (add-before 'check 'disable-broken-tests
1218 ;; These tests rely on SSL certificates that expired 2017-04-18.
1219 ;; While there are newer certs available upstream, we don't want
1220 ;; this package to suddenly "expire" some time in the future.
1221 ;; https://bugs.gnu.org/26671
1223 '("test_ssl_trust_rootca"
1224 "test_ssl_certificate_chain_with_anchor"
1225 "test_ssl_certificate_chain_all_from_server"
1226 "test_ssl_no_servercert_callback_allok"
1227 "test_ssl_large_response"
1228 "test_ssl_large_request"
1229 "test_ssl_client_certificate"
1230 "test_ssl_future_server_cert"
1231 "test_setup_ssltunnel"
1232 "test_ssltunnel_basic_auth"
1233 "test_ssltunnel_basic_auth_server_has_keepalive_off"
1234 "test_ssltunnel_basic_auth_proxy_has_keepalive_off"
1235 "test_ssltunnel_basic_auth_proxy_close_conn_on_200resp"
1236 "test_ssltunnel_digest_auth")))
1239 (substitute* "test/test_context.c"
1240 (((string-append "SUITE_ADD_TEST\\(suite, " test "\\);")) "")))
1243 (home-page "https://serf.apache.org/")
1244 (synopsis "High-performance asynchronous HTTP client library")
1246 "serf is a C-based HTTP client library built upon the Apache Portable
1247 Runtime (APR) library. It multiplexes connections, running the read/write
1248 communication asynchronously. Memory copies and transformations are kept to a
1249 minimum to provide high performance operation.")
1250 ;; Most of the code is covered by the Apache License, Version 2.0, but the
1251 ;; bundled CuTest framework uses a different non-copyleft license.
1252 (license (list l:asl2.0 (l:non-copyleft "file://test/CuTest-README.txt")))))
1254 (define-public libsass
1261 (url "https://github.com/sass/libsass.git")
1263 (file-name (git-file-name name version))
1266 "0830pjcvhzxh6yixj82x5k5r1xnadjqzi16kp53213icbly0r9ma"))))
1267 (build-system gnu-build-system)
1270 (modify-phases %standard-phases
1271 (add-before 'bootstrap 'set-LIBSASS_VERSION
1273 (setenv "LIBSASS_VERSION" ,version)
1276 `(("autoconf" ,autoconf)
1277 ("automake" ,automake)
1278 ("libtool" ,libtool)))
1279 (home-page "https://sass-lang.com/libsass")
1280 (synopsis "SASS Compiler, implemented as a C/C++ library")
1282 "LibSass is a @acronym{SASS,Syntactically awesome style sheets} compiler
1283 library designed for portability and efficiency. To actually compile SASS
1284 stylesheets, you'll need to use another program that uses this library,
1285 @var{sassc} for example.")
1288 (define-public sassc
1295 (url "https://github.com/sass/sassc.git")
1297 (file-name (git-file-name name version))
1300 "0jsfz1zg4gwk0dq8i92ll12axs3s70wsdsmdyi71zx8zmvib5nl6"))))
1301 (build-system gnu-build-system)
1305 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1306 ;; I don't believe sassc contains any tests
1309 (modify-phases %standard-phases
1310 (add-after 'unpack 'patch-Makefile
1312 (substitute* "Makefile"
1313 (("build-shared: \\$\\(RESOURCES\\) \\$\\(OBJECTS\\) \\$\\(LIB_SHARED\\)")
1314 "build-shared: $(RESOURCES) $(OBJECTS)")
1315 (("\\$\\(SASSC_EXE\\): libsass build")
1316 "$(SASSC_EXE): build")
1317 (("install: libsass-install-\\$\\(BUILD\\) \\\\")
1320 ;; This phase fails for some reason
1322 ;; There is no configure script
1324 (add-before 'build 'setup-environment
1326 (setenv "BUILD" "shared")
1327 (setenv "SASSC_VERSION" ,version)
1330 `(("libsass" ,libsass)))
1331 (synopsis "CSS pre-processor")
1332 (description "SassC is a compiler written in C for the CSS pre-processor
1333 language known as SASS.")
1334 (home-page "http://sass-lang.com/libsass")
1338 (define-public perl-apache-logformat-compiler
1340 (name "perl-apache-logformat-compiler")
1345 (uri (string-append "mirror://cpan/authors/id/K/KA/KAZEBURO/"
1346 "Apache-LogFormat-Compiler-" version ".tar.gz"))
1348 (base32 "06i70ydxk2wa2rcqn16842kra2qz3jwk0vk1abq8lah4180c0m0n"))))
1349 (build-system perl-build-system)
1351 `(("perl-http-message" ,perl-http-message)
1352 ("perl-module-build-tiny" ,perl-module-build-tiny)
1353 ("perl-test-mocktime" ,perl-test-mocktime)
1354 ("perl-try-tiny" ,perl-try-tiny)
1355 ("perl-uri" ,perl-uri)))
1357 `(("perl-posix-strftime-compiler" ,perl-posix-strftime-compiler)))
1358 (arguments `(#:tests? #f)) ; TODO: Timezone test failures
1359 (home-page "https://metacpan.org/release/Apache-LogFormat-Compiler")
1360 (synopsis "Compile a log format string to perl-code")
1361 (description "This module provides methods to compile a log format string
1362 to perl-code, for faster generation of access_log lines.")
1363 (license l:perl-license)))
1365 (define-public perl-authen-sasl
1367 (name "perl-authen-sasl")
1372 (uri (string-append "mirror://cpan/authors/id/G/GB/GBARR/"
1373 "Authen-SASL-" version ".tar.gz"))
1376 "02afhlrdq5hh5g8b32fa79fqq5i76qzwfqqvfi9zi57h31szl536"))))
1377 (build-system perl-build-system)
1380 (modify-phases %standard-phases
1381 (add-after 'unpack 'set-env
1382 ;; Fix the build with Perl 5.26.0. Try removing this phase for later
1383 ;; versions of perl-authen-sasl.
1384 (lambda _ (setenv "PERL_USE_UNSAFE_INC" "1") #t)))))
1386 `(("perl-digest-hmac" ,perl-digest-hmac)
1387 ("perl-gssapi" ,perl-gssapi)))
1388 (home-page "https://metacpan.org/release/Authen-SASL")
1389 (synopsis "SASL authentication framework")
1390 (description "Authen::SASL provides an SASL authentication framework.")
1391 (license l:perl-license)))
1393 (define-public perl-catalyst-action-renderview
1395 (name "perl-catalyst-action-renderview")
1400 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1401 "Catalyst-Action-RenderView-"
1405 "0j1rrld13cjk7ks92b5hv3xw4rfm2lvmksb4rlzd8mx0a0wj0rc5"))))
1406 (build-system perl-build-system)
1408 `(("perl-http-request-ascgi" ,perl-http-request-ascgi)
1409 ("perl-module-install" ,perl-module-install)))
1411 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1412 ("perl-data-visitor" ,perl-data-visitor)
1413 ("perl-mro-compat" ,perl-mro-compat)))
1414 (home-page "https://metacpan.org/release/Catalyst-Action-RenderView")
1415 (synopsis "Sensible default Catalyst action")
1416 (description "This Catalyst action implements a sensible default end
1417 action, which will forward to the first available view.")
1418 (license l:perl-license)))
1420 (define-public perl-catalyst-action-rest
1422 (name "perl-catalyst-action-rest")
1426 (uri (string-append "mirror://cpan/authors/id/J/JJ/JJNAPIORK/"
1427 "Catalyst-Action-REST-" version ".tar.gz"))
1430 "086bykggzalbjfk0islac4b48g9s2ypj7y81d6ns1lq0aax1py6c"))))
1431 (build-system perl-build-system)
1433 `(("perl-test-requires" ,perl-test-requires)
1434 ("perl-module-install" ,perl-module-install)))
1436 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1437 ("perl-class-inspector" ,perl-class-inspector)
1438 ("perl-config-general" ,perl-config-general)
1439 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
1440 ("perl-libwww" ,perl-libwww)
1441 ("perl-moose" ,perl-moose)
1442 ("perl-mro-compat" ,perl-mro-compat)
1443 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1444 ("perl-params-validate" ,perl-params-validate)
1445 ("perl-uri-find" ,perl-uri-find)
1446 ("perl-xml-simple" ,perl-xml-simple)))
1447 (home-page "https://metacpan.org/release/Catalyst-Action-REST")
1448 (synopsis "Automated REST Method Dispatching")
1449 (description "This Action handles doing automatic method dispatching for
1450 REST requests. It takes a normal Catalyst action, and changes the dispatch to
1451 append an underscore and method name. First it will try dispatching to an
1452 action with the generated name, and failing that it will try to dispatch to a
1454 (license l:perl-license)))
1456 (define-public perl-catalyst-authentication-store-dbix-class
1458 (name "perl-catalyst-authentication-store-dbix-class")
1463 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1464 "Catalyst-Authentication-Store-DBIx-Class-"
1468 "0i5ja7690fs9nhxcij6lw51j804sm8s06m5mvk1n8pi8jljrymvw"))))
1469 (build-system perl-build-system)
1471 `(("perl-catalyst-plugin-authorization-roles"
1472 ,perl-catalyst-plugin-authorization-roles)
1473 ("perl-catalyst-plugin-session-state-cookie"
1474 ,perl-catalyst-plugin-session-state-cookie)
1475 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
1476 ("perl-module-install" ,perl-module-install)
1477 ("perl-test-www-mechanize-catalyst" ,perl-test-www-mechanize-catalyst)))
1479 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1480 ("perl-catalyst-plugin-authentication"
1481 ,perl-catalyst-plugin-authentication)
1482 ("perl-dbix-class" ,perl-dbix-class)
1483 ("perl-catalyst-model-dbic-schema" ,perl-catalyst-model-dbic-schema)))
1485 "https://metacpan.org/release/Catalyst-Authentication-Store-DBIx-Class")
1486 (synopsis "Storage class for Catalyst authentication using DBIx::Class")
1487 (description "The Catalyst::Authentication::Store::DBIx::Class class
1488 provides access to authentication information stored in a database via
1490 (license l:perl-license)))
1492 (define-public perl-catalyst-component-instancepercontext
1494 (name "perl-catalyst-component-instancepercontext")
1495 (version "0.001001")
1499 (uri (string-append "mirror://cpan/authors/id/G/GR/GRODITI/"
1500 "Catalyst-Component-InstancePerContext-"
1504 "0wfj4vnn2cvk6jh62amwlg050p37fcwdgrn9amcz24z6w4qgjqvz"))))
1505 (build-system perl-build-system)
1507 `(("perl-module-install" ,perl-module-install)))
1509 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1510 ("perl-moose" ,perl-moose)))
1512 "https://metacpan.org/release/Catalyst-Component-InstancePerContext")
1513 (synopsis "Create only one instance of Moose component per context")
1514 (description "Catalyst::Component::InstancePerContext returns a new
1515 instance of a component on each request.")
1516 (license l:perl-license)))
1518 (define-public perl-catalyst-devel
1520 (name "perl-catalyst-devel")
1525 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1526 "Catalyst-Devel-" version ".tar.gz"))
1529 "12m50bbkggjmpxihv3wnvr0g2qng0zwhlzi5ygppjz8wh2x73qxw"))))
1530 (build-system perl-build-system)
1532 `(("perl-test-fatal" ,perl-test-fatal)))
1534 `(("perl-catalyst-action-renderview" ,perl-catalyst-action-renderview)
1535 ("perl-catalyst-plugin-configloader" ,perl-catalyst-plugin-configloader)
1536 ("perl-catalyst-plugin-static-simple" ,perl-catalyst-plugin-static-simple)
1537 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1538 ("perl-config-general" ,perl-config-general)
1539 ("perl-file-changenotify" ,perl-file-changenotify)
1540 ("perl-file-copy-recursive" ,perl-file-copy-recursive)
1541 ("perl-file-sharedir" ,perl-file-sharedir)
1542 ("perl-module-install" ,perl-module-install)
1543 ("perl-moose" ,perl-moose)
1544 ("perl-moosex-emulate-class-accessor-fast"
1545 ,perl-moosex-emulate-class-accessor-fast)
1546 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1547 ("perl-namespace-clean" ,perl-namespace-clean)
1548 ("perl-path-class" ,perl-path-class)
1549 ("perl-template-toolkit" ,perl-template-toolkit)))
1550 (home-page "https://metacpan.org/release/Catalyst-Devel")
1551 (synopsis "Catalyst Development Tools")
1552 (description "The Catalyst-Devel distribution includes a variety of
1553 modules useful for the development of Catalyst applications, but not required
1554 to run them. Catalyst-Devel includes the Catalyst::Helper system, which
1555 autogenerates scripts and tests; Module::Install::Catalyst, a Module::Install
1556 extension for Catalyst; and requirements for a variety of development-related
1558 (license l:perl-license)))
1560 (define-public perl-catalyst-dispatchtype-regex
1562 (name "perl-catalyst-dispatchtype-regex")
1567 (uri (string-append "mirror://cpan/authors/id/M/MG/MGRIMES/"
1568 "Catalyst-DispatchType-Regex-" version ".tar.gz"))
1571 "06jq1lmpq88rmp9zik5gqczg234xac0hiyc3l698iif7zsgcyb80"))))
1572 (build-system perl-build-system)
1574 `(("perl-module-build" ,perl-module-build) ;needs Module::Build >= 0.4004
1575 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1576 ("perl-catalyst-runtime" ,perl-catalyst-runtime)))
1578 `(("perl-moose" ,perl-moose)
1579 ("perl-text-simpletable" ,perl-text-simpletable)))
1580 (home-page "https://metacpan.org/release/Catalyst-DispatchType-Regex")
1581 (synopsis "Regex DispatchType for Catalyst")
1582 (description "Dispatch type managing path-matching behaviour using
1583 regexes. Regex dispatch types have been deprecated and removed from Catalyst
1584 core. It is recommend that you use Chained methods or other techniques
1585 instead. As part of the refactoring, the dispatch priority of Regex vs Regexp
1586 vs LocalRegex vs LocalRegexp may have changed. Priority is now influenced by
1587 when the dispatch type is first seen in your application.")
1588 (license l:perl-license)))
1590 (define-public perl-catalyst-model-dbic-schema
1592 (name "perl-catalyst-model-dbic-schema")
1597 (uri (string-append "mirror://cpan/authors/id/G/GB/GBJK/"
1598 "Catalyst-Model-DBIC-Schema-"
1602 "1spfjcjc0b9dv3k2gbanqj1m1cqzyxb32p76dhdwizzpbvpi3a96"))))
1603 (build-system perl-build-system)
1605 `(("perl-dbd-sqlite" ,perl-dbd-sqlite)
1606 ("perl-module-install" ,perl-module-install)
1607 ("perl-test-exception" ,perl-test-exception)
1608 ("perl-test-requires" ,perl-test-requires)))
1610 `(("perl-carp-clan" ,perl-carp-clan)
1611 ("perl-catalyst-component-instancepercontext"
1612 ,perl-catalyst-component-instancepercontext)
1613 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1614 ("perl-catalystx-component-traits" ,perl-catalystx-component-traits)
1615 ("perl-dbix-class" ,perl-dbix-class)
1616 ("perl-dbix-class-cursor-cached" ,perl-dbix-class-cursor-cached)
1617 ("perl-dbix-class-schema-loader" ,perl-dbix-class-schema-loader)
1618 ("perl-hash-merge" ,perl-hash-merge)
1619 ("perl-list-moreutils" ,perl-list-moreutils)
1620 ("perl-module-runtime" ,perl-module-runtime)
1621 ("perl-moose" ,perl-moose)
1622 ("perl-moosex-markasmethods" ,perl-moosex-markasmethods)
1623 ("perl-moosex-nonmoose" ,perl-moosex-nonmoose)
1624 ("perl-moosex-types" ,perl-moosex-types)
1625 ("perl-moosex-types-loadableclass" ,perl-moosex-types-loadableclass)
1626 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1627 ("perl-namespace-clean" ,perl-namespace-clean)
1628 ("perl-tie-ixhash" ,perl-tie-ixhash)
1629 ("perl-try-tiny" ,perl-try-tiny)))
1630 (home-page "https://metacpan.org/release/Catalyst-Model-DBIC-Schema")
1631 (synopsis "DBIx::Class::Schema Model Class")
1632 (description "This is a Catalyst Model for DBIx::Class::Schema-based
1634 (license l:perl-license)))
1636 (define-public perl-catalyst-plugin-accesslog
1638 (name "perl-catalyst-plugin-accesslog")
1643 (uri (string-append "mirror://cpan/authors/id/A/AR/ARODLAND/"
1644 "Catalyst-Plugin-AccessLog-" version ".tar.gz"))
1647 "0811rj45q4v2y8wka3wb9d5m4vbyhcmkvddf2wz4x69awzjbhgc7"))))
1648 (build-system perl-build-system)
1650 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1651 ("perl-datetime" ,perl-datetime)
1652 ("perl-moose" ,perl-moose)
1653 ("perl-namespace-autoclean" ,perl-namespace-autoclean)))
1654 (home-page "https://metacpan.org/release/Catalyst-Plugin-AccessLog")
1655 (synopsis "Request logging from within Catalyst")
1656 (description "This Catalyst plugin enables you to create \"access logs\"
1657 from within a Catalyst application instead of requiring a webserver to do it
1658 for you. It will work even with Catalyst debug logging turned off.")
1659 (license l:perl-license)))
1661 (define-public perl-catalyst-plugin-authentication
1663 (name "perl-catalyst-plugin-authentication")
1668 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1669 "Catalyst-Plugin-Authentication-"
1673 "0v6hb4r1wv3djrnqvnjcn3xx1scgqzx8nyjdg9lfc1ybvamrl0rn"))))
1674 (build-system perl-build-system)
1676 `(("perl-module-install" ,perl-module-install)))
1678 `(("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
1679 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1680 ("perl-class-inspector" ,perl-class-inspector)
1681 ("perl-moose" ,perl-moose)
1682 ("perl-moosex-emulate-class-accessor-fast"
1683 ,perl-moosex-emulate-class-accessor-fast)
1684 ("perl-mro-compat" ,perl-mro-compat)
1685 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1686 ("perl-string-rewriteprefix" ,perl-string-rewriteprefix)
1687 ("perl-test-exception" ,perl-test-exception)
1688 ("perl-try-tiny" ,perl-try-tiny)))
1689 (home-page "https://metacpan.org/release/Catalyst-Plugin-Authentication")
1690 (synopsis "Infrastructure plugin for the Catalyst authentication framework")
1691 (description "The authentication plugin provides generic user support for
1692 Catalyst apps. It is the basis for both authentication (checking the user is
1693 who they claim to be), and authorization (allowing the user to do what the
1694 system authorises them to do).")
1695 (license l:perl-license)))
1697 (define-public perl-catalyst-plugin-authorization-roles
1699 (name "perl-catalyst-plugin-authorization-roles")
1704 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1705 "Catalyst-Plugin-Authorization-Roles-"
1709 "0l83lkwmq0lngwh8b1rv3r719pn8w1gdbyhjqm74rnd0wbjl8h7f"))))
1710 (build-system perl-build-system)
1712 `(("perl-module-install" ,perl-module-install)
1713 ("perl-test-exception" ,perl-test-exception)))
1715 `(("perl-catalyst-plugin-authentication"
1716 ,perl-catalyst-plugin-authentication)
1717 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1718 ("perl-set-object" ,perl-set-object)
1719 ("perl-universal-isa" ,perl-universal-isa)))
1721 "https://metacpan.org/release/Catalyst-Plugin-Authorization-Roles")
1722 (synopsis "Role-based authorization for Catalyst")
1723 (description "Catalyst::Plugin::Authorization::Roles provides role-based
1724 authorization for Catalyst based on Catalyst::Plugin::Authentication.")
1725 (license l:perl-license)))
1727 (define-public perl-catalyst-plugin-captcha
1729 (name "perl-catalyst-plugin-captcha")
1734 (uri (string-append "mirror://cpan/authors/id/D/DI/DIEGOK/"
1735 "Catalyst-Plugin-Captcha-" version ".tar.gz"))
1738 "0llyj3v5nx9cx46jdbbvxf1lc9s9cxq5ml22xmx3wkb201r5qgaa"))))
1739 (build-system perl-build-system)
1741 `(("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
1742 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1743 ("perl-gd-securityimage" ,perl-gd-securityimage)
1744 ("perl-http-date" ,perl-http-date)))
1745 (home-page "https://metacpan.org/release/Catalyst-Plugin-Captcha")
1746 (synopsis "Captchas for Catalyst")
1747 (description "This plugin creates and validates Captcha images for
1749 (license l:perl-license)))
1751 (define-public perl-catalyst-plugin-configloader
1753 (name "perl-catalyst-plugin-configloader")
1758 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1759 "Catalyst-Plugin-ConfigLoader-"
1763 "19j7p4v7mbx6wrmpvmrnd974apx7hdl2s095ga3b9zcbdrl77h5q"))))
1764 (build-system perl-build-system)
1766 `(("perl-path-class" ,perl-path-class)
1767 ("perl-module-install" ,perl-module-install)))
1769 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1770 ("perl-config-any" ,perl-config-any)
1771 ("perl-data-visitor" ,perl-data-visitor)
1772 ("perl-mro-compat" ,perl-mro-compat)))
1773 (home-page "https://metacpan.org/release/Catalyst-Plugin-ConfigLoader")
1774 (synopsis "Load config files of various types")
1775 (description "This module will attempt to load find and load configuration
1776 files of various types. Currently it supports YAML, JSON, XML, INI and Perl
1778 (license l:perl-license)))
1780 (define-public perl-catalyst-plugin-session
1782 (name "perl-catalyst-plugin-session")
1787 (uri (string-append "mirror://cpan/authors/id/J/JJ/JJNAPIORK/"
1788 "Catalyst-Plugin-Session-" version ".tar.gz"))
1790 (base32 "0a451997zc2vjx7rvndgx1ldbrpic8sfbddyvncynh0zr8bhlqc5"))))
1791 (build-system perl-build-system)
1793 `(("perl-module-install" ,perl-module-install)
1794 ("perl-test-deep" ,perl-test-deep)
1795 ("perl-test-exception" ,perl-test-exception)))
1797 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1798 ("perl-moose" ,perl-moose)
1799 ("perl-moosex-emulate-class-accessor-fast"
1800 ,perl-moosex-emulate-class-accessor-fast)
1801 ("perl-mro-compat" ,perl-mro-compat)
1802 ("perl-namespace-clean" ,perl-namespace-clean)
1803 ("perl-object-signature" ,perl-object-signature)
1804 ("perl-test-www-mechanize-psgi" ,perl-test-www-mechanize-psgi)))
1805 (home-page "https://metacpan.org/release/Catalyst-Plugin-Session")
1806 (synopsis "Catalyst generic session plugin")
1807 (description "This plugin links the two pieces required for session
1808 management in web applications together: the state, and the store.")
1809 (license l:perl-license)))
1811 (define-public perl-catalyst-plugin-session-state-cookie
1813 (name "perl-catalyst-plugin-session-state-cookie")
1818 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTROUT/"
1819 "Catalyst-Plugin-Session-State-Cookie-"
1823 "1rvxbfnpf9x2pc2zgpazlcgdlr2dijmxgmcs0m5nazs0w6xikssb"))))
1824 (build-system perl-build-system)
1826 `(("perl-module-install" ,perl-module-install)))
1828 `(("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
1829 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1830 ("perl-moose" ,perl-moose)
1831 ("perl-mro-compat" ,perl-mro-compat)
1832 ("perl-namespace-autoclean" ,perl-namespace-autoclean)))
1834 "https://metacpan.org/release/Catalyst-Plugin-Session-State-Cookie")
1835 (synopsis "Maintain session IDs using cookies")
1836 (description "In order for Catalyst::Plugin::Session to work, the session
1837 ID needs to be stored on the client, and the session data needs to be stored
1838 on the server. This plugin stores the session ID on the client using the
1840 (license l:perl-license)))
1842 (define-public perl-catalyst-plugin-session-store-fastmmap
1844 (name "perl-catalyst-plugin-session-store-fastmmap")
1849 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1850 "Catalyst-Plugin-Session-Store-FastMmap-"
1854 "0x3j6zv3wr41jlwr6yb2jpmcx019ibyn11y8653ffnwhpzbpzsxs"))))
1855 (build-system perl-build-system)
1857 `(("perl-cache-fastmmap" ,perl-cache-fastmmap)
1858 ("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
1859 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
1860 ("perl-moosex-emulate-class-accessor-fast"
1861 ,perl-moosex-emulate-class-accessor-fast)
1862 ("perl-mro-compat" ,perl-mro-compat)
1863 ("perl-path-class" ,perl-path-class)))
1865 "https://metacpan.org/release/Catalyst-Plugin-Session-Store-FastMmap")
1866 (synopsis "FastMmap session storage backend")
1867 (description "Catalyst::Plugin::Session::Store::FastMmap is a fast session
1868 storage plugin for Catalyst that uses an mmap'ed file to act as a shared
1869 memory interprocess cache. It is based on Cache::FastMmap.")
1870 (license l:perl-license)))
1872 (define-public perl-catalyst-plugin-stacktrace
1874 (name "perl-catalyst-plugin-stacktrace")
1879 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1880 "Catalyst-Plugin-StackTrace-" version ".tar.gz"))
1883 "1b2ksz74cpigxqzf63rddar3vfmnbpwpdcbs11v0ml89pb8ar79j"))))
1884 (build-system perl-build-system)
1886 `(("perl-module-install" ,perl-module-install)))
1888 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1889 ("perl-devel-stacktrace" ,perl-devel-stacktrace)
1890 ("perl-mro-compat" ,perl-mro-compat)))
1891 (home-page "https://metacpan.org/release/Catalyst-Plugin-StackTrace")
1892 (synopsis "Stack trace on the Catalyst debug screen")
1893 (description "This plugin enhances the standard Catalyst debug screen by
1894 including a stack trace of your application up to the point where the error
1895 occurred. Each stack frame is displayed along with the package name, line
1896 number, file name, and code context surrounding the line number.")
1897 (license l:perl-license)))
1899 (define-public perl-catalyst-plugin-static-simple
1901 (name "perl-catalyst-plugin-static-simple")
1906 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1907 "Catalyst-Plugin-Static-Simple-" version ".tar.gz"))
1910 "0m4l627p2fvzr4i6sgdxhdvsx4wpa6qmaibsbxlg5x5yjs7k7drn"))))
1911 (build-system perl-build-system)
1913 `(("perl-module-install" ,perl-module-install)))
1915 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
1916 ("perl-mime-types" ,perl-mime-types)
1917 ("perl-moose" ,perl-moose)
1918 ("perl-moosex-types" ,perl-moosex-types)
1919 ("perl-namespace-autoclean" ,perl-namespace-autoclean)))
1920 (home-page "https://metacpan.org/release/Catalyst-Plugin-Static-Simple")
1921 (synopsis "Simple serving of static pages")
1922 (description "The Static::Simple plugin is designed to make serving static
1923 content in your application during development quick and easy, without
1924 requiring a single line of code from you. This plugin detects static files by
1925 looking at the file extension in the URL (such as .css or .png or .js). The
1926 plugin uses the lightweight MIME::Types module to map file extensions to
1927 IANA-registered MIME types, and will serve your static files with the correct
1928 MIME type directly to the browser, without being processed through Catalyst.")
1929 (license l:perl-license)))
1931 (define-public perl-catalyst-runtime
1933 (name "perl-catalyst-runtime")
1938 (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/"
1939 "Catalyst-Runtime-" version ".tar.gz"))
1942 "1iw7x9rqk3sz2hm1bw01blz5vwm7zlljdf4xj3r8vz54f1yggzqr"))))
1943 (build-system perl-build-system)
1945 `(("perl-test-fatal" ,perl-test-fatal)))
1947 `(("perl-cgi-simple" ,perl-cgi-simple)
1948 ("perl-cgi-struct" ,perl-cgi-struct)
1949 ("perl-class-c3-adopt-next" ,perl-class-c3-adopt-next)
1950 ("perl-class-date" ,perl-class-date)
1951 ("perl-class-load" ,perl-class-load)
1952 ("perl-data-dump" ,perl-data-dump)
1953 ("perl-http-body" ,perl-http-body)
1954 ("perl-http-message" ,perl-http-message)
1955 ("perl-json-maybexs" ,perl-json-maybexs)
1956 ("perl-libwww" ,perl-libwww)
1957 ("perl-module-pluggable" ,perl-module-pluggable)
1958 ("perl-moose" ,perl-moose)
1959 ("perl-moosex-emulate-class-accessor-fast"
1960 ,perl-moosex-emulate-class-accessor-fast)
1961 ("perl-moosex-getopt" ,perl-moosex-getopt)
1962 ("perl-moosex-methodattributes" ,perl-moosex-methodattributes)
1963 ("perl-namespace-clean" ,perl-namespace-clean)
1964 ("perl-path-class" ,perl-path-class)
1965 ("perl-plack" ,perl-plack)
1966 ("perl-plack-middleware-fixmissingbodyinredirect"
1967 ,perl-plack-middleware-fixmissingbodyinredirect)
1968 ("perl-plack-middleware-methodoverride"
1969 ,perl-plack-middleware-methodoverride)
1970 ("perl-plack-middleware-removeredundantbody"
1971 ,perl-plack-middleware-removeredundantbody)
1972 ("perl-plack-middleware-reverseproxy"
1973 ,perl-plack-middleware-reverseproxy)
1974 ("perl-plack-test-externalserver" ,perl-plack-test-externalserver)
1975 ("perl-safe-isa" ,perl-safe-isa)
1976 ("perl-string-rewriteprefix" ,perl-string-rewriteprefix)
1977 ("perl-text-simpletable" ,perl-text-simpletable)
1978 ("perl-tree-simple" ,perl-tree-simple)
1979 ("perl-tree-simple-visitorfactory" ,perl-tree-simple-visitorfactory)
1980 ("perl-try-tiny" ,perl-try-tiny)
1981 ("perl-uri" ,perl-uri)
1982 ("perl-uri-ws" ,perl-uri-ws)))
1983 (home-page "https://metacpan.org/release/Catalyst-Runtime")
1984 (synopsis "The Catalyst Framework Runtime")
1985 (description "Catalyst is a modern framework for making web applications.
1986 It is designed to make it easy to manage the various tasks you need to do to
1987 run an application on the web, either by doing them itself, or by letting you
1988 \"plug in\" existing Perl modules that do what you need.")
1989 (license l:perl-license)))
1991 (define-public perl-catalyst-traitfor-request-proxybase
1993 (name "perl-catalyst-traitfor-request-proxybase")
1994 (version "0.000005")
1998 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
1999 "Catalyst-TraitFor-Request-ProxyBase-"
2003 "02kir63d5cs2ipj3fn1qlmmx3gqi1xqzrxfr4pv5vjhjgsm0zgx7"))))
2004 (build-system perl-build-system)
2006 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2007 ("perl-catalystx-roleapplicator" ,perl-catalystx-roleapplicator)
2008 ("perl-http-message" ,perl-http-message)
2009 ("perl-module-install" ,perl-module-install)))
2011 `(("perl-moose" ,perl-moose)
2012 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2013 ("perl-uri" ,perl-uri)))
2015 "https://metacpan.org/release/Catalyst-TraitFor-Request-ProxyBase")
2016 (synopsis "Replace request base with value passed by HTTP proxy")
2017 (description "This module is a Moose::Role which allows you more
2018 flexibility in your application's deployment configurations when deployed
2019 behind a proxy. Using this module, the request base ($c->req->base) is
2020 replaced with the contents of the X-Request-Base header.")
2021 (license l:perl-license)))
2023 (define-public perl-catalyst-view-download
2025 (name "perl-catalyst-view-download")
2030 (uri (string-append "mirror://cpan/authors/id/G/GA/GAUDEON/"
2031 "Catalyst-View-Download-" version ".tar.gz"))
2034 "1qgq6y9iwfbhbkbgpw9czang2ami6z8jk1zlagrzdisy4igqzkvs"))))
2035 (build-system perl-build-system)
2037 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2038 ("perl-module-install" ,perl-module-install)
2039 ("perl-test-simple" ,perl-test-simple)
2040 ("perl-test-www-mechanize-catalyst" ,perl-test-www-mechanize-catalyst)
2041 ("perl-text-csv" ,perl-text-csv)
2042 ("perl-xml-simple" ,perl-xml-simple)))
2043 (home-page "https://metacpan.org/release/Catalyst-View-Download")
2044 (synopsis "Download data in many formats")
2045 (description "The purpose of this module is to provide a method for
2046 downloading data into many supportable formats. For example, downloading a
2047 table based report in a variety of formats (CSV, HTML, etc.).")
2048 (license l:perl-license)))
2050 (define-public perl-catalyst-view-json
2052 (name "perl-catalyst-view-json")
2057 (uri (string-append "mirror://cpan/authors/id/J/JJ/JJNAPIORK/"
2058 "Catalyst-View-JSON-" version ".tar.gz"))
2061 "0x943j1n2r0zqanyzdrs1xsnn8ayn2wqskn7h144xcqa6v6gcisl"))))
2062 (build-system perl-build-system)
2064 `(("perl-module-install" ,perl-module-install)
2065 ("perl-yaml" ,perl-yaml)))
2067 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2068 ("perl-json-maybexs" ,perl-json-maybexs)
2069 ("perl-mro-compat" ,perl-mro-compat)))
2070 (home-page "https://metacpan.org/release/Catalyst-View-JSON")
2071 (synopsis "Catalyst JSON view")
2072 (description "Catalyst::View::JSON is a Catalyst View handler that returns
2073 stash data in JSON format.")
2074 (license l:perl-license)))
2076 (define-public perl-catalyst-view-tt
2078 (name "perl-catalyst-view-tt")
2083 (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/"
2084 "Catalyst-View-TT-" version ".tar.gz"))
2087 "06d1zg4nbb6kcyjbnyxrkf8z4zlscxr8650d94f7187jygfl8rvh"))))
2088 (build-system perl-build-system)
2090 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2091 ("perl-class-accessor" ,perl-class-accessor)
2092 ("perl-data-dump" ,perl-data-dump)
2093 ("perl-mro-compat" ,perl-mro-compat)
2094 ("perl-path-class" ,perl-path-class)
2095 ("perl-template-timer" ,perl-template-timer)
2096 ("perl-template-toolkit" ,perl-template-toolkit)))
2097 (home-page "https://metacpan.org/release/Catalyst-View-TT")
2098 (synopsis "Template View Class")
2099 (description "This module is a Catalyst view class for the Template
2101 (license l:perl-license)))
2103 (define-public perl-catalystx-component-traits
2105 (name "perl-catalystx-component-traits")
2110 (uri (string-append "mirror://cpan/authors/id/R/RK/RKITOVER/"
2111 "CatalystX-Component-Traits-" version ".tar.gz"))
2114 "0iq4ci8m6g2c4g01fvdl568y7pjz28f3widk986v3pyhr7ll8j88"))))
2115 (build-system perl-build-system)
2117 `(("perl-moose" ,perl-moose)
2118 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
2119 ("perl-moosex-methodattributes" ,perl-moosex-methodattributes)))
2121 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2122 ("perl-class-load" ,perl-class-load)
2123 ("perl-moose" ,perl-moose)
2124 ("perl-moosex-traits-pluggable" ,perl-moosex-traits-pluggable)
2125 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2126 ("perl-list-moreutils" ,perl-list-moreutils)))
2127 (home-page "https://metacpan.org/release/CatalystX-Component-Traits")
2128 (synopsis "Trait Loading and Resolution for Catalyst Components")
2129 (description "Adds a \"COMPONENT\" in Catalyst::Component method to your
2130 Catalyst component base class that reads the optional \"traits\" parameter
2131 from app and component config and instantiates the component subclass with
2132 those traits using \"new_with_traits\" in MooseX::Traits from
2133 MooseX::Traits::Pluggable.")
2134 (license l:perl-license)))
2136 (define-public perl-catalystx-roleapplicator
2138 (name "perl-catalystx-roleapplicator")
2143 (uri (string-append "mirror://cpan/authors/id/H/HD/HDP/"
2144 "CatalystX-RoleApplicator-" version ".tar.gz"))
2147 "0vwaapxn8g5hs2xp63c4dwv9jmapmji4272fakssvgc9frklg3p2"))))
2148 (build-system perl-build-system)
2150 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2151 ("perl-moose" ,perl-moose)
2152 ("perl-moosex-relatedclassroles" ,perl-moosex-relatedclassroles)))
2153 (home-page "https://metacpan.org/release/CatalystX-RoleApplicator")
2154 (synopsis "Apply roles to Catalyst classes")
2155 (description "CatalystX::RoleApplicator applies roles to Catalyst
2156 application classes.")
2157 (license l:perl-license)))
2159 (define-public perl-catalystx-script-server-starman
2161 (name "perl-catalystx-script-server-starman")
2166 (uri (string-append "mirror://cpan/authors/id/A/AB/ABRAXXA/"
2167 "CatalystX-Script-Server-Starman-"
2171 "08jvibq4v8xjj0c3cr93h0w8w0c88ajwjn37xjy7ygxl9krlffp6"))))
2172 (build-system perl-build-system)
2174 `(("perl-module-install" ,perl-module-install)
2175 ("perl-test-www-mechanize-catalyst" ,perl-test-www-mechanize-catalyst)))
2177 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2178 ("perl-moose" ,perl-moose)
2179 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2180 ("starman" ,starman)))
2181 (home-page "https://metacpan.org/release/CatalystX-Script-Server-Starman")
2182 (synopsis "Catalyst development server with Starman")
2183 (description "This module provides a Catalyst extension to replace the
2184 development server with Starman.")
2185 (license l:perl-license)))
2187 (define-public perl-cgi
2194 (uri (string-append "mirror://cpan/authors/id/L/LE/LEEJO/"
2195 "CGI-" version ".tar.gz"))
2198 "1m779315rzj4mpgscw209a2wk18iwg2n8zibn8aak4mv56jz8n4c"))))
2199 (build-system perl-build-system)
2201 `(("perl-test-deep" ,perl-test-deep)
2202 ("perl-test-nowarnings" ,perl-test-nowarnings)
2203 ("perl-test-warn" ,perl-test-warn)))
2205 `(("perl-html-parser" ,perl-html-parser)))
2206 (home-page "https://metacpan.org/release/CGI")
2207 (synopsis "Handle Common Gateway Interface requests and responses")
2208 (description "CGI.pm is a stable, complete and mature solution for
2209 processing and preparing HTTP requests and responses. Major features include
2210 processing form submissions, file uploads, reading and writing cookies, query
2211 string generation and manipulation, and processing and preparing HTTP
2213 (license l:perl-license)))
2215 (define-public perl-cgi-formbuilder
2217 (name "perl-cgi-formbuilder")
2223 "https://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/"
2224 "CGI-FormBuilder-" version ".tar.gz"))
2227 "163ixq9kninqq094z2rnkg9pv3bcmvjphlww4vksfrzhq3h9pjdf"))))
2228 (build-system perl-build-system)
2229 (inputs `(("perl-cgi" ,perl-cgi)))
2231 "https://metacpan.org/release/CGI-FormBuilder")
2233 "Generate and process stateful forms")
2235 "@code{CGI::FormBuilder} provides an easy way to generate and process CGI
2236 form-based applications.")
2237 (license l:perl-license)))
2239 (define-public perl-cgi-session
2241 (name "perl-cgi-session")
2247 "mirror://cpan/authors/id/M/MA/MARKSTOS/CGI-Session-"
2252 "1xsl2pz1jrh127pq0b01yffnj4mnp9nvkp88h5mndrscq9hn8xa6"))))
2253 (build-system perl-build-system)
2255 `(("perl-module-build" ,perl-module-build)))
2256 (inputs `(("perl-cgi" ,perl-cgi)))
2258 "https://metacpan.org/release/CGI-Session")
2260 "Persistent session data in CGI applications")
2262 "@code{CGI::Session} provides modular session management system across
2264 (license l:perl-license)))
2266 (define-public perl-cgi-simple
2268 (name "perl-cgi-simple")
2273 (uri (string-append "mirror://cpan/authors/id/M/MA/MANWAR/"
2274 "CGI-Simple-" version ".tar.gz"))
2276 (base32 "1wzc2igs4khmj7zfahvs87c24p9ks8hnqhhsyviyiix53xx2y6sg"))))
2277 (build-system perl-build-system)
2279 `(("perl-io-stringy" ,perl-io-stringy) ; for IO::Scalar
2280 ("perl-module-build" ,perl-module-build)
2281 ("perl-test-exception" ,perl-test-exception)
2282 ("perl-test-nowarnings" ,perl-test-nowarnings)))
2283 (home-page "https://metacpan.org/release/CGI-Simple")
2284 (synopsis "CGI interface that is CGI.pm compliant")
2285 (description "CGI::Simple provides a relatively lightweight drop in
2286 replacement for CGI.pm. It shares an identical OO interface to CGI.pm for
2287 parameter parsing, file upload, cookie handling and header generation.")
2288 (license l:perl-license)))
2290 (define-public perl-cgi-struct
2292 (name "perl-cgi-struct")
2297 (uri (string-append "mirror://cpan/authors/id/F/FU/FULLERMD/"
2298 "CGI-Struct-" version ".tar.gz"))
2301 "0v4xq2qpryr7i6jngw1wpn8yr2kiib10yxp4aih90vfdznkqsgfi"))))
2302 (build-system perl-build-system)
2304 `(("perl-test-deep" ,perl-test-deep)))
2305 (home-page "https://metacpan.org/release/CGI-Struct")
2306 (synopsis "Build structures from CGI data")
2307 (description "This is a module for building structured data from CGI
2308 inputs, in a manner reminiscent of how PHP does.")
2311 (define-public perl-datetime-format-http
2313 (name "perl-datetime-format-http")
2318 (uri (string-append "mirror://cpan/authors/id/C/CK/CKRAS/"
2319 "DateTime-Format-HTTP-" version ".tar.gz"))
2322 "0h6qqdg1yzqkdxp7hqlp0qa7d1y64nilgimxs79dys2ryjfpcknh"))))
2323 (build-system perl-build-system)
2325 `(("perl-module-build" ,perl-module-build)))
2327 `(("perl-datetime" ,perl-datetime)
2328 ("perl-http-date" ,perl-http-date)))
2329 (home-page "https://metacpan.org/release/DateTime-Format-HTTP")
2330 (synopsis "Date conversion routines")
2331 (description "This module provides functions that deal with the date
2332 formats used by the HTTP protocol.")
2333 (license l:perl-license)))
2335 (define-public perl-digest-md5-file
2337 (name "perl-digest-md5-file")
2342 (uri (string-append "mirror://cpan/authors/id/D/DM/DMUEY/"
2343 "Digest-MD5-File-" version ".tar.gz"))
2346 "060jzf45dlwysw5wsm7av1wvpl06xgk415kwwpvv89r6wda3md5d"))))
2347 (build-system perl-build-system)
2349 `(("perl-libwww" ,perl-libwww)))
2350 (home-page "https://metacpan.org/release/Digest-MD5-File")
2351 (synopsis "MD5 sums for files and urls")
2352 (description "Digest::MD5::File is a Perl extension for getting MD5 sums
2353 for files and urls.")
2354 (license l:perl-license)))
2356 (define-public perl-encode-locale
2358 (name "perl-encode-locale")
2363 "mirror://cpan/authors/id/G/GA/GAAS/Encode-Locale-"
2367 "1h8fvcdg3n20c2yp7107yhdkkx78534s9hnvn7ps8hpmf4ks0vqp"))))
2368 (build-system perl-build-system)
2369 (license l:perl-license)
2370 (synopsis "Perl locale encoding determination")
2372 "The POSIX locale system is used to specify both the language
2373 conventions requested by the user and the preferred character set to
2374 consume and output. The Encode::Locale module looks up the charset and
2375 encoding (called a CODESET in the locale jargon) and arranges for the
2376 Encode module to know this encoding under the name \"locale\". It means
2377 bytes obtained from the environment can be converted to Unicode strings
2378 by calling Encode::encode(locale => $bytes) and converted back again
2379 with Encode::decode(locale => $string).")
2380 (home-page "https://metacpan.org/release/Encode-Locale")))
2382 (define-public perl-feed-find
2384 (name "perl-feed-find")
2388 (uri (string-append "mirror://cpan/authors/id/B/BT/BTROTT/"
2389 "Feed-Find-" version ".tar.gz"))
2392 "0sa33cm8ww55cymnl8j7b5yspi2y5xkkkgqqa4h6fs3wdqylz600"))))
2393 (build-system perl-build-system)
2395 ;; Tests expect to query files at http://stupidfool.org/perl/feeds/
2398 (modify-phases %standard-phases
2399 (add-after 'unpack 'set-env
2400 (lambda _ (setenv "PERL_USE_UNSAFE_INC" "1"))))))
2402 `(("perl-class-errorhandler" ,perl-class-errorhandler)
2403 ("perl-html-parser" ,perl-html-parser)
2404 ("perl-libwww" ,perl-libwww)
2405 ("perl-uri" ,perl-uri)))
2406 (home-page "https://metacpan.org/release/Feed-Find")
2407 (synopsis "Syndication feed auto-discovery")
2408 (description "@code{Feed::Find} implements feed auto-discovery for finding
2409 syndication feeds, given a URI. It will discover the following feed formats:
2410 RSS 0.91, RSS 1.0, RSS 2.0, Atom.")
2411 (license l:perl-license)))
2413 (define-public perl-file-listing
2415 (name "perl-file-listing")
2420 "mirror://cpan/authors/id/G/GA/GAAS/File-Listing-"
2424 "1xcwjlnxaiwwpn41a5yi6nz95ywh3szq5chdxiwj36kqsvy5000y"))))
2425 (build-system perl-build-system)
2427 `(("perl-http-date" ,perl-http-date)))
2428 (license l:perl-license)
2429 (synopsis "Perl directory listing parser")
2431 "The File::Listing module exports a single function called parse_dir(),
2432 which can be used to parse directory listings.")
2433 (home-page "https://metacpan.org/release/File-Listing")))
2435 (define-public perl-finance-quote
2437 (name "perl-finance-quote")
2442 (uri (string-append "https://cpan.metacpan.org/authors/id/E/EC/ECOCODE/"
2443 "Finance-Quote-" version ".tar.gz"))
2445 (base32 "0gzbq85738f299jaw4nj3ljnka380j2y6yspmyl71rgfypqjvbr7"))
2446 (patches (search-patches
2447 "perl-finance-quote-unuse-mozilla-ca.patch"))))
2448 (build-system perl-build-system)
2450 `(("perl-cgi" ,perl-cgi)
2451 ("perl-datetime" ,perl-datetime)
2452 ("perl-html-parser" ,perl-html-parser)
2453 ("perl-html-tableextract" ,perl-html-tableextract)
2454 ("perl-html-tree" ,perl-html-tree)
2455 ("perl-http-cookies" ,perl-http-cookies)
2456 ("perl-http-message" ,perl-http-message)
2457 ("perl-json" ,perl-json)
2458 ("perl-libwww" ,perl-libwww)
2459 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2460 ("perl-uri" ,perl-uri)))
2461 (home-page "https://metacpan.org/release/Finance-Quote")
2462 (synopsis "Stock and mutual fund quotes")
2464 "Finance::Quote gets stock quotes from various internet sources, including
2465 Yahoo! Finance, Fidelity Investments, and the Australian Stock Exchange.")
2468 (define-public perl-gssapi
2470 (name "perl-gssapi")
2475 (uri (string-append "mirror://cpan/authors/id/A/AG/AGROLMS/"
2476 "GSSAPI-" version ".tar.gz"))
2479 "1mkhwxjjlhr58pd770i9gnf7zy7jj092iv6jfbnb8bvnc5xjr3vx"))))
2480 (build-system perl-build-system)
2481 (inputs `(("gssapi" ,mit-krb5)))
2483 `(#:make-maker-flags
2484 `(,(string-append "--gssapiimpl=" (assoc-ref %build-inputs "gssapi")))))
2485 (home-page "https://metacpan.org/release/GSSAPI")
2486 (synopsis "Perl extension providing access to the GSSAPIv2 library")
2487 (description "This is a Perl extension for using GSSAPI C bindings as
2488 described in RFC 2744.")
2489 (license l:perl-license)))
2491 (define-public perl-html-element-extended
2493 (name "perl-html-element-extended")
2498 (uri (string-append "mirror://cpan/authors/id/M/MS/MSISK/"
2499 "HTML-Element-Extended-" version ".tar.gz"))
2502 "0axknss8c368r5i082yhkfj8mq0w4nglfrpcxcayyzzj13qimvzk"))))
2503 (build-system perl-build-system)
2505 `(("perl-html-tree" ,perl-html-tree)))
2506 (home-page "https://metacpan.org/release/HTML-Element-Extended")
2507 (synopsis "Manipulate tables of HTML::Element")
2509 "HTML::Element::Extended is a Perl extension for manipulating a table
2510 composed of HTML::Element style components.")
2511 (license l:perl-license)))
2513 (define-public perl-html-form
2515 (name "perl-html-form")
2520 (uri (string-append "mirror://cpan/authors/id/G/GA/GAAS/"
2521 "HTML-Form-" version ".tar.gz"))
2524 "0dpwr7yz6hjc3bcqgcbdzjjk9l58ycdjmbam9nfcmm85y2a1vh38"))))
2525 (build-system perl-build-system)
2527 `(("perl-html-parser" ,perl-html-parser)
2528 ("perl-html-tagset" ,perl-html-tagset)
2529 ("perl-http-message" ,perl-http-message)
2530 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2531 ("perl-uri" ,perl-uri)))
2532 (home-page "https://metacpan.org/release/HTML-Form")
2533 (synopsis "Perl class representing an HTML form element")
2534 (description "Objects of the HTML::Form class represents a single HTML
2535 <form> ... </form> instance.")
2536 (license l:perl-license)))
2538 (define-public perl-html-scrubber
2540 (name "perl-html-scrubber")
2546 "mirror://cpan/authors/id/N/NI/NIGELM/HTML-Scrubber-"
2551 "06p7w4zd42b2yh541mlzyqj40lwmvvn3fyqi8big4mf34la7m2jm"))))
2552 (build-system perl-build-system)
2554 `(("perl-module-build" ,perl-module-build)
2555 ("perl-test-cpan-meta" ,perl-test-cpan-meta)
2556 ("perl-test-differences" ,perl-test-differences)
2557 ("perl-test-eol" ,perl-test-eol)
2558 ("perl-test-memory-cycle" ,perl-test-memory-cycle)
2559 ("perl-test-notabs" ,perl-test-notabs)))
2561 `(("perl-html-parser" ,perl-html-parser)))
2563 "https://metacpan.org/release/HTML-Scrubber")
2565 "Perl extension for scrubbing/sanitizing html")
2567 "@code{HTML::Scrubber} Perl extension for scrubbing/sanitizing HTML.")
2568 (license l:perl-license)))
2570 (define-public perl-html-lint
2572 (name "perl-html-lint")
2577 (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/"
2578 "HTML-Lint-" version ".tar.gz"))
2580 (base32 "0lk02xpfxcg7ij4dvpsa4wjlzhmiizj0jfr3rwmdpbj69nvc93br"))))
2581 (build-system perl-build-system)
2583 `(("perl-html-parser" ,perl-html-parser)
2584 ("perl-html-tagset" ,perl-html-tagset)
2585 ("perl-libwww" ,perl-libwww)))
2586 (home-page "https://metacpan.org/release/HTML-Lint")
2587 (synopsis "Check for HTML errors in a string or file")
2588 (description "HTML::Lint is a pure-Perl HTML parser and checker for
2589 syntactic legitmacy.")
2590 (license l:artistic2.0)))
2592 (define-public perl-html-tableextract
2594 (name "perl-html-tableextract")
2599 (uri (string-append "https://cpan.metacpan.org/authors/id/M/MS/MSISK/"
2600 "HTML-TableExtract-" version ".tar.gz"))
2603 "01jimmss3q68a89696wmclvqwb2ybz6xgabpnbp6mm6jcni82z8a"))))
2604 (build-system perl-build-system)
2606 `(("perl-html-element-extended" ,perl-html-element-extended)
2607 ("perl-html-parser" ,perl-html-parser)))
2608 (home-page "https://metacpan.org/release/HTML-TableExtract")
2609 (synopsis "Extract contents from HTML tables")
2611 "HTML::TableExtract is a Perl module for extracting the content contained
2612 in tables within an HTML document, either as text or encoded element trees.")
2613 (license l:perl-license)))
2615 (define-public perl-html-tree
2617 (name "perl-html-tree")
2622 (uri (string-append "mirror://cpan/authors/id/K/KE/KENTNL/"
2623 "HTML-Tree-" version ".tar.gz"))
2626 "1gyvm4qlwm9y6hczkpnrdfl303ggbybr0nqxdjw09hii8yw4sdzh"))))
2627 (build-system perl-build-system)
2629 `(("perl-module-build" ,perl-module-build)
2630 ("perl-test-fatal" ,perl-test-fatal)))
2632 `(("perl-html-parser" ,perl-html-parser)
2633 ("perl-html-tagset" ,perl-html-tagset)
2634 ("perl-libwww" ,perl-libwww)))
2635 (home-page "https://metacpan.org/release/HTML-Tree")
2636 (synopsis "Work with HTML in a DOM-like tree structure")
2637 (description "This distribution contains a suite of modules for
2638 representing, creating, and extracting information from HTML syntax trees.")
2639 (license l:perl-license)))
2641 (define-public perl-html-parser
2643 (name "perl-html-parser")
2648 "mirror://cpan/authors/id/G/GA/GAAS/HTML-Parser-"
2652 "12v05ywlnsi9lc17z32k9jxx3sj1viy7y1wpl7n4az76v7hwfa7c"))))
2653 (build-system perl-build-system)
2655 `(("perl-html-tagset" ,perl-html-tagset)
2656 ("perl-http-message" ,perl-http-message)))
2657 (license l:perl-license)
2658 (synopsis "Perl HTML parser class")
2660 "Objects of the HTML::Parser class will recognize markup and separate
2661 it from plain text (alias data content) in HTML documents. As different
2662 kinds of markup and text are recognized, the corresponding event handlers
2664 (home-page "https://metacpan.org/release/HTML-Parser")))
2666 (define-public perl-html-tagset
2668 (name "perl-html-tagset")
2673 "mirror://cpan/authors/id/P/PE/PETDANCE/HTML-Tagset-"
2677 "1qh8249wgr4v9vgghq77zh1d2zs176bir223a8gh3k9nksn7vcdd"))))
2678 (build-system perl-build-system)
2679 (license l:perl-license)
2680 (synopsis "Perl data tables useful in parsing HTML")
2682 "The HTML::Tagset module contains several data tables useful in various
2683 kinds of HTML parsing operations.")
2684 (home-page "https://metacpan.org/release/HTML-Tagset")))
2686 (define-public perl-html-template
2688 (name "perl-html-template")
2692 (uri (string-append "mirror://cpan/authors/id/S/SA/SAMTREGAR/"
2693 "HTML-Template-" version ".tar.gz"))
2696 "17qjw8swj2q4b1ic285pndgrkmvpsqw0j68nhqzpk1daydhsyiv5"))))
2697 (build-system perl-build-system)
2699 `(("perl-cgi" ,perl-cgi)))
2700 (home-page "https://metacpan.org/release/HTML-Template")
2701 (synopsis "HTML-like templates")
2703 "This module attempts to make using HTML templates simple and natural.
2704 It extends standard HTML with a few new HTML-esque tags: @code{<TMPL_VAR>},
2705 @code{<TMPL_LOOP>}, @code{<TMPL_INCLUDE>}, @code{<TMPL_IF>},
2706 @code{<TMPL_ELSE>} and @code{<TMPL_UNLESS>}. The file written with HTML and
2707 these new tags is called a template. Using this module you fill in the values
2708 for the variables, loops and branches declared in the template. This allows
2709 you to separate design from the data.")
2710 (license l:perl-license)))
2712 (define-public perl-http-body
2714 (name "perl-http-body")
2719 (uri (string-append "mirror://cpan/authors/id/G/GE/GETTY/"
2720 "HTTP-Body-" version ".tar.gz"))
2723 "15vj488i62mdp4ps9k77h39prj70i7anb6b0j8nm7l9vbdc2q3gw"))))
2724 (build-system perl-build-system)
2726 `(("perl-test-deep" ,perl-test-deep)))
2728 `(("perl-file-temp" ,perl-file-temp)
2729 ("perl-http-message" ,perl-http-message))) ;For HTTP::Headers
2730 (home-page "https://metacpan.org/release/HTTP-Body")
2731 (synopsis "HTTP Body Parser")
2732 (description "HTTP::Body parses chunks of HTTP POST data and supports
2733 application/octet-stream, application/json, application/x-www-form-urlencoded,
2734 and multipart/form-data.")
2735 (license l:perl-license)))
2737 (define-public perl-http-cookiejar
2739 (name "perl-http-cookiejar")
2744 (uri (string-append "mirror://cpan/authors/id/D/DA/DAGOLDEN/"
2745 "HTTP-CookieJar-" version ".tar.gz"))
2748 "0rfw6avcralggs7bf7n86flvhaahxjnqzvpwszp0sk4z4wwy01wm"))))
2749 (build-system perl-build-system)
2751 `(("perl-test-deep" ,perl-test-deep)
2752 ("perl-test-requires" ,perl-test-requires)
2753 ("perl-time-mock" ,perl-time-mock)
2754 ("perl-uri" ,perl-uri)))
2756 `(("perl-time-local" ,perl-time-local)
2757 ("perl-http-date" ,perl-http-date)))
2758 (home-page "https://metacpan.org/release/HTTP-CookieJar")
2759 (synopsis "Minimalist HTTP user agent cookie jar")
2760 (description "This module implements a minimalist HTTP user agent cookie
2761 jar in conformance with RFC 6265 <http://tools.ietf.org/html/rfc6265>.")
2762 (license l:asl2.0)))
2764 (define-public perl-http-cookies
2766 (name "perl-http-cookies")
2771 "mirror://cpan/authors/id/O/OA/OALDERS/HTTP-Cookies-"
2775 "1m0kxcirbvbkrm2c59p1bkbvzlcdymg8fdpa7wlxijlx0xwz1iqc"))))
2776 (build-system perl-build-system)
2778 `(("perl-http-message" ,perl-http-message)))
2779 (license l:perl-license)
2780 (synopsis "Perl HTTP cookie jars")
2782 "The HTTP::Cookies class is for objects that represent a cookie jar,
2783 that is, a database of all the HTTP cookies that a given LWP::UserAgent
2784 object knows about.")
2785 (home-page "https://metacpan.org/release/GAAS/HTTP-Cookies-6.01")))
2787 (define-public perl-http-daemon
2789 (name "perl-http-daemon")
2794 "mirror://cpan/authors/id/G/GA/GAAS/HTTP-Daemon-"
2798 "1hmd2isrkilf0q0nkxms1q64kikjmcw9imbvrjgky6kh89vqdza3"))))
2799 (build-system perl-build-system)
2801 `(("perl-http-message" ,perl-http-message)
2802 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)))
2803 (license l:perl-license)
2804 (synopsis "Perl simple http server class")
2806 "Instances of the HTTP::Daemon class are HTTP/1.1 servers that listen
2807 on a socket for incoming requests. The HTTP::Daemon is a subclass of
2808 IO::Socket::INET, so you can perform socket operations directly on it too.")
2809 (home-page "https://metacpan.org/release/HTTP-Daemon")))
2811 (define-public perl-http-date
2813 (name "perl-http-date")
2818 "mirror://cpan/authors/id/G/GA/GAAS/HTTP-Date-"
2822 "0cz357kafhhzw7w59iyi0wvhw7rlh5g1lh38230ckw7rl0fr9fg8"))))
2823 (build-system perl-build-system)
2824 (license l:perl-license)
2825 (synopsis "Perl date conversion routines")
2827 "The HTTP::Date module provides functions that deal with date formats
2828 used by the HTTP protocol (and then some more).")
2829 (home-page "https://metacpan.org/release/HTTP-Date")))
2831 (define-public perl-http-message
2833 (name "perl-http-message")
2838 "mirror://cpan/authors/id/O/OA/OALDERS/HTTP-Message-"
2842 "11fbvisyvi6bw8z9iq9fm9mraf69qyds09fblhl9gyvg7ccll93v"))))
2843 (build-system perl-build-system)
2845 `(("perl-try-tiny" ,perl-try-tiny)))
2847 `(("perl-encode-locale" ,perl-encode-locale)
2848 ("perl-http-date" ,perl-http-date)
2849 ("perl-io-html" ,perl-io-html)
2850 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2851 ("perl-uri" ,perl-uri)))
2852 (license l:perl-license)
2853 (synopsis "Perl HTTP style message")
2855 "An HTTP::Message object contains some headers and a content body.")
2856 (home-page "https://metacpan.org/release/ETHER/HTTP-Message-6.11")))
2858 (define-public perl-http-negotiate
2860 (name "perl-http-negotiate")
2865 "mirror://cpan/authors/id/G/GA/GAAS/HTTP-Negotiate-"
2869 "05p053vjs5g91v5cmjnny7a3xzddz5k7vnjw81wfh01ilqg9qwhw"))))
2870 (build-system perl-build-system)
2872 `(("perl-http-message" ,perl-http-message)))
2873 (license l:perl-license)
2874 (synopsis "Perl http content negotiation")
2876 "The HTTP::Negotiate module provides a complete implementation of the
2877 HTTP content negotiation algorithm specified in
2878 draft-ietf-http-v11-spec-00.ps chapter 12. Content negotiation allows for
2879 the selection of a preferred content representation based upon attributes
2880 of the negotiable variants and the value of the various Accept* header
2881 fields in the request.")
2882 (home-page "https://metacpan.org/release/HTTP-Negotiate")))
2884 (define-public perl-http-parser
2886 (name "perl-http-parser")
2891 (uri (string-append "mirror://cpan/authors/id/E/ED/EDECA/"
2892 "HTTP-Parser-" version ".tar.gz"))
2895 "0idwq3jk595xil65lmxz128ha7s3r2n5zknisddpgwnqrghs3igq"))))
2896 (build-system perl-build-system)
2898 `(("perl-http-message" ,perl-http-message)
2899 ("perl-uri" ,perl-uri)))
2900 (home-page "https://metacpan.org/release/HTTP-Parser")
2901 (synopsis "Parse HTTP/1.1 requests")
2902 (description "This is an HTTP request parser. It takes chunks of text as
2903 received and returns a @code{hint} as to what is required, or returns the
2904 HTTP::Request when a complete request has been read. HTTP/1.1 chunking is
2906 (license l:perl-license)))
2908 (define-public perl-http-parser-xs
2910 (name "perl-http-parser-xs")
2915 (uri (string-append "mirror://cpan/authors/id/K/KA/KAZUHO/"
2916 "HTTP-Parser-XS-" version ".tar.gz"))
2919 "02d84xq1mm53c7jl33qyb7v5w4372vydp74z6qj0vc96wcrnhkkr"))))
2920 (build-system perl-build-system)
2922 `(("perl-module-install" ,perl-module-install)))
2923 (home-page "https://metacpan.org/release/HTTP-Parser-XS")
2924 (synopsis "Fast HTTP request parser")
2925 (description "HTTP::Parser::XS is a fast, primitive HTTP request/response
2927 (license l:perl-license)))
2929 (define-public perl-http-request-ascgi
2931 (name "perl-http-request-ascgi")
2936 (uri (string-append "mirror://cpan/authors/id/F/FL/FLORA/"
2937 "HTTP-Request-AsCGI-" version ".tar.gz"))
2940 "1smwmiarwcgq7vjdblnb6ldi2x1s5sk5p15p7xvm5byiqq3znnwl"))))
2941 (build-system perl-build-system)
2943 `(("perl-class-accessor" ,perl-class-accessor)
2944 ("perl-http-message" ,perl-http-message)))
2945 (home-page "https://metacpan.org/release/HTTP-Request-AsCGI")
2946 (synopsis "Set up a CGI environment from an HTTP::Request")
2947 (description "This module provides a convenient way to set up a CGI
2948 environment from an HTTP::Request.")
2949 (license l:perl-license)))
2951 (define-public perl-http-server-simple
2953 (name "perl-http-server-simple")
2958 (uri (string-append "mirror://cpan/authors/id/B/BP/BPS/"
2959 "HTTP-Server-Simple-" version ".tar.gz"))
2962 "0k6bg7k6mjixfzxdkkdrhqvaqmdhjszx0zsk8g0bimiby6j9z4yq"))))
2963 (build-system perl-build-system)
2965 `(("perl-cgi" ,perl-cgi)))
2967 ;; See the discussion of a related tests issue at
2968 ;; https://lists.gnu.org/archive/html/guix-devel/2015-01/msg00346.html
2971 #:phases (modify-phases %standard-phases
2972 (add-before 'configure 'set-search-path
2974 ;; Work around "dotless @INC" build failure.
2976 (string-append (getcwd) ":"
2977 (getenv "PERL5LIB")))
2979 (home-page "https://metacpan.org/release/HTTP-Server-Simple")
2980 (synopsis "Lightweight HTTP server")
2981 (description "HTTP::Server::Simple is a simple standalone HTTP daemon with
2982 no non-core module dependencies. It can be used for building a standalone
2983 http-based UI to your existing tools.")
2984 (license l:perl-license)))
2986 (define-public perl-http-tiny
2988 (name "perl-http-tiny")
2993 (uri (string-append "mirror://cpan/authors/id/D/DA/DAGOLDEN/"
2994 "HTTP-Tiny-" version ".tar.gz"))
2997 "11wkxxqj3ff84rgj9q2gzkdgscwp3fzj205846k9ycqinlpsmgfx"))))
2998 (build-system perl-build-system)
3000 `(("perl-http-cookiejar" ,perl-http-cookiejar)
3001 ("perl-io-socket-ip" ,perl-io-socket-ip)
3002 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
3003 ("perl-mozilla-ca" ,perl-mozilla-ca)
3004 ("perl-net-ssleay" ,perl-net-ssleay)))
3005 (home-page "https://metacpan.org/release/HTTP-Tiny")
3006 (synopsis "HTTP/1.1 client")
3007 (description "This is a very simple HTTP/1.1 client, designed for doing
3008 simple requests without the overhead of a large framework like LWP::UserAgent.
3009 It supports proxies and redirection. It also correctly resumes after EINTR.")
3010 (license l:perl-license)))
3012 (define-public perl-io-html
3014 (name "perl-io-html")
3019 "mirror://cpan/authors/id/C/CJ/CJM/IO-HTML-"
3023 "06nj3a0xgp5jxwxx6ayglfk2v7npf5a7gwkqsjlkapjkybarzqh4"))))
3024 (build-system perl-build-system)
3025 (license l:perl-license)
3026 (synopsis "Perl module to open an HTML file with automatic charset detection")
3028 "IO::HTML provides an easy way to open a file containing HTML while
3029 automatically determining its encoding. It uses the HTML5 encoding sniffing
3030 algorithm specified in section 8.2.2.1 of the draft standard.")
3031 (home-page "https://metacpan.org/release/IO-HTML")))
3033 (define-public perl-io-socket-ip
3035 (name "perl-io-socket-ip")
3040 (uri (string-append "mirror://cpan/authors/id/P/PE/PEVANS/"
3041 "IO-Socket-IP-" version ".tar.gz"))
3044 "15kv5g1yb4a345sk3r5wfr99f868lhfqkddzsgpqddvccfkhv58i"))))
3045 (build-system perl-build-system)
3046 (native-inputs `(("perl-module-build" ,perl-module-build)))
3047 (home-page "https://metacpan.org/release/IO-Socket-IP")
3048 (synopsis "Family-neutral IP socket supporting both IPv4 and IPv6")
3049 (description "This module provides a protocol-independent way to use IPv4
3050 and IPv6 sockets, intended as a replacement for IO::Socket::INET.")
3051 (license l:perl-license)))
3053 (define-public perl-io-socket-ssl
3055 (name "perl-io-socket-ssl")
3059 (uri (string-append "mirror://cpan/authors/id/S/SU/SULLR/"
3060 "IO-Socket-SSL-" version ".tar.gz"))
3063 "11fiifxyvn7njc9p52wgygyw24jz7rh7gnz2ikjphr4l4x9f03rx"))
3064 (patches (search-patches
3065 "perl-io-socket-ssl-openssl-1.0.2f-fix.patch"))))
3066 (build-system perl-build-system)
3068 `(("perl-net-ssleay" ,perl-net-ssleay)
3070 ("perl-uri" ,perl-uri)))
3071 (synopsis "Nearly transparent SSL encapsulation for IO::Socket::INET")
3073 "IO::Socket::SSL makes using SSL/TLS much easier by wrapping the
3074 necessary functionality into the familiar IO::Socket interface and providing
3075 secure defaults whenever possible. This way existing applications can be made
3076 SSL-aware without much effort, at least if you do blocking I/O and don't use
3078 (license l:perl-license)
3079 (home-page "https://github.com/noxxi/p5-io-socket-ssl")))
3081 (define-public perl-libwww
3083 (name "perl-libwww")
3088 "mirror://cpan/authors/id/O/OA/OALDERS/libwww-perl-"
3092 "04a24cx9gs070rvlwf5kanz03y7nnq9k2nmpr01plnm059iprvf6"))))
3093 (build-system perl-build-system)
3095 `(("perl-test-fatal" ,perl-test-fatal)
3096 ("perl-test-needs" ,perl-test-needs)
3097 ("perl-test-requiresinternet" ,perl-test-requiresinternet)))
3099 `(("perl-encode-locale" ,perl-encode-locale)
3100 ("perl-file-listing" ,perl-file-listing)
3101 ("perl-html-parser" ,perl-html-parser)
3102 ("perl-http-cookies" ,perl-http-cookies)
3103 ("perl-http-daemon" ,perl-http-daemon)
3104 ("perl-http-date" ,perl-http-date)
3105 ("perl-http-message" ,perl-http-message)
3106 ("perl-http-negotiate" ,perl-http-negotiate)
3107 ("perl-net-http" ,perl-net-http)
3108 ("perl-try-tiny" ,perl-try-tiny)
3109 ("perl-uri" ,perl-uri)
3110 ("perl-www-robotrules" ,perl-www-robotrules)))
3111 (license l:perl-license)
3112 (synopsis "Perl modules for the WWW")
3114 "The libwww-perl collection is a set of Perl modules which provides a
3115 simple and consistent application programming interface to the
3116 World-Wide Web. The main focus of the library is to provide classes
3117 and functions that allow you to write WWW clients. The library also
3118 contains modules that are of more general use and even classes that
3119 help you implement simple HTTP servers.")
3120 (home-page "https://metacpan.org/release/libwww-perl")))
3122 (define-public perl-lwp-online
3124 (name "perl-lwp-online")
3130 "mirror://cpan/authors/id/A/AD/ADAMK/LWP-Online-"
3134 "176f6vbk1018i0y7xj9d406ndbjgwzan2j9nihxnsahzg2vr2vz2"))))
3135 (build-system perl-build-system)
3137 `(("perl-libwww" ,perl-libwww)
3138 ("perl-uri" ,perl-uri)))
3140 `(("perl-module-install" ,perl-module-install)))
3141 (home-page "https://metacpan.org/release/LWP-Online")
3142 (synopsis "Checks whether your process has access to the web")
3143 (description "This module attempts to answer, as accurately as it can, one
3144 of the nastiest technical questions there is: am I on the internet?
3146 A host of networking and security issues make this problem very difficult.
3147 There are firewalls, proxies (both well behaved and badly behaved). We might
3148 not have DNS. We might not have a network card at all!")
3149 (license l:perl-license)))
3151 (define-public perl-lwp-mediatypes
3153 (name "perl-lwp-mediatypes")
3158 "mirror://cpan/authors/id/G/GA/GAAS/LWP-MediaTypes-"
3162 "0xmnblp962qy02akah30sji8bxrqcyqlff2w95l199ghql60ny8q"))))
3163 (build-system perl-build-system)
3164 (license l:perl-license)
3165 (synopsis "Perl module to guess the media type for a file or a URL")
3167 "The LWP::MediaTypes module provides functions for handling media (also
3168 known as MIME) types and encodings. The mapping from file extensions to
3169 media types is defined by the media.types file. If the ~/.media.types file
3170 exists it is used instead.")
3171 (home-page "https://metacpan.org/release/LWP-MediaTypes")))
3173 (define-public perl-lwp-protocol-https
3175 (name "perl-lwp-protocol-https")
3180 (uri (string-append "mirror://cpan/authors/id/O/OA/OALDERS/"
3181 "LWP-Protocol-https-" version ".tar.gz"))
3184 "1rxrpwylfw1afah0nk96kgkwjbl2p1a7lwx50iipg8c4rx3cjb2j"))))
3185 (build-system perl-build-system)
3188 `(("perl-test-requiresinternet" ,perl-test-requiresinternet)))
3190 `(("perl-io-socket-ssl" ,perl-io-socket-ssl)
3191 ("perl-libwww" ,perl-libwww)
3192 ;; Users should instead make sure SSL_ca_path is set properly.
3193 ;; ("perl-mozilla-ca" ,perl-mozilla-ca)
3194 ("perl-net-http" ,perl-net-http)))
3195 (home-page "https://metacpan.org/release/LWP-Protocol-https")
3196 (synopsis "HTTPS support for LWP::UserAgent")
3197 (description "The LWP::Protocol::https module provides support for using
3198 https schemed URLs with LWP.")
3199 (license l:perl-license)))
3201 (define-public perl-lwp-useragent-determined
3203 (name "perl-lwp-useragent-determined")
3208 (uri (string-append "mirror://cpan/authors/id/A/AL/ALEXMV/"
3209 "LWP-UserAgent-Determined-" version ".tar.gz"))
3212 "0lyvbpjng7yfvyha9rp2y2c6liz5hhplmd2grc8jlsfkih7dbn06"))))
3213 (build-system perl-build-system)
3215 `(("perl-libwww" ,perl-libwww)))
3216 (home-page "https://metacpan.org/release/LWP-UserAgent-Determined")
3217 (synopsis "Virtual browser that retries errors")
3218 (description "LWP::UserAgent::Determined works just like LWP::UserAgent,
3219 except that when you use it to get a web page but run into a
3220 possibly-temporary error (like a DNS lookup timeout), it'll wait a few seconds
3221 and retry a few times.")
3222 (license l:perl-license)))
3224 (define-public perl-net-amazon-s3
3226 (name "perl-net-amazon-s3")
3231 (uri (string-append "mirror://cpan/authors/id/P/PF/PFIG/"
3232 "Net-Amazon-S3-" version ".tar.gz"))
3235 "10dcsq4s2kc9cb1vccx17r187c81drirc3s1hbxh3rb8489kg2b2"))
3236 (patches (search-patches
3237 "perl-net-amazon-s3-moose-warning.patch"))))
3238 (build-system perl-build-system)
3240 `(("perl-libwww" ,perl-libwww)
3241 ("perl-test-exception" ,perl-test-exception)))
3243 `(("perl-data-stream-bulk" ,perl-data-stream-bulk)
3244 ("perl-datetime-format-http" ,perl-datetime-format-http)
3245 ("perl-digest-hmac" ,perl-digest-hmac)
3246 ("perl-digest-md5-file" ,perl-digest-md5-file)
3247 ("perl-file-find-rule" ,perl-file-find-rule)
3248 ("perl-http-date" ,perl-http-date)
3249 ("perl-http-message" ,perl-http-message)
3250 ("perl-lwp-useragent-determined" ,perl-lwp-useragent-determined)
3251 ("perl-mime-types" ,perl-mime-types)
3252 ("perl-moose" ,perl-moose)
3253 ("perl-moosex-strictconstructor" ,perl-moosex-strictconstructor)
3254 ("perl-moosex-types-datetime-morecoercions"
3255 ,perl-moosex-types-datetime-morecoercions)
3256 ("perl-path-class" ,perl-path-class)
3257 ("perl-regexp-common" ,perl-regexp-common)
3258 ("perl-term-encoding" ,perl-term-encoding)
3259 ("perl-term-progressbar-simple" ,perl-term-progressbar-simple)
3260 ("perl-uri" ,perl-uri)
3261 ("perl-xml-libxml" ,perl-xml-libxml)))
3262 (home-page "https://metacpan.org/release/Net-Amazon-S3")
3263 (synopsis "Perl interface to Amazon S3")
3264 (description "This module provides a Perlish interface to Amazon S3.")
3265 (license l:perl-license)))
3267 (define-public perl-net-http
3269 (name "perl-net-http")
3274 "mirror://cpan/authors/id/O/OA/OALDERS/"
3275 "Net-HTTP-" version ".tar.gz"))
3278 "074mp9s37q1j290xa3qj1wwgalzla328i2zpnh73xkmdnwnxyhky"))))
3279 (build-system perl-build-system)
3281 `(("perl-io-socket-ssl" ,perl-io-socket-ssl)
3282 ("perl-uri" ,perl-uri)))
3283 (license l:perl-license)
3284 (synopsis "Perl low-level HTTP connection (client)")
3286 "The Net::HTTP class is a low-level HTTP client. An instance of the
3287 Net::HTTP class represents a connection to an HTTP server. The HTTP protocol
3288 is described in RFC 2616. The Net::HTTP class supports HTTP/1.0 and
3290 (home-page "https://metacpan.org/release/Net-HTTP")))
3292 (define-public perl-net-server
3294 (name "perl-net-server")
3299 (uri (string-append "mirror://cpan/authors/id/R/RH/RHANDOM/"
3300 "Net-Server-" version ".tar.gz"))
3303 "0gw1k9gcw7habbkxvsfa2gz34brlbwcidk6khgsf1qjm0dbccrw2"))))
3304 (build-system perl-build-system)
3305 (home-page "https://metacpan.org/release/Net-Server")
3306 (synopsis "Extensible Perl server engine")
3307 (description "Net::Server is an extensible, generic Perl server engine.
3308 It attempts to be a generic server as in Net::Daemon and NetServer::Generic.
3309 It includes with it the ability to run as an inetd
3310 process (Net::Server::INET), a single connection server (Net::Server or
3311 Net::Server::Single), a forking server (Net::Server::Fork), a preforking
3312 server which maintains a constant number of preforked
3313 children (Net::Server::PreForkSimple), or as a managed preforking server which
3314 maintains the number of children based on server load (Net::Server::PreFork).
3315 In all but the inetd type, the server provides the ability to connect to one
3316 or to multiple server ports.")
3317 (license l:perl-license)))
3319 (define-public perl-net-smtp-ssl
3321 (name "perl-net-smtp-ssl")
3326 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
3327 "Net-SMTP-SSL-" version ".tar.gz"))
3330 "001a6dcfahf7kkyirqkc8jd4fh4fkal7n7vm9c4dblqrvmdc8abv"))))
3331 (build-system perl-build-system)
3333 `(("perl-io-socket-ssl" ,perl-io-socket-ssl)))
3334 (home-page "https://metacpan.org/release/Net-SMTP-SSL")
3335 (synopsis "SSL support for Net::SMTP")
3336 (description "SSL support for Net::SMTP.")
3337 (license l:perl-license)))
3339 (define-public perl-plack
3346 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
3347 "Plack-" version ".tar.gz"))
3350 "081jg0xddzpg2anmqi9i6d7vs6c8z7k557bf8xl6vgb3h95pin5w"))))
3351 (build-system perl-build-system)
3353 `(("perl-test-requires" ,perl-test-requires)
3354 ("perl-file-sharedir-install" ,perl-file-sharedir-install)))
3356 `(("perl-apache-logformat-compiler" ,perl-apache-logformat-compiler)
3357 ("perl-devel-stacktrace" ,perl-devel-stacktrace)
3358 ("perl-devel-stacktrace-ashtml" ,perl-devel-stacktrace-ashtml)
3359 ("perl-file-sharedir" ,perl-file-sharedir)
3360 ("perl-hash-multivalue" ,perl-hash-multivalue)
3361 ("perl-http-body" ,perl-http-body)
3362 ("perl-http-message" ,perl-http-message)
3363 ("perl-http-tiny" ,perl-http-tiny)
3364 ("perl-libwww" ,perl-libwww)
3365 ("perl-stream-buffered" ,perl-stream-buffered)
3366 ("perl-test-tcp" ,perl-test-tcp)
3367 ("perl-try-tiny" ,perl-try-tiny)
3368 ("perl-uri" ,perl-uri)))
3369 (home-page "https://metacpan.org/release/Plack")
3370 (synopsis "Perl Superglue for Web frameworks and servers (PSGI toolkit)")
3371 (description "Plack is a set of tools for using the PSGI stack. It
3372 contains middleware components, a reference server, and utilities for Web
3373 application frameworks. Plack is like Ruby's Rack or Python's Paste for
3375 (license l:perl-license)))
3377 (define-public perl-plack-middleware-fixmissingbodyinredirect
3379 (name "perl-plack-middleware-fixmissingbodyinredirect")
3384 (uri (string-append "mirror://cpan/authors/id/S/SW/SWEETKID/"
3385 "Plack-Middleware-FixMissingBodyInRedirect-"
3389 "14dkrmccq7a5vpymx5dv8032gfcvhsw2i6v5sh3c4ym5ymlx08kc"))))
3390 (build-system perl-build-system)
3392 `(("perl-html-parser" ,perl-html-parser) ;for HTML::Entities
3393 ("perl-http-message" ,perl-http-message)
3394 ("perl-plack" ,perl-plack))) ;for Plack::Test
3396 "https://metacpan.org/release/Plack-Middleware-FixMissingBodyInRedirect")
3397 (synopsis "Plack::Middleware which sets body for redirect response")
3398 (description "This module sets the body in redirect response, if it's not
3400 (license l:perl-license)))
3402 (define-public perl-plack-middleware-methodoverride
3404 (name "perl-plack-middleware-methodoverride")
3409 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
3410 "Plack-Middleware-MethodOverride-"
3413 (base32 "1wdmmav3rbhv49zpw311zrxxqmg1fz3f3q9src0ypgs8zcp5myyv"))))
3414 (build-system perl-build-system)
3416 `(("perl-module-build" ,perl-module-build)))
3418 `(("perl-plack" ,perl-plack)))
3419 (home-page "https://metacpan.org/release/Plack-Middleware-MethodOverride")
3420 (synopsis "Override REST methods to Plack apps via POST")
3421 (description "This middleware allows for POST requests that pretend to be
3422 something else: by adding either a header named X-HTTP-Method-Override to the
3423 request, or a query parameter named x-tunneled-method to the URI, the client
3424 can say what method it actually meant.")
3425 (license l:perl-license)))
3427 (define-public perl-plack-middleware-removeredundantbody
3429 (name "perl-plack-middleware-removeredundantbody")
3434 (uri (string-append "mirror://cpan/authors/id/S/SW/SWEETKID/"
3435 "Plack-Middleware-RemoveRedundantBody-"
3438 (base32 "1hz3kgb5vw4r02gfk9i911f5ykvz55lrsx45bdcllk2bszal3f34"))))
3439 (build-system perl-build-system)
3441 `(("perl-plack" ,perl-plack)))
3443 "https://metacpan.org/release/Plack-Middleware-RemoveRedundantBody")
3444 (synopsis "Plack::Middleware which removes body for HTTP response")
3445 (description "This module removes the body in an HTTP response if it's not
3447 (license l:perl-license)))
3449 (define-public perl-plack-middleware-reverseproxy
3451 (name "perl-plack-middleware-reverseproxy")
3456 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
3457 "Plack-Middleware-ReverseProxy-"
3460 (base32 "0a512n62pnk5ayj3zdzyj50iy1qi8nwh6ygks2h7nrh7gp9k2jc7"))))
3461 (build-system perl-build-system)
3463 `(("perl-module-install" ,perl-module-install)))
3465 `(("perl-plack" ,perl-plack)))
3466 (home-page "https://metacpan.org/release/Plack-Middleware-ReverseProxy")
3467 (synopsis "Supports app to run as a reverse proxy backend")
3468 (description "Plack::Middleware::ReverseProxy resets some HTTP headers,
3469 which are changed by reverse-proxy. You can specify the reverse proxy address
3470 and stop fake requests using @code{enable_if} directive in your app.psgi.")
3471 (license l:perl-license)))
3473 (define-public perl-plack-test-externalserver
3475 (name "perl-plack-test-externalserver")
3480 (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/"
3481 "Plack-Test-ExternalServer-" version ".tar.gz"))
3483 (base32 "1l1yj1l25679x7cbpd27ii7s1f1ajpkspif9xqnl21hczrbmrbsv"))))
3484 (build-system perl-build-system)
3486 `(("perl-plack" ,perl-plack)))
3487 (home-page "https://metacpan.org/release/Plack-Test-ExternalServer")
3488 (synopsis "Run HTTP tests on external live servers")
3489 (description "This module allows your to run your Plack::Test tests
3490 against an external server instead of just against a local application through
3491 either mocked HTTP or a locally spawned server.")
3492 (license l:perl-license)))
3494 (define-public perl-test-tcp
3496 (name "perl-test-tcp")
3501 (uri (string-append "mirror://cpan/authors/id/T/TO/TOKUHIROM/"
3502 "Test-TCP-" version ".tar.gz"))
3504 (base32 "14ahzklq3xgmwj58p9vdcfgpggrmh3nigq5mzqk4wakbb6fjs0fx"))))
3505 (build-system perl-build-system)
3507 `(("perl-test-sharedfork" ,perl-test-sharedfork)))
3508 (arguments `(#:tests? #f)) ;related to signaling in t/05_sigint.t
3509 (home-page "https://metacpan.org/release/Test-TCP")
3510 (synopsis "Testing TCP programs")
3511 (description "Test::TCP is test utilities for TCP/IP programs.")
3512 (license l:perl-license)))
3514 (define-public perl-test-www-mechanize
3516 (name "perl-test-www-mechanize")
3521 (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/"
3522 "Test-WWW-Mechanize-" version ".tar.gz"))
3524 (base32 "1jsywlbxhqw39ij7s8vmgff5vys58vlfaq27072awacnxc65aal4"))))
3525 (build-system perl-build-system)
3527 `(("perl-carp-assert-more" ,perl-carp-assert-more)
3528 ("perl-html-form" ,perl-html-form)
3529 ("perl-html-lint" ,perl-html-lint)
3530 ("perl-http-server-simple" ,perl-http-server-simple)
3531 ("perl-libwww" ,perl-libwww)
3532 ("perl-test-longstring" ,perl-test-longstring)
3533 ("perl-www-mechanize" ,perl-www-mechanize)))
3534 (home-page "https://metacpan.org/release/Test-WWW-Mechanize")
3535 (synopsis "Testing-specific WWW::Mechanize subclass")
3536 (description "Test::WWW::Mechanize is a subclass of the Perl module
3537 WWW::Mechanize that incorporates features for web application testing.")
3538 (license l:artistic2.0)))
3540 (define-public perl-test-www-mechanize-catalyst
3542 (name "perl-test-www-mechanize-catalyst")
3547 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTROUT/"
3548 "Test-WWW-Mechanize-Catalyst-" version ".tar.gz"))
3550 (base32 "1cdc2q16vs6fb335pzaislz2rx1ph9acaxyp7v5hv9xbwwddwfqq"))))
3551 (build-system perl-build-system)
3553 `(("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
3554 ("perl-catalyst-plugin-session-state-cookie"
3555 ,perl-catalyst-plugin-session-state-cookie)
3556 ("perl-module-install" ,perl-module-install)
3557 ("perl-test-exception" ,perl-test-exception)
3558 ("perl-test-pod" ,perl-test-pod)
3559 ("perl-test-utf8" ,perl-test-utf8)))
3561 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
3562 ("perl-class-load" ,perl-class-load)
3563 ("perl-libwww" ,perl-libwww)
3564 ("perl-moose" ,perl-moose)
3565 ("perl-namespace-clean" ,perl-namespace-clean)
3566 ("perl-test-www-mechanize" ,perl-test-www-mechanize)
3567 ("perl-www-mechanize" ,perl-www-mechanize)))
3568 (home-page "https://metacpan.org/release/Test-WWW-Mechanize-Catalyst")
3569 (synopsis "Test::WWW::Mechanize for Catalyst")
3570 (description "The Test::WWW::Mechanize::Catalyst module meshes the
3571 Test::WWW:Mechanize module and the Catalyst web application framework to allow
3572 testing of Catalyst applications without needing to start up a web server.")
3573 (license l:perl-license)))
3575 (define-public perl-test-www-mechanize-psgi
3577 (name "perl-test-www-mechanize-psgi")
3582 (uri (string-append "mirror://cpan/authors/id/O/OA/OALDERS/"
3583 "Test-WWW-Mechanize-PSGI-" version ".tar.gz"))
3586 "0fsh2i05kf1kfavv2r9kmnjl7qlyqrd11ikc0qcqzzxsqzzjkg9r"))))
3587 (build-system perl-build-system)
3589 `(("perl-test-pod" ,perl-test-pod)))
3591 `(("perl-plack" ,perl-plack)
3592 ("perl-test-www-mechanize" ,perl-test-www-mechanize)))
3593 (home-page "https://metacpan.org/release/Test-WWW-Mechanize-PSGI")
3594 (synopsis "Test PSGI programs using WWW::Mechanize")
3595 (description "PSGI is a specification to decouple web server environments
3596 from web application framework code. Test::WWW::Mechanize is a subclass of
3597 WWW::Mechanize that incorporates features for web application testing. The
3598 Test::WWW::Mechanize::PSGI module meshes the two to allow easy testing of PSGI
3600 (license l:perl-license)))
3602 (define-public perl-uri
3608 (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/"
3609 "URI-" version ".tar.gz"))
3612 "04z4xwiryrbxxi48bwbkgq9q9pwfgqry3wp0ramcrwv3dx5ap9yc"))))
3613 (build-system perl-build-system)
3616 `(("perl-test-needs" ,perl-test-needs)))
3617 (license l:perl-license)
3618 (synopsis "Perl Uniform Resource Identifiers (absolute and relative)")
3620 "The URI module implements the URI class. Objects of this class
3621 represent \"Uniform Resource Identifier references\" as specified in RFC 2396
3622 and updated by RFC 2732.")
3623 (home-page "https://metacpan.org/release/URI")))
3625 (define-public perl-uri-fetch
3627 (name "perl-uri-fetch")
3631 (uri (string-append "mirror://cpan/authors/id/N/NE/NEILB/"
3632 "URI-Fetch-" version ".tar.gz"))
3635 "0rw6xiqm70s218aii9id3hf8j3pz6n22xnwd8v9m1ff2bnh63c0d"))))
3636 (build-system perl-build-system)
3638 `(#:tests? #f)) ; Tests require internet connection to succeed
3640 `(("perl-class-errorhandler" ,perl-class-errorhandler)
3641 ("perl-libwww" ,perl-libwww)
3642 ("perl-uri" ,perl-uri)))
3643 (home-page "https://metacpan.org/release/URI-Fetch")
3644 (synopsis "Smart URI fetching/caching")
3645 (description "@code{URI::Fetch} is a smart client for fetching HTTP pages,
3646 notably syndication feeds (RSS, Atom, and others), in an intelligent, bandwidth-
3647 and time-saving way.")
3648 (license l:perl-license)))
3650 (define-public perl-uri-find
3652 (name "perl-uri-find")
3653 (version "20160806")
3657 (uri (string-append "mirror://cpan/authors/id/M/MS/MSCHWERN/"
3658 "URI-Find-" version ".tar.gz"))
3661 "1mk3jv8x0mcq3ajrn9garnxd0jc7sw4pkwqi88r5apqvlljs84z2"))))
3662 (build-system perl-build-system)
3664 `(("perl-module-build" ,perl-module-build)))
3666 `(("perl-uri" ,perl-uri)))
3667 (home-page "https://metacpan.org/release/URI-Find")
3668 (synopsis "Find URIs in arbitrary text")
3669 (description "This module finds URIs and URLs (according to what URI.pm
3670 considers a URI) in plain text. It only finds URIs which include a
3671 scheme (http:// or the like), for something a bit less strict, consider
3672 URI::Find::Schemeless. For a command-line interface, urifind is provided.")
3673 (license l:perl-license)))
3675 (define-public perl-uri-ws
3677 (name "perl-uri-ws")
3682 (uri (string-append "mirror://cpan/authors/id/P/PL/PLICEASE/"
3683 "URI-ws-" version ".tar.gz"))
3686 "1vs1wm80sq685944g1l4a0fxcbccc00c0f9648yabdmcf90hwsvf"))))
3687 (build-system perl-build-system)
3689 `(("perl-uri" ,perl-uri)))
3690 (home-page "https://metacpan.org/release/URI-ws")
3691 (synopsis "WebSocket support for URI package")
3692 (description "With this module, the URI package provides the same set of
3693 methods for WebSocket URIs as it does for HTTP URIs.")
3694 (license l:perl-license)))
3696 (define-public perl-uri-template
3698 (name "perl-uri-template")
3702 (uri (string-append "mirror://cpan/authors/id/B/BR/BRICAS/URI-Template-"
3706 "1phibcmam2hklrddzj79l43va1gcqpyszbw21ynxq53ynmhjvbk8"))))
3707 (build-system perl-build-system)
3709 `(("perl-uri" ,perl-uri)))
3711 `(("perl-test-pod-coverage" ,perl-test-pod-coverage)
3712 ("perl-test-pod" ,perl-test-pod)
3713 ("perl-module-install" ,perl-module-install)
3714 ("perl-json" ,perl-json)))
3715 (home-page "https://metacpan.org/release/URI-Template")
3716 (synopsis "Object for handling URI templates")
3717 (description "This perl module provides a wrapper around URI templates as described in
3719 (license l:perl-license)))
3721 (define-public perl-www-curl
3723 (name "perl-www-curl")
3728 "mirror://cpan/authors/id/S/SZ/SZBALINT/WWW-Curl-"
3730 (patches (search-patches "perl-www-curl-remove-symbol.patch"))
3733 "1fmp9aib1kaps9vhs4dwxn7b15kgnlz9f714bxvqsd1j1q8spzsj"))))
3734 (build-system perl-build-system)
3736 '(#:tests? #f ;XXX: tests require network access
3738 #:phases (modify-phases %standard-phases
3739 (add-before 'configure 'set-search-path
3741 ;; Work around "dotless @INC" build failure.
3743 (string-append (getcwd) ":"
3744 (getenv "PERL5LIB")))
3747 `(("perl-module-install" ,perl-module-install)))
3748 (inputs `(("curl" ,curl)))
3749 (synopsis "Perl extension interface for libcurl")
3751 "This is a Perl extension interface for the libcurl file downloading
3753 (license l:perl-license)
3754 (home-page "https://metacpan.org/release/WWW-Curl")))
3756 (define-public perl-www-mechanize
3758 (name "perl-www-mechanize")
3763 (uri (string-append "mirror://cpan/authors/id/O/OA/OALDERS/"
3764 "WWW-Mechanize-" version ".tar.gz"))
3766 (base32 "0cb14m1vhaf0mgn2fqwi5hm72xhfi77hpq2g57swgy0w83x7m27b"))))
3767 (build-system perl-build-system)
3768 (native-inputs ;only for tests
3769 `(("perl-cgi" ,perl-cgi)
3770 ("perl-test-deep" ,perl-test-deep)
3771 ("perl-test-fatal" ,perl-test-fatal)
3772 ("perl-test-output" ,perl-test-output)
3773 ("perl-test-warnings" ,perl-test-warnings)))
3775 `(("perl-html-form" ,perl-html-form)
3776 ("perl-html-parser" ,perl-html-parser)
3777 ("perl-html-tree" ,perl-html-tree)
3778 ("perl-http-message" ,perl-http-message)
3779 ("perl-http-server-simple" ,perl-http-server-simple)
3780 ("perl-libwww" ,perl-libwww)
3781 ("perl-test-warn" ,perl-test-warn)
3782 ("perl-uri" ,perl-uri)))
3783 (home-page "https://metacpan.org/release/WWW-Mechanize")
3784 (synopsis "Web browsing in a Perl object")
3785 (description "WWW::Mechanize is a Perl module for stateful programmatic
3786 web browsing, used for automating interaction with websites.")
3787 (license l:perl-license)))
3789 (define-public perl-www-opensearch
3791 (name "perl-www-opensearch")
3795 (uri (string-append "mirror://cpan/authors/id/B/BR/BRICAS/"
3796 "WWW-OpenSearch-" version ".tar.gz"))
3799 "1yxplx1q1qk2fvnzqrbk01lz26fy1lyhay51a3ky7q3jgh9p01rb"))))
3800 (build-system perl-build-system)
3802 `(("perl-class-errorhandler" ,perl-class-errorhandler)
3803 ("perl-datetime" ,perl-datetime)
3804 ("perl-datetime-format-mail" ,perl-datetime-format-mail)
3805 ("perl-datetime-format-w3cdtf" ,perl-datetime-format-w3cdtf)
3806 ("perl-feed-find" ,perl-feed-find)
3807 ("perl-module-install" ,perl-module-install)
3808 ("perl-module-pluggable" ,perl-module-pluggable)
3809 ("perl-uri-fetch" ,perl-uri-fetch)
3810 ("perl-test-simple" ,perl-test-simple)
3811 ("perl-xml-atom" ,perl-xml-atom)
3812 ("perl-xml-rss" ,perl-xml-rss)))
3814 `(("perl-data-page" ,perl-data-page)
3815 ("perl-libwww" ,perl-libwww)
3816 ("perl-uri" ,perl-uri)
3817 ("perl-uri-template" ,perl-uri-template)
3818 ("perl-xml-feed" ,perl-xml-feed)
3819 ("perl-xml-libxml" ,perl-xml-libxml)))
3820 (home-page "https://metacpan.org/release/WWW-OpenSearch")
3821 (synopsis "Search A9 OpenSearch compatible engines")
3823 "@code{WWW::OpenSearch} is a module to search @url{A9's OpenSearch,
3824 http://opensearch.a9.com} compatible search engines.")
3825 (license l:perl-license)))
3827 (define-public perl-www-robotrules
3829 (name "perl-www-robotrules")
3834 "mirror://cpan/authors/id/G/GA/GAAS/WWW-RobotRules-"
3838 "07m50dp5n5jxv3m93i55qvnd67a6g7cvbvlik115kmc8lbkh5da6"))))
3839 (build-system perl-build-system)
3841 `(("perl-uri" ,perl-uri)))
3842 (license l:perl-license)
3843 (synopsis "Perl database of robots.txt-derived permissions")
3845 "The WWW::RobotRules module parses /robots.txt files as specified in
3846 \"A Standard for Robot Exclusion\", at
3847 <http://www.robotstxt.org/wc/norobots.html>. Webmasters can use the
3848 /robots.txt file to forbid conforming robots from accessing parts of
3850 (home-page "https://metacpan.org/release/WWW-RobotRules")))
3852 (define-public python-feedparser
3854 (name "python-feedparser")
3859 (uri (pypi-uri "feedparser" version ".tar.bz2"))
3862 "00hb4qg2am06g81mygfi1jsbx8830024jm45g6qp9g8fr6am91yf"))))
3863 (build-system python-build-system)
3867 "https://github.com/kurtmckee/feedparser")
3868 (synopsis "Parse feeds in Python")
3870 "Universal feed parser which handles RSS 0.9x, RSS 1.0, RSS 2.0,
3871 CDF, Atom 0.3, and Atom 1.0 feeds.")
3872 (license (list l:bsd-2 ; source code
3873 l:freebsd-doc)))) ; documentation
3875 (define-public python2-feedparser
3876 (package-with-python2 python-feedparser))
3878 (define-public gumbo-parser
3880 (name "gumbo-parser")
3884 (uri (string-append "https://github.com/google/"
3885 "gumbo-parser/archive/v" version ".tar.gz"))
3886 (file-name (string-append name "-" version ".tar.gz"))
3889 "1bgg2kbj311pqdzw2v33za7k66g1rv44kkvvnz2gnpaasi9k0ii8"))))
3890 (build-system gnu-build-system)
3892 `(#:tests? #f)) ;tests require bundling googletest sources
3893 ;; The release tarball lacks the generated files.
3895 `(("autoconf" ,autoconf)
3896 ("automake" ,automake)
3897 ("libtool" ,libtool)))
3898 (home-page "https://github.com/google/gumbo-parser")
3899 (synopsis "HTML5 parsing library")
3901 "Gumbo is an implementation of the HTML5 parsing algorithm implemented as
3902 a pure C99 library.")
3903 (license l:asl2.0)))
3905 (define-public uwsgi
3911 (uri (string-append "https://projects.unbit.it/downloads/uwsgi-"
3915 "10zmk4npknigmbqcq1wmhd461dk93159px172112vyq0i19sqwj9"))))
3916 (build-system gnu-build-system)
3917 (outputs '("out" "python"))
3919 '(;; XXX: The 'check' target runs cppcheck to do static code analysis.
3920 ;; But there is no obvious way to run the real tests.
3923 (modify-phases %standard-phases
3925 ;; Configuration is done by writing an ini file.
3926 (lambda* (#:key outputs #:allow-other-keys)
3927 (let* ((out (assoc-ref outputs "out"))
3928 (bindir (string-append out "/bin"))
3929 (plugindir (string-append out "/lib/uwsgi")))
3930 ;; The build phase outputs files to these directories directly.
3933 ;; XXX: Enable other plugins.
3934 (call-with-output-file "buildconf/guix.ini"
3936 (format port "[uwsgi]
3942 plugins = cgi,python
3944 " bindir plugindir))))
3945 (setenv "PROFILE" "guix")
3948 ;; Move plugins into their own output.
3949 (lambda* (#:key outputs #:allow-other-keys)
3950 (let* ((out (assoc-ref outputs "out"))
3951 (plugindir (string-append out "/lib/uwsgi"))
3952 (python-plugin (string-append
3953 plugindir "/python_plugin.so")))
3954 (install-file python-plugin
3956 (assoc-ref outputs "python") "/lib/uwsgi"))
3957 (delete-file python-plugin)
3960 `(("pkg-config" ,pkg-config)
3961 ("python" ,python-wrapper)))
3963 `(("jansson" ,jansson)
3964 ("libxml2" ,libxml2)
3965 ("libyaml" ,libyaml)
3966 ("openssl" ,openssl)
3970 ("python" ,python)))
3971 (home-page "https://uwsgi-docs.readthedocs.org/")
3972 (synopsis "Application container server")
3974 "uWSGI presents a complete stack for networked/clustered web applications,
3975 implementing message/object passing, caching, RPC and process management.
3976 It uses the uwsgi protocol for all the networking/interprocess communications.")
3977 (license l:gpl2+))) ; with linking exception
3985 (uri (string-append "https://github.com/stedolan/jq"
3986 "/releases/download/jq-" version
3987 "/jq-" version ".tar.gz"))
3990 "1a76f46a652i2g333kfvrl6mp2w7whf6h1yly519izg4y967h9cn"))))
3992 `(("oniguruma" ,oniguruma)))
3994 `(;; TODO fix gems to generate documentation
3996 ;;("bundler" ,bundler)
3997 ("valgrind" ,valgrind)))
3998 (build-system gnu-build-system)
3999 (home-page "http://stedolan.github.io/jq/")
4000 (synopsis "Command-line JSON processor")
4001 (description "jq is like sed for JSON data – you can use it to slice and
4002 filter and map and transform structured data with the same ease that sed, awk,
4003 grep and friends let you play with text. It is written in portable C. jq can
4004 mangle the data format that you have into the one that you want with very
4005 little effort, and the program to do so is often shorter and simpler than
4007 (license (list l:expat l:cc-by3.0))))
4009 (define-public uhttpmock
4016 (uri (string-append "http://tecnocode.co.uk/downloads/uhttpmock/"
4017 name "-" version ".tar.xz"))
4020 "163py4klka423x7li2b685gmg3a6hjf074mlff2ajhmi3l0lm8x6"))))
4021 (build-system glib-or-gtk-build-system)
4023 `(("gobject-introspection" ,gobject-introspection)
4025 ("glib-networking" ,glib-networking)
4026 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4027 ("pkg-config" ,pkg-config)))
4029 `(("libsoup" ,libsoup)))
4030 (home-page "https://gitlab.com/groups/uhttpmock")
4031 (synopsis "Library for mocking web service APIs which use HTTP or HTTPS")
4033 "Uhttpmock is a project for mocking web service APIs which use HTTP or
4034 HTTPS. It provides a library, libuhttpmock, which implements recording and
4035 playback of HTTP request/response traces.")
4036 (license l:lgpl2.1+)))
4041 (version "2012-05-31")
4045 "http://www.home.unix-ag.org/simon/woof-"
4049 "0wjmjhpg6xlid33yi59j47q2qadz20sijrqsjahj30vngz856hyq"))))
4050 (build-system trivial-build-system)
4052 '(#:modules ((guix build utils))
4055 (use-modules (guix build utils))
4056 (let* ((source (assoc-ref %build-inputs "source"))
4057 (out (assoc-ref %outputs "out"))
4058 (bin (string-append out "/bin"))
4059 (python (assoc-ref %build-inputs "python")))
4061 (with-directory-excursion bin
4062 (copy-file source "woof")
4063 (patch-shebang "woof" (list (string-append python "/bin")))
4064 (chmod "woof" #o555))
4066 (inputs `(("python" ,python-2)))
4067 (home-page "http://www.home.unix-ag.org/simon/woof.html")
4068 (synopsis "Single file web server")
4069 (description "Woof (Web Offer One File) is a small simple web server that
4070 can easily be invoked on a single file. Your partner can access the file with
4071 tools they trust (e.g. wget).")
4074 (define netsurf-buildsystem
4076 (name "netsurf-buildsystem")
4081 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4082 "buildsystem-" version ".tar.gz"))
4085 "1q23aaycv35ma5471l1gxib8lfq2s9kprrkaqgfc926d04rlbmhw"))))
4086 (build-system gnu-build-system)
4087 (inputs `(("perl" ,perl)))
4089 '(#:make-flags (list (string-append "PREFIX=" %output))
4090 #:tests? #f ;no tests
4091 #:phases (modify-phases %standard-phases
4094 (home-page "http://www.netsurf-browser.org")
4095 (synopsis "Build system for the Netsurf project")
4097 "This package provides the shared build system for Netsurf project
4101 (define netsurf-buildsystem-arguments
4102 `(#:make-flags `("COMPONENT_TYPE=lib-shared"
4103 "CC=gcc" "BUILD_CC=gcc"
4104 ,(string-append "PREFIX=" %output)
4105 ,(string-append "NSSHARED="
4106 (assoc-ref %build-inputs
4107 "netsurf-buildsystem")
4108 "/share/netsurf-buildsystem"))
4109 #:test-target "test"
4110 #:phases (modify-phases %standard-phases
4111 (delete 'configure))))
4113 (define-public libparserutils
4115 (name "libparserutils")
4120 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4121 name "-" version "-src.tar.gz"))
4124 "1n2794y2l0c8nv8z2pxwfnbn882987ifmxjv60zdxkhcndhswarj"))))
4125 (build-system gnu-build-system)
4127 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4128 ("pkg-config" ,pkg-config)
4129 ("perl" ,perl))) ;for test harness
4130 (arguments netsurf-buildsystem-arguments)
4131 (home-page "http://www.netsurf-browser.org/projects/libparserutils/")
4132 (synopsis "Parser building library")
4134 "LibParserUtils is a library for building efficient parsers, written in
4135 C. It is developed as part of the NetSurf project.")
4138 (define-public hubbub
4145 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4146 "lib" name "-" version "-src.tar.gz"))
4149 "13yq1k96a7972x4r71i9bcsz9yiglj0yx7lj0ziq5r94w5my70ma"))
4150 (patches (search-patches "hubbub-sort-entities.patch"))))
4151 (build-system gnu-build-system)
4153 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4154 ("pkg-config" ,pkg-config)
4155 ("doxygen" ,doxygen)
4156 ("json-c" ,json-c-0.12) ; check whether json-c-0.12 can be removed
4159 `(("libparserutils" ,libparserutils))) ;for libhubbub.pc
4160 (arguments netsurf-buildsystem-arguments)
4161 (home-page "http://www.netsurf-browser.org/projects/hubbub/")
4162 (synopsis "HTML5 compliant parsing library")
4164 "Hubbub is an HTML5 compliant parsing library, written in C, which can
4165 parse both valid and invalid web content. It is developed as part of the
4169 (define-public ikiwiki
4172 (version "3.20170111")
4176 (uri (string-append "http://snapshot.debian.org/archive/debian/"
4177 "20170111T215449Z/pool/main/i/ikiwiki/ikiwiki_"
4181 "00d7yzv426fvqbhvzyafddv7fa6b4j2647b0wi371wd5yjj9j3sz"))))
4182 (build-system perl-build-system)
4184 `(;; Image tests fail
4186 ;; Test Summary Report
4187 ;; -------------------
4188 ;; t/img.t (Wstat: 2304 Tests: 62 Failed: 9)
4189 ;; Failed tests: 21, 27-28, 30-35
4190 ;; Non-zero exit status: 9
4193 (modify-phases %standard-phases
4194 (add-after 'unpack 'include-PERL5LIB-in-wrapper
4196 (substitute* "IkiWiki/Wrapper.pm"
4197 (("^@wrapper\\_hooks")
4200 " addenv(\"PERL5LIB\", \""
4203 (add-after 'patch-source-shebangs 'patch-Makefile
4205 (substitute* "Makefile.PL"
4206 (("SYSCONFDIR\\?=") "SYSCONFDIR?=$(PREFIX)"))
4208 (add-after 'install 'wrap-programs
4209 (lambda* (#:key outputs #:allow-other-keys)
4210 (let* ((out (assoc-ref outputs "out"))
4211 (bin (string-append out "/bin/"))
4212 (path (getenv "PERL5LIB")))
4213 (for-each (lambda (file)
4215 `("PERL5LIB" ":" prefix (,path))))
4220 ("perl-html-tagset" ,perl-html-tagset)
4221 ("perl-timedate" ,perl-timedate)
4222 ("perl-xml-sax" ,perl-xml-sax)
4223 ("perl-xml-simple" ,perl-xml-simple)
4224 ("gettext" ,gettext-minimal)
4225 ("subversion" ,subversion)
4229 ("mercurial" ,mercurial)))
4231 `(("python" ,python-wrapper)
4232 ("perl-cgi-formbuilder" ,perl-cgi-formbuilder)
4233 ("perl-cgi-session" ,perl-cgi-session)
4234 ("perl-cgi-simple" ,perl-cgi-simple)
4235 ("perl-db-file" ,perl-db-file)
4236 ("perl-html-parser" ,perl-html-parser)
4237 ("perl-html-scrubber" ,perl-html-scrubber)
4238 ("perl-html-template" ,perl-html-template)
4239 ("perl-image-magick" ,perl-image-magick)
4240 ("perl-json" ,perl-json)
4241 ("perl-text-markdown-discount" ,perl-text-markdown-discount)
4242 ("perl-uri" ,perl-uri)
4243 ("perl-yaml-libyaml" ,perl-yaml-libyaml)))
4244 (home-page "https://ikiwiki.info/")
4245 (synopsis "Wiki compiler, capable of generating HTML")
4247 "Ikiwiki is a wiki compiler, capable of generating a static set of web
4248 pages, but also incorporating dynamic features like a web based editor and
4252 (define-public libwapcaplet
4254 (name "libwapcaplet")
4259 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4260 name "-" version "-src.tar.gz"))
4263 "134pljlm8kby1yy49826f0ixnpig8iqak6xpyl3aivagnsjnxzy8"))))
4264 (build-system gnu-build-system)
4266 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4267 ("pkg-config" ,pkg-config)
4268 ("check" ,check))) ;for tests
4269 (arguments netsurf-buildsystem-arguments)
4270 (home-page "http://www.netsurf-browser.org/projects/libwapcaplet/")
4271 (synopsis "String internment library")
4273 "LibWapcaplet provides a reference counted string internment system
4274 designed to store small strings and allow rapid comparison of them. It is
4275 developed as part of the Netsurf project.")
4278 (define-public libcss
4285 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4286 name "-" version "-src.tar.gz"))
4289 "0pxdqbxn6brj03nv57bsvac5n70k4scn3r5msaw0jgn2k06lk81m"))))
4290 (build-system gnu-build-system)
4292 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4293 ("pkg-config" ,pkg-config)
4295 (propagated-inputs ;needed for libcss.pc
4296 `(("libparserutils" ,libparserutils)
4297 ("libwapcaplet" ,libwapcaplet)))
4298 (arguments netsurf-buildsystem-arguments)
4299 (home-page "http://www.netsurf-browser.org/projects/libcss/")
4300 (synopsis "CSS parser and selection library")
4302 "LibCSS is a CSS (Cascading Style Sheet) parser and selection engine,
4303 written in C. It is developed as part of the NetSurf project.")
4306 (define-public libdom
4313 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4314 name "-" version "-src.tar.gz"))
4317 "1919757mdl3gii2pl6kzm8b1cal0h06r5nqd2y0kny6hc5yrhsp0"))))
4318 (build-system gnu-build-system)
4320 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4321 ("pkg-config" ,pkg-config)
4322 ("perl" ,perl) ;for test harness
4323 ("perl-libxml" ,perl-libxml)
4324 ("perl-switch" ,perl-switch)
4325 ("perl-xml-xpath" ,perl-xml-xpath)))
4327 `(("libparserutils" ,libparserutils)
4328 ("libwapcaplet" ,libwapcaplet)))
4330 `(("expat" ,expat) ;needed for headers and linking
4331 ("hubbub" ,hubbub))) ;for libdom.pc
4333 `(#:tests? #f ;TODO: re-enable. tests take a looong time.
4334 ,@netsurf-buildsystem-arguments))
4335 (home-page "http://www.netsurf-browser.org/projects/libdom/")
4336 (synopsis "Implementation of the W3C DOM")
4338 "LibDOM is an implementation of the W3C DOM, written in C. It is
4339 developed as part of the NetSurf project.")
4342 (define-public libsvgtiny
4349 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4350 name "-" version "-src.tar.gz"))
4353 "10bpkmvfpydj74im3r6kqm9vnvgib6afy0alx71q5n0w5yawy39c"))))
4354 (build-system gnu-build-system)
4356 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4357 ("pkg-config" ,pkg-config)
4358 ("gperf" ,gperf-3.0)))
4360 `(("libwapcaplet" ,libwapcaplet)))
4362 `(("libdom" ,libdom))) ;for libsvgtiny.pc
4363 (arguments netsurf-buildsystem-arguments)
4364 (home-page "http://www.netsurf-browser.org/projects/libsvgtiny/")
4365 (synopsis "Library for parsing SVG files")
4367 "Libsvgtiny takes some SVG as input and returns a list of paths and texts
4368 which can be rendered easily, as defined in
4369 @url{http://www.w3.org/TR/SVGMobile/}. It is developed as part of the NetSurf
4373 (define-public libnsbmp
4380 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4381 name "-" version "-src.tar.gz"))
4384 "0lib2m07d1i0k80m4blkwnj0g7rha4jbm5vrgd0wwbkyfa0hvk35"))))
4385 (build-system gnu-build-system)
4387 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
4388 (arguments netsurf-buildsystem-arguments)
4389 (home-page "http://www.netsurf-browser.org/projects/libnsbmp/")
4390 (synopsis "Decoding library for BMP and ICO files")
4392 "Libnsbmp is a decoding library for BMP and ICO image file formats,
4393 written in C. It is developed as part of the NetSurf project.")
4396 (define-public libnsgif
4403 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4404 name "-" version "-src.tar.gz"))
4407 "0jwshypgmx16xlsbx3d8njk8a5khazlplca5mxd3rdbhrlsabbly"))))
4408 (build-system gnu-build-system)
4410 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
4411 (arguments netsurf-buildsystem-arguments)
4412 (home-page "http://www.netsurf-browser.org/projects/libnsgif/")
4413 (synopsis "Decoding library for GIF files")
4415 "Libnsgif is a decoding library for the GIF image file format, written in
4416 C. It is developed as part of the NetSurf project.")
4419 (define-public libnsutils
4426 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4427 name "-" version "-src.tar.gz"))
4430 "09w1rixps1iiq6wirjwxmd6h87llvjzvw565rahjb3rlyhcplfqf"))))
4431 (build-system gnu-build-system)
4433 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
4434 (arguments netsurf-buildsystem-arguments)
4435 (home-page "http://www.netsurf-browser.org/")
4436 (synopsis "Utility library for NetSurf")
4438 "Libnsutils provides a small number of useful utility routines. It is
4439 developed as part of the NetSurf project.")
4442 (define-public libnspsl
4449 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4450 name "-" version "-src.tar.gz"))
4453 "1rsk1k2a495axxgv8060s0p1phhhcxrv75252kllbkvr8id5kqld"))))
4454 (build-system gnu-build-system)
4456 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
4457 (arguments netsurf-buildsystem-arguments)
4458 (home-page "http://www.netsurf-browser.org/")
4459 (synopsis "Library to generate a static Public Suffix List")
4461 "Libnspsl is a library to generate a static code representation of the
4462 Public Suffix List. It is developed as part of the NetSurf project.")
4465 (define-public nsgenbind
4472 (uri (string-append "http://download.netsurf-browser.org/libs/releases/"
4473 name "-" version "-src.tar.gz"))
4476 "0v1cb1rz5fix9ql31nzmglj7sybya6d12b2fkaypm1avcca59xwj"))))
4477 (build-system gnu-build-system)
4479 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4483 (substitute-keyword-arguments netsurf-buildsystem-arguments
4484 ((#:make-flags flags)
4485 `(delete "COMPONENT_TYPE=lib-shared" ,flags))))
4486 (home-page "http://www.netsurf-browser.org/")
4487 (synopsis "Generate JavaScript to DOM bindings")
4489 "@code{nsgenbind} is a tool to generate JavaScript to DOM bindings from
4490 w3c webidl files and a binding configuration file.")
4493 (define-public netsurf
4500 (uri (string-append "http://download.netsurf-browser.org/netsurf/"
4501 "releases/source/netsurf-" version "-src.tar.gz"))
4504 "0hjm1h4m1i913y4mhkl7yqdifn8k70fwi58zdh6faypawzryc3m0"))
4505 (patches (search-patches "netsurf-system-utf8proc.patch"
4506 "netsurf-y2038-tests.patch"
4507 "netsurf-longer-test-timeout.patch"
4508 "netsurf-message-timestamp.patch"))))
4509 (build-system glib-or-gtk-build-system)
4511 `(("netsurf-buildsystem" ,netsurf-buildsystem)
4512 ("nsgenbind" ,nsgenbind)
4513 ("libidn" ,libidn) ;only for tests
4516 ("perl-html-parser" ,perl-html-parser)
4517 ("pkg-config" ,pkg-config)))
4521 ("openssl" ,openssl)
4522 ("utf8proc" ,utf8proc)
4524 ("libjpeg" ,libjpeg)
4527 ("libnsbmp" ,libnsbmp)
4528 ("libnsgif" ,libnsgif)
4529 ("libnspsl" ,libnspsl)
4530 ("libnsutils" ,libnsutils)
4531 ("libsvgtiny" ,libsvgtiny)
4532 ("miscfiles" ,miscfiles)))
4534 `(#:make-flags `("CC=gcc" "BUILD_CC=gcc"
4535 ,(string-append "PREFIX=" %output)
4536 ,(string-append "NSSHARED="
4537 (assoc-ref %build-inputs
4538 "netsurf-buildsystem")
4539 "/share/netsurf-buildsystem"))
4540 #:test-target "test"
4541 #:modules ((ice-9 rdelim)
4545 ,@%glib-or-gtk-build-system-modules)
4547 (modify-phases %standard-phases
4549 (add-after 'build 'adjust-welcome
4551 ;; First, fix some unended tags and simple substitutions
4552 (substitute* "frontends/gtk/res/welcome.html"
4553 (("<(img|input)([^>]*)>" _ tag contents)
4554 (string-append "<" tag contents " />"))
4555 (("Licence") "License") ;prefer GNU spelling
4556 ((" open source") ", free software")
4557 (("web site") "website")
4558 ;; Prefer privacy-respecting default search engine
4559 (("www.google.co.uk") "www.duckduckgo.com/html")
4560 (("Google Search") "DuckDuckGo Search")
4561 (("name=\"btnG\"") ""))
4562 ;; Remove default links so it doesn't seem we're endorsing them
4563 (with-atomic-file-replacement "frontends/gtk/res/welcome.html"
4565 ;; Leave the DOCTYPE header as is
4566 (display (read-line in 'concat) out)
4568 (let rec ((sxml (xml->sxml in)))
4569 ;; We'd like to use sxml-match here, but it can't
4570 ;; match against generic tag symbols...
4572 (`(div (@ (class "links")) . ,rest)
4579 (add-before 'check 'patch-check
4580 (lambda* (#:key inputs #:allow-other-keys)
4581 (substitute* '("test/bloom.c" "test/hashtable.c")
4582 (("/usr/share/dict/words")
4583 (string-append (assoc-ref inputs "miscfiles") "/share/web2")))
4585 (add-after 'install 'install-more
4586 (lambda* (#:key outputs #:allow-other-keys)
4587 (let* ((out (assoc-ref outputs "out"))
4588 (desktop (string-append out "/share/applications/"
4589 "netsurf.desktop")))
4590 (mkdir-p (dirname desktop))
4591 (copy-file "frontends/gtk/res/netsurf-gtk.desktop"
4593 (substitute* desktop
4594 (("netsurf-gtk") (string-append out "/bin/netsurf-gtk"))
4595 (("netsurf.png") (string-append out "/share/netsurf/"
4597 (install-file "docs/netsurf-gtk.1"
4598 (string-append out "/share/man/man1/"))
4600 (home-page "http://www.netsurf-browser.org")
4601 (synopsis "Web browser")
4603 "NetSurf is a lightweight web browser that has its own layout and
4604 rendering engine entirely written from scratch. It is small and capable of
4605 handling many of the web standards in use today.")
4608 (define-public surfraw
4614 (uri (string-append "https://surfraw.alioth.debian.org/dist/"
4615 name "-" version ".tar.gz"))
4618 "1fy4ph5h9kp0jzj1m6pfylxnnmgdk0mmdppw76z9jhna4jndk5xa"))))
4619 (build-system gnu-build-system)
4622 (modify-phases %standard-phases
4623 (add-before 'configure 'patch-perl
4624 (lambda* (#:key inputs #:allow-other-keys)
4625 (let ((perl (assoc-ref inputs "perl")))
4626 (substitute* "surfraw.IN"
4628 (string-append perl "/bin/perl -e")))
4630 (add-after 'install 'compress-elvi.1sr
4631 (lambda* (#:key outputs #:allow-other-keys)
4632 ;; The manpages of the elvis are symlinks to elvi.1sr.gz
4633 ;; but elvi.1sr does not get compressed by our manpage phase.
4634 (let* ((out (assoc-ref %outputs "out"))
4635 (man (string-append out "/share/man/man1")))
4636 (with-directory-excursion man
4637 (invoke "gzip" "elvi.1sr"))))))))
4640 ("perl-www-opensearch" ,perl-www-opensearch)
4641 ("perl-html-parser" ,perl-html-parser)
4642 ("perl-libwww" ,perl-libwww)))
4643 (synopsis "Unix command line interface to the www")
4644 (description "Surfraw (Shell Users' Revolutionary Front Rage Against the Web)
4645 provides a unix command line interface to a variety of popular www search engines
4646 and similar services.")
4647 (home-page "https://surfraw.alioth.debian.org/")
4648 (license l:public-domain)))
4650 (define-public darkhttpd
4657 (uri (string-append "https://unix4lyfe.org/darkhttpd/darkhttpd-"
4658 version ".tar.bz2"))
4661 "0185wlyx4iqiwfigp1zvql14zw7gxfacncii3d15yaxk4av1f155"))))
4662 (build-system gnu-build-system)
4664 `(#:make-flags '("CC=gcc")
4665 #:tests? #f ; No test suite
4667 (modify-phases %standard-phases
4670 (lambda* (#:key outputs #:allow-other-keys)
4671 (install-file "darkhttpd"
4672 (string-append (assoc-ref outputs "out")
4675 (synopsis "Simple static web server")
4676 (description "darkhttpd is a simple static web server. It is
4677 standalone and does not need inetd or ucspi-tcp. It does not need any
4678 config files---you only have to specify the www root.")
4679 (home-page "https://unix4lyfe.org/darkhttpd/")
4682 (define-public goaccess
4688 (uri (string-append "http://tar.goaccess.io/goaccess-"
4692 "1w84y61f3ldg2f28q6qlyr1scn3mcx0bsbq3i5xi5w193wh3xa2q"))
4693 (modules '((guix build utils)))
4695 (substitute* "src/error.h"
4696 (("__DATE__") "\"1970-01-01\"")
4697 (("__TIME__") "\"00:00:00\""))
4699 (build-system gnu-build-system)
4701 ;; TODO: Add dependency on geoip-tools.
4703 ("ncurses" ,ncurses)))
4705 `(("pkg-config" ,pkg-config)))
4706 (home-page "https://goaccess.io")
4707 (synopsis "Analyze Web server logs in real time")
4709 "GoAccess is a real-time web log analyzer and interactive viewer that
4710 runs in a terminal or through your browser. It provides fast and valuable
4711 HTTP statistics for system administrators that require a visual server report
4715 (define-public httptunnel
4722 (uri (string-append "http://www.nocrew.org/software/httptunnel/"
4723 name "-" version ".tar.gz"))
4726 "0mn5s6p68n32xzadz6ds5i6bp44dyxzkq68r1yljlv470jr84bql"))
4727 (modules '((guix build utils)))
4729 ;; Remove non-free IETF RFC documentation.
4730 (delete-file-recursively "doc")
4732 (build-system gnu-build-system)
4735 (modify-phases %standard-phases
4736 ;; The default configure phase tries to pass environment variables as
4737 ;; command-line arguments, which confuses the ./configure script.
4739 (lambda* (#:key outputs #:allow-other-keys)
4740 (let* ((out (assoc-ref outputs "out")))
4741 (setenv "CONFIG_SHELL" (which "bash"))
4742 (invoke "./configure"
4743 (string-append "--prefix=" out))))))))
4744 (home-page "http://www.nocrew.org/software/httptunnel.html")
4745 (synopsis "Tunnel data connections through HTTP requests")
4746 (description "httptunnel creates a bidirectional virtual data connection
4747 tunnelled through HTTP (HyperText Transfer Protocol) requests. This can be
4748 useful for users behind restrictive firewalls. As long as Web traffic is
4749 allowed, even through a HTTP-only proxy, httptunnel can be combined with other
4750 tools like SSH (Secure Shell) to reach the outside world.")
4753 (define-public stunnel
4760 (uri (string-append "https://www.stunnel.org/downloads/stunnel-"
4763 (base32 "0j811iakljjxw39qchmqf235jdkwixb0i4xxjyi55f08558947cm"))))
4764 (build-system gnu-build-system)
4767 `(("iproute" ,iproute)
4769 ("procps" ,procps)))
4770 (inputs `(("openssl" ,openssl)))
4773 (list (string-append "--with-ssl=" (assoc-ref %build-inputs "openssl")))
4775 (modify-phases %standard-phases
4776 (add-after 'unpack 'patch-output-directories
4778 ;; Some (not all) Makefiles have a hard-coded incorrect docdir.
4779 (substitute* (list "Makefile.in"
4781 "tools/Makefile.in")
4783 (string-append "/doc/" ,name "-" ,version)))
4785 (add-before 'check 'patch-tests
4787 (substitute* "tests/make_test"
4789 (string-append (which "sh") " ")))
4791 (home-page "https://www.stunnel.org")
4792 (synopsis "TLS proxy for clients or servers")
4793 (description "Stunnel is a proxy designed to add TLS encryption
4794 functionality to existing clients and servers without any changes in the
4795 programs' code. Its architecture is optimized for security, portability, and
4796 scalability (including load-balancing), making it suitable for large
4800 (define-public varnish
4803 (home-page "https://varnish-cache.org/")
4807 (uri (string-append home-page "_downloads/varnish-" version ".tgz"))
4810 "0lwfk2gq99c653h5f51fs3j37r0gh2pf0p4w5z986nm2mi9z6yn3"))))
4811 (build-system gnu-build-system)
4813 `(#:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")
4814 ;; Use absolute path of GCC so it's found at runtime.
4815 (string-append "PTHREAD_CC="
4816 (assoc-ref %build-inputs "gcc")
4818 "--localstatedir=/var")
4820 (modify-phases %standard-phases
4821 (add-after 'unpack 'use-absolute-file-names
4823 (substitute* '("bin/varnishtest/vtc_varnish.c"
4824 "bin/varnishtest/vtc_process.c"
4825 "bin/varnishd/mgt/mgt_vcc.c")
4826 (("/bin/sh") (which "sh")))
4827 (substitute* "bin/varnishd/mgt/mgt_shmem.c"
4828 (("rm -rf") (string-append (which "rm") " -rf")))
4829 (substitute* "bin/varnishtest/vtc_main.c"
4830 (("/bin/rm") (which "rm")))
4832 (add-before 'install 'patch-Makefile
4834 (substitute* "Makefile"
4835 ;; Do not create /var/varnish during install.
4836 (("^install-data-am: install-data-local") "install-data-am: "))
4838 (add-after 'install 'wrap-varnishd
4839 ;; Varnish uses GCC to compile VCL, so wrap it with required GCC
4840 ;; environment variables to avoid propagating them to profiles.
4841 (lambda* (#:key inputs outputs #:allow-other-keys)
4842 (let* ((out (assoc-ref outputs "out"))
4843 (varnishd (string-append out "/sbin/varnishd"))
4844 (PATH (string-append (assoc-ref inputs "binutils") "/bin"))
4845 (LIBRARY_PATH (string-append (assoc-ref inputs "libc") "/lib")))
4846 (wrap-program varnishd
4847 ;; Add binutils to PATH so gcc finds the 'as' executable.
4848 `("PATH" ":" prefix (,PATH))
4849 ;; Make sure 'crti.o' et.al is found.
4850 `("LIBRARY_PATH" ":" prefix (,LIBRARY_PATH)))
4853 `(("pkg-config" ,pkg-config)
4854 ("python-sphinx" ,python-sphinx)
4855 ("rst2man" ,python-docutils)))
4857 `(("jemalloc" ,jemalloc)
4858 ("ncurses" ,ncurses)
4860 ("python" ,python-wrapper)
4861 ("readline" ,readline)))
4862 (synopsis "Web application accelerator")
4864 "Varnish is a high-performance HTTP accelerator. It acts as a caching
4865 reverse proxy and load balancer. You install it in front of any server that
4866 speaks HTTP and configure it to cache the contents through an extensive
4867 configuration language.")
4868 (license (list l:bsd-2 ;main distribution
4869 l:zlib ;lib/libvgz/*
4870 l:public-domain ;bin/varnishncsa/as64.c, include/miniobj.h
4871 l:bsd-3)))) ;include/vqueue.h, lib/libvarnishcompat/daemon.c
4873 (define-public varnish-modules
4875 (name "varnish-modules")
4876 (home-page "https://github.com/varnish/varnish-modules")
4880 (uri (string-append "https://download.varnish-software.com"
4881 "/varnish-modules/varnish-modules-"
4885 "09li9lqa1kb275w1rby2zldyg8r9cfcl4qyv53qyd9xbzilrz751"))))
4886 (build-system gnu-build-system)
4888 `(("pkg-config" ,pkg-config)))
4890 `(("python" ,python)
4891 ("varnish" ,varnish)))
4892 (synopsis "Collection of Varnish modules")
4894 "This package provides a collection of modules (@dfn{vmods}) for the Varnish
4895 cache server, extending the @dfn{Varnish Configuration Language} (VCL) with
4896 additional capabilities.")
4899 (define-public xinetd
4907 (url "https://github.com/xinetd-org/xinetd.git")
4908 (commit (string-append "xinetd-"
4909 (string-join (string-split version #\.)
4911 (file-name (git-file-name name version))
4912 (patches (search-patches "xinetd-CVE-2013-4342.patch"
4913 "xinetd-fix-fd-leak.patch"))
4915 (base32 "0wjai6qagcgxpa1khh639ih7kswgkryc7ll1i4hxhs29sc7irdcn"))))
4916 (build-system gnu-build-system)
4918 `(#:configure-flags '("--with-loadavg")
4919 #:tests? #f)) ; no tests
4920 (home-page "https://github.com/xinetd-org/xinetd")
4921 (synopsis "Internet services daemon")
4922 (description "@code{xinetd}, a more secure replacement for @code{inetd},
4923 listens for incoming requests over a network and launches the appropriate
4924 service for that request. Requests are made using port numbers as identifiers
4925 and xinetd usually launches another daemon to handle the request. It can be
4926 used to start services with both privileged and non-privileged port numbers.")
4927 (license (l:fsf-free "file://COPYRIGHT"))))
4929 (define-public tidy-html
4936 (uri (string-append "https://github.com/htacg/tidy-html5/archive/"
4938 (file-name (string-append name "-" version ".tar.gz"))
4941 "0n29wcgw32rhnraj9j21ibhwi0xagmmcskhbaz8ihxly7nx3p9h8"))))
4942 (build-system cmake-build-system)
4944 "static")) ; 1.0MiB of .a files
4946 `(#:tests? #f ; no tests available
4947 #:build-type "Release"
4949 (modify-phases %standard-phases
4950 (add-after 'install 'move-static-libraries
4951 (lambda* (#:key outputs #:allow-other-keys)
4952 ;; Move static libraries to the "static" output.
4953 (let* ((out (assoc-ref outputs "out"))
4954 (lib (string-append out "/lib"))
4955 (static (assoc-ref outputs "static"))
4956 (slib (string-append static "/lib")))
4958 (for-each (lambda (file)
4959 (install-file file slib)
4961 (find-files lib "\\.a$"))
4964 `(("libxslt" ,libxslt)))
4965 (home-page "http://www.html-tidy.org/")
4966 (synopsis "HTML Tidy with HTML5 support")
4968 "Tidy is a console application which corrects and cleans up
4969 HTML and XML documents by fixing markup errors and upgrading
4970 legacy code to modern standards.
4972 Tidy also provides @code{libtidy}, a C static and dynamic library that
4973 developers can integrate into their applications to make use of the
4974 functions of Tidy.")
4977 (define-public hiawatha
4984 (uri (string-append "https://www.hiawatha-webserver.org/files/"
4985 "hiawatha-" version ".tar.gz"))
4986 (modules '((guix build utils)))
4988 ;; We use packaged libraries, so delete the bundled copies.
4989 (for-each delete-file-recursively
4990 (list "extra/nghttp2.tgz" "mbedtls"))
4993 (base32 "1f2j2x1ziawz8ijg3s3izqpyzpiwfyhlsvbv0szxvhvj4a0l7pbl"))))
4994 (build-system cmake-build-system)
4996 `(#:tests? #f ; no tests included
4997 #:configure-flags (list (string-append "-DUSE_SYSTEM_MBEDTLS=on")
4998 (string-append "-DENABLE_HTTP2=on")
4999 (string-append "-DUSE_SYSTEM_NGHTTP2=on")
5000 (string-append "-DENABLE_TOMAHAWK=on")
5001 (string-append "-DLOG_DIR=/var/log/hiawatha")
5002 (string-append "-DPID_DIR=/run")
5003 (string-append "-DWEBROOT_DIR="
5004 (assoc-ref %outputs "out")
5005 "/share/hiawatha/html")
5006 (string-append "-DWORK_DIR=/var/lib/hiawatha"))
5008 (modify-phases %standard-phases
5009 (add-after 'unpack 'install-no-empty-directories
5011 (substitute* "CMakeLists.txt"
5012 (("install\\(DIRECTORY DESTINATION" match)
5013 (string-append "#" match)))
5015 (add-after 'install 'wrap
5016 (lambda* (#:key inputs outputs #:allow-other-keys)
5017 ;; Make sure 'hiawatha' finds 'mbedtls'.
5018 (let* ((out (assoc-ref outputs "out"))
5019 (sbin (string-append out "/sbin"))
5020 (mbed (assoc-ref inputs "mbedtls-apache")))
5021 (wrap-program (string-append sbin "/hiawatha")
5022 `("PATH" ":" prefix (,mbed)))))))))
5024 ;; TODO: package "hiawatha-monitor", an optional dependency of "hiawatha".
5025 `(("libxslt" ,libxslt)
5026 ("libxml2" ,libxml2)
5027 ("mbedtls-apache" ,mbedtls-for-hiawatha)
5028 ("nghttp2" ,nghttp2 "lib")
5030 (home-page "https://www.hiawatha-webserver.org")
5031 (synopsis "Webserver with focus on security")
5033 "Hiawatha has been written with security in mind.
5034 Features include the ability to stop SQL injections, XSS and CSRF attacks and
5038 (define-public python-httpbin
5040 (name "python-httpbin")
5045 (uri (pypi-uri "httpbin" version))
5048 "1dc92lnk846hpilslrqnr63x55cxll4qx88gif8fm521gv9cbyvr"))))
5049 (build-system python-build-system)
5051 `(("python-decorator" ,python-decorator)
5052 ("python-flask" ,python-flask)
5053 ("python-itsdangerous" ,python-itsdangerous)
5054 ("python-markupsafe" ,python-markupsafe)
5055 ("python-six" ,python-six)))
5056 (home-page "https://github.com/Runscope/httpbin")
5057 (synopsis "HTTP request and response service")
5058 (description "Testing an HTTP Library can become difficult sometimes.
5059 @code{RequestBin} is fantastic for testing POST requests, but doesn't let you control the
5060 response. This exists to cover all kinds of HTTP scenarios. All endpoint responses are
5064 (define-public python2-httpbin
5065 (package-with-python2 python-httpbin))
5067 (define-public python-pytest-httpbin
5069 (name "python-pytest-httpbin")
5074 (uri (pypi-uri "pytest-httpbin" version))
5077 "1y0v2v7xpzpyd4djwp7ad8ifnlxp8r1y6dfbxg5ckzvllkgridn5"))))
5078 (build-system python-build-system)
5080 `(("python-six" ,python-six)
5081 ("python-httpbin" ,python-httpbin)
5082 ("python-pytest" ,python-pytest)))
5084 "https://github.com/kevin1024/pytest-httpbin")
5086 "Test your HTTP library against a local copy of httpbin")
5088 "@code{Pytest-httpbin} creates a @code{pytest} fixture that is dependency-injected
5089 into your tests. It automatically starts up a HTTP server in a separate thread running
5090 @code{httpbin} and provides your test with the URL in the fixture.")
5093 (define-public python2-pytest-httpbin
5094 (package-with-python2 python-pytest-httpbin))
5096 (define-public http-parser
5098 (name "http-parser")
5100 (home-page "https://github.com/nodejs/http-parser")
5103 (uri (git-reference (url home-page)
5104 (commit (string-append "v" version))))
5105 (file-name (git-file-name name version))
5108 "1qa3rh9x4as2fc2p0y2hah83iqs7jr5106a8anv317359dgf3ssj"))))
5109 (build-system gnu-build-system)
5111 `(#:test-target "test"
5113 (list (string-append "PREFIX="
5114 (assoc-ref %outputs "out"))
5117 (modify-phases %standard-phases
5118 (delete 'configure))))
5119 (synopsis "HTTP request/response parser for C")
5120 (description "This is a parser for HTTP messages written in C. It parses
5121 both requests and responses. The parser is designed to be used in
5122 high-performance HTTP applications. It does not make any syscalls nor
5123 allocations, it does not buffer data, it can be interrupted at anytime.
5124 Depending on your architecture, it only requires about 40 bytes of data per
5125 message stream (in a web server that is per connection).")
5128 (define-public python2-httpretty
5130 (name "python2-httpretty")
5135 (uri (pypi-uri "httpretty" version))
5138 "0vlp5qkyw3pxwwsg7xmdcfh1csvypvaz4m6abida8s4xmjxpdhc3"))))
5139 (build-system python-build-system)
5141 `(("python-sphinx-rtd-theme" ,python2-sphinx-rtd-theme)
5142 ("python-sphinx" ,python2-sphinx)
5143 ("python-coverage" ,python2-coverage)
5144 ("python-tornado" ,python2-tornado)
5145 ("python-urllib3" ,python2-urllib3)
5146 ("python-sure" ,python2-sure)
5147 ("python-steadymark" ,python2-steadymark)
5148 ("python-requests" ,python2-requests)
5149 ("python-rednose" ,python2-rednose)
5150 ("python-nose-randomly" ,python2-nose-randomly)
5151 ("python-misaka" ,python2-misaka)
5152 ("python-pytest-httpbin" ,python2-pytest-httpbin)
5153 ("python-nose" ,python2-nose)))
5156 ;; Requires mock>=1.3.0 which requires a more up-to-date
5157 ;; python-pbr. After updating these trying to build the
5158 ;; package leads to failures in python-flake8 and other
5159 ;; packages. The cascade of updates and failures this
5160 ;; leads to, seems to not be worth having the test run.
5163 (modify-phases %standard-phases
5164 (add-before 'build 'patch-test-requirements
5165 (lambda* (#:key inputs #:allow-other-keys)
5166 ;; Update requirements from dependecy==version
5167 ;; to dependency>=version
5168 (substitute* "development.txt"
5171 (home-page "http://github.com/gabrielfalcao/httpretty")
5172 (synopsis "HTTP client mock for Python")
5173 (description "@code{httpretty} is a helper for faking web requests,
5174 inspired by Ruby's @code{fakeweb}.")
5184 (uri (string-append "https://github.com/jpmens/jo/releases/download/"
5185 version "/jo-" version ".tar.gz"))
5188 "1bmdck53jslrl3anqqpm6iyjdxrz445qzcc4fr37hr3wjg22zv1n"))))
5189 (build-system gnu-build-system)
5190 (home-page "https://github.com/jpmens/jo")
5191 (synopsis "Output JSON from a shell")
5192 (description "jo is a command-line utility to create JSON objects or
5193 arrays. It creates a JSON string on stdout from words provided as
5194 command-line arguments or read from stdin.")
5195 (license (list l:gpl2+
5196 l:expat)))) ; json.c, json.h
5198 (define-public python-internetarchive
5200 (name "python-internetarchive")
5205 (uri (string-append "https://github.com/jjjake/internetarchive/archive/"
5206 "v" version ".tar.gz"))
5207 (file-name (string-append name "-" version ".tar.gz"))
5210 "0sdbb2ag6vmybi8zmbjszi492a587giaaqxyy1p6gy03cb8mc512"))))
5211 (build-system python-build-system)
5214 (modify-phases %standard-phases
5216 (add-after 'install 'check
5217 (lambda* (#:key inputs outputs #:allow-other-keys)
5218 (add-installed-pythonpath inputs outputs)
5219 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
5220 ":" (getenv "PATH")))
5221 (invoke "py.test" "-v" "-k"
5223 ;; These tests attempt to make a connection to
5224 ;; an external web service.
5225 "not test_get_item_with_kwargs"
5226 " and not test_ia")))))))
5228 `(("python-requests" ,python-requests)
5229 ("python-jsonpatch" ,python-jsonpatch-0.4)
5230 ("python-docopt" ,python-docopt)
5231 ("python-clint" ,python-clint)
5232 ("python-six" ,python-six)
5233 ("python-schema" ,python-schema-0.5)
5234 ("python-backports-csv" ,python-backports-csv)))
5236 `(("python-pytest" ,python-pytest)
5237 ("python-pytest-capturelog" ,python-pytest-capturelog)
5238 ("python-responses" ,python-responses)))
5239 (home-page "https://github.com/jjjake/internetarchive")
5240 (synopsis "Command-line interface to archive.org")
5241 (description "@code{ia} is a command-line tool for using
5242 @url{archive.org} from the command-line. It also emplements the
5243 internetarchive python module for programatic access to archive.org.")
5245 `((python2-variant . ,(delay python2-internetarchive))))
5246 (license l:agpl3+)))
5248 (define-public python2-internetarchive
5249 (package-with-python2
5250 (strip-python2-variant python-internetarchive)))
5252 (define-public python-clf
5253 (let ((commit-test-clf "d01d25923c599d3261910f79fb948825b4270d07")) ; 0.5.7
5260 (uri (pypi-uri "clf" version))
5263 "0zlkzqnpz7a4iavsq5vaz0nf5nr7qm5znpg1vlpz6rwnx6hikjdb"))))
5264 (build-system python-build-system)
5266 `(("python-docopt" ,python-docopt)
5267 ("python-pygments" ,python-pygments)
5268 ("python-requests" ,python-requests)
5269 ("python-nose" ,python-nose)
5270 ("python-lxml" ,python-lxml)
5271 ("python-pyaml" ,python-pyaml)))
5276 (uri (string-append "https://raw.githubusercontent.com"
5277 "/ncrocfer/clf/" commit-test-clf
5281 "19lr5zdzsmxgkg7wrjq1yzkiahd03wi4k3dskssyhmjls8c10nqd"))))))
5284 (modify-phases %standard-phases
5285 (add-after 'unpack 'get-tests
5287 (copy-file (assoc-ref %build-inputs "test-clf") "test_clf.py")
5292 ;; These tests require an Internet connection.
5293 "--exclude=test_browse"
5294 "--exclude=test_command"
5295 "--exclude=test_search"))))))
5296 (home-page "https://github.com/ncrocfer/clf")
5297 (synopsis "Search code snippets on @url{https://commandlinefu.com}")
5298 (description "@code{clf} is a command line tool for searching code
5299 snippets on @url{https://commandlinefu.com}.")
5300 (license l:expat))))
5302 (define-public python2-clf
5303 (package-with-python2 python-clf))
5305 (define-public rss-bridge
5308 (version "2019-01-13")
5313 (url "https://github.com/RSS-Bridge/rss-bridge")
5315 (file-name (git-file-name name version))
5318 "1m0dq491954f0d7k4508ddlywk09whcz9j21rc4yk3lbwpf0nd4c"))))
5319 (build-system trivial-build-system)
5321 '(#:modules ((guix build utils))
5324 (use-modules (guix build utils)
5326 (let* ((out (assoc-ref %outputs "out"))
5327 (share-rss-bridge (string-append out "/share/rss-bridge")))
5328 (mkdir-p share-rss-bridge)
5329 (copy-recursively (assoc-ref %build-inputs "source") share-rss-bridge)
5331 (home-page "https://github.com/RSS-Bridge/rss-bridge")
5332 (synopsis "Generate Atom feeds for social networking websites")
5333 (description "rss-bridge generates Atom feeds for social networking
5334 websites lacking feeds. Supported websites include Facebook, Twitter,
5335 Instagram and YouTube.")
5336 (license (list l:public-domain
5337 l:expat)))) ;; vendor/simplehtmldom/simple_html_dom.php
5339 (define-public linkchecker
5341 (name "linkchecker")
5347 (url "https://github.com/linkchecker/linkchecker")
5348 (commit (string-append "v" version))))
5351 "linkchecker-mark-more-tests-that-require-the-network.patch"))
5352 (file-name (git-file-name name version))
5355 "03ihjmc4bqxxqv71bb43r2f23sx0xnbq1k2fsg9fw05qa5s9x187"))))
5356 (build-system python-build-system)
5358 `(("python2-dnspython" ,python2-dnspython)
5359 ("python2-pyxdg" ,python2-pyxdg)
5360 ("python2-requests" ,python2-requests)))
5362 `(("gettext" ,gettext-minimal)
5363 ("python2-pytest" ,python2-pytest)
5364 ("python2-miniboa" ,python2-miniboa)
5365 ("python2-parameterized" ,python2-parameterized)))
5367 `(#:python ,python-2
5369 (modify-phases %standard-phases
5370 ;; Move the 'check phase to after 'install, so that the installed
5371 ;; library can be used
5373 (add-after 'install 'check
5374 (lambda* (#:key outputs #:allow-other-keys)
5375 (let ((out (assoc-ref outputs "out")))
5376 ;; Set PYTHONPATH so that the installed linkchecker is used
5377 (setenv "PYTHONPATH"
5378 (string-append out "/lib/python2.7/site-packages"
5380 (getenv "PYTHONPATH")))
5381 ;; Remove this directory to avoid it being used when running
5383 (delete-file-recursively "linkcheck")
5385 (invoke "py.test" "tests"))
5387 (home-page "https://linkcheck.github.io/linkchecker")
5388 (synopsis "Check websites for broken links")
5389 (description "LinkChecker is a website validator. It checks for broken
5390 links in websites. It is recursive and multithreaded providing output in
5391 colored or normal text, HTML, SQL, CSV, XML or as a sitemap graph. It
5392 supports checking HTTP/1.1, HTTPS, FTP, mailto, news, nntp, telnet and local
5394 (license (list l:gpl2+
5395 l:bsd-2 ; linkcheck/better_exchook2.py
5396 l:bsd-3 ; linkcheck/colorama.py
5397 l:psfl ; linkcheck/gzip2.py
5398 l:expat)))) ; linkcheck/mem.py
5400 (define-public cadaver
5407 (uri (string-append "http://www.webdav.org/cadaver/"
5408 name "-" version ".tar.gz"))
5411 "1jizq69ifrjbjvz5y79wh1ny94gsdby4gdxwjad4bfih6a5fck7x"))))
5412 (build-system gnu-build-system)
5413 ;; TODO: Unbundle libneon and make build succeed with new neon.
5415 `(#:configure-flags (list "--with-ssl=openssl")
5416 #:tests? #f)) ;No tests included
5418 `(("gettext" ,gnu-gettext)
5419 ("pkg-config" ,pkg-config)
5420 ("intltool" ,intltool)))
5423 ("openssl" ,openssl)))
5424 (home-page "http://www.webdav.org/cadaver")
5425 (synopsis "Command-line WebDAV client")
5427 "Cadaver is a command-line WebDAV client for Unix. It supports
5428 file upload, download, on-screen display, namespace operations (move/copy),
5429 collection creation and deletion, and locking operations.")
5432 (define-public python-py-ubjson
5434 (name "python-py-ubjson")
5439 (uri (pypi-uri "py-ubjson" version))
5442 "03l9m9w5ip4hw0y69wlys5gzsfb7zcq3a77blj88grgiqhn5vm5n"))))
5443 (build-system python-build-system)
5444 (home-page "https://github.com/Iotic-Labs/py-ubjson")
5445 (synopsis "Universal Binary JSON encoder/decoder")
5447 "Py-ubjson is a Python module providing an Universal Binary JSON
5448 encoder/decoder based on the draft-12 specification for UBJSON.")
5449 (license l:asl2.0)))
5451 (define-public java-tomcat
5453 (name "java-tomcat")
5457 (uri (string-append "mirror://apache/tomcat/tomcat-8/v"
5458 version "/src/apache-tomcat-" version "-src.tar.gz"))
5461 "13pbsyk39g1qph82nngp54mqycmg60rxlxwy4yszsssahrqnggb2"))
5462 (modules '((guix build utils)))
5463 ;; Delete bundled jars.
5466 (for-each delete-file (find-files "." "\\.jar$"))
5468 (build-system ant-build-system)
5470 `(("java-eclipse-jdt-core" ,java-eclipse-jdt-core)))
5472 `(("java-junit" ,java-junit)))
5474 `(#:build-target "package"
5475 #:tests? #f; requires downloading some files.
5477 (modify-phases %standard-phases
5478 (add-after 'unpack 'prevent-download
5480 ;; This directory must exist
5482 ;; We patch build.xml so it doesn't download any dependency, because
5483 ;; we already have all of them.
5484 (substitute* "build.xml"
5485 (("download-compile,") "")
5486 (("depends=\"validate\"") "depends=\"build-prepare\"")
5487 ((",download-validate") ""))
5489 (add-after 'unpack 'strip-timestamps
5491 (substitute* "build.xml"
5492 (("<filter token=\"YEAR\" value=.*")
5493 "<filter token=\"YEAR\" value=\"1970\"/>")
5494 (("<filter token=\"VERSION_BUILT\" value=.*")
5495 "<filter token=\"VERSION_BUILT\" value=\"Jan 1 1970 00:00:00 UTC\"/>"))
5497 (add-after 'unpack 'generate-properties
5499 ;; This could have been passed to make-flags, but getcwd returns
5500 ;; a different directory then.
5501 (with-output-to-file "build.properties"
5504 (string-append "base.path=" (getcwd) "/downloads\n"))))
5507 (install-jars "output/build/lib")))))
5508 (home-page "https://tomcat.apache.org")
5509 (synopsis "Java Servlet, JavaServer Pages, Java Expression Language and Java
5511 (description "Apache Tomcat is a free implementation of the Java
5512 Servlet, JavaServer Pages, Java Expression Language and Java WebSocket
5514 (license l:asl2.0)))
5516 (define-public java-eclipse-jetty-test-helper
5518 (name "java-eclipse-jetty-test-helper")
5522 (uri (string-append "https://github.com/eclipse/jetty.toolchain/"
5523 "archive/jetty-test-helper-" version ".tar.gz"))
5526 "1jd6r9wc26fa11si4rn2gvy8ml8q4zw1nr6v04mjp8wvwpgvzwx5"))))
5527 (build-system ant-build-system)
5529 `(#:jar-name "eclipse-jetty-test-helper.jar"
5530 #:source-dir "src/main/java"
5531 #:test-dir "src/test"
5534 (modify-phases %standard-phases
5535 (add-before 'configure 'chdir
5537 (chdir "jetty-test-helper")
5539 (add-before 'build 'fix-paths
5542 ;; This file assumes that the build directory is named "target"
5543 ;; but it is not the case with our ant-build-system. Once we have
5544 ;; maven though, we will have to rebuild this package because this
5545 ;; assumption is correct with maven-build-system.
5547 "src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java"
5548 (("\"target\"") "\"build\"")
5549 (("\"tests\"") "\"test-classes\""))
5550 ;; Tests assume we are building with maven, so that the build
5551 ;; directory is named "target", and not "build".
5552 (with-directory-excursion "src/test/java/org/eclipse/jetty/toolchain/test"
5553 (substitute* '("FSTest.java" "OSTest.java" "TestingDirTest.java"
5554 "MavenTestingUtilsTest.java")
5555 (("target/tests") "build/test-classes")
5556 (("\"target") "\"build")))
5559 `(("junit" ,java-junit)
5560 ("hamcrest" ,java-hamcrest-all)))
5561 (home-page "https://www.eclipse.org/jetty/")
5562 (synopsis "Helper classes for jetty tests")
5563 (description "This packages contains helper classes for testing the Jetty
5565 ;; This program is licensed under both epl and asl.
5566 (license (list l:epl1.0 l:asl2.0))))
5568 (define-public java-eclipse-jetty-perf-helper
5570 (inherit java-eclipse-jetty-test-helper)
5571 (name "java-eclipse-jetty-perf-helper")
5573 `(#:jar-name "eclipse-jetty-perf-helper.jar"
5574 #:source-dir "src/main/java"
5575 #:tests? #f; no tests
5578 (modify-phases %standard-phases
5579 (add-before 'configure 'chdir
5581 (chdir "jetty-perf-helper")
5584 `(("hdrhistogram" ,java-hdrhistogram)))))
5586 (define-public java-eclipse-jetty-util
5588 (name "java-eclipse-jetty-util")
5592 (uri (string-append "https://github.com/eclipse/jetty.project/"
5593 "archive/jetty-" version ".v20170531.tar.gz"))
5596 "0x7kbdvkmgr6kbsmbwiiyv3bb0d6wk25frgvld9cf8540136z9p1"))))
5597 (build-system ant-build-system)
5599 `(#:jar-name "eclipse-jetty-util.jar"
5600 #:source-dir "src/main/java"
5602 (list "**/Abstract*.java"
5604 "**/InetAddressSetTest.java"
5605 ;; Assumes we are using maven
5606 "**/TypeUtilTest.java"
5607 ;; Error on the style of log
5608 "**/StdErrLogTest.java")
5611 (modify-phases %standard-phases
5612 (add-before 'configure 'chdir
5614 (chdir "jetty-util")
5617 `(("slf4j" ,java-slf4j-api)
5618 ("servlet" ,java-tomcat)))
5620 `(("junit" ,java-junit)
5621 ("hamcrest" ,java-hamcrest-all)
5622 ("perf-helper" ,java-eclipse-jetty-perf-helper)
5623 ("test-helper" ,java-eclipse-jetty-test-helper)))
5624 (home-page "https://www.eclipse.org/jetty/")
5625 (synopsis "Utility classes for Jetty")
5626 (description "The Jetty Web Server provides an HTTP server and Servlet
5627 container capable of serving static and dynamic content either from a standalone
5628 or embedded instantiation. This package provides utility classes.")
5629 (license (list l:epl1.0 l:asl2.0))))
5631 ;; This version is required by maven-wagon
5632 (define-public java-eclipse-jetty-util-9.2
5634 (inherit java-eclipse-jetty-util)
5638 (uri (string-append "https://github.com/eclipse/jetty.project/"
5639 "archive/jetty-" version ".v20170606.tar.gz"))
5642 "1i51qlsd7h06d35kx5rqpzbfadbcszycx1iwr6vz7qc9gf9f29la"))))
5644 `(#:jar-name "eclipse-jetty-util.jar"
5645 #:source-dir "src/main/java"
5648 (list "**/Abstract*.java"
5650 "**/InetAddressSetTest.java"
5651 ;; Assumes we are using maven
5652 "**/TypeUtilTest.java"
5653 ;; We don't have an implementation for slf4j
5655 ;; Error on the style of log
5656 "**/StdErrLogTest.java")
5658 (modify-phases %standard-phases
5659 (add-before 'configure 'chdir
5661 (chdir "jetty-util")
5663 (add-before 'build 'fix-test-sources
5665 ;; We need to fix issues caused by changes in newer versions of
5666 ;; jetty-test-helper
5667 (let ((src "src/test/java/org/eclipse/jetty/util/resource"))
5668 (substitute* (string-append src "/AbstractFSResourceTest.java")
5669 (("testdir.getDir\\(\\)") "testdir.getPath().toFile()")
5670 (("testdir.getFile\\(\"foo\"\\)")
5671 "testdir.getPathFile(\"foo\").toFile()")
5672 (("testdir.getFile\\(name\\)")
5673 "testdir.getPathFile(name).toFile()")))
5676 (define-public java-eclipse-jetty-io
5678 (inherit java-eclipse-jetty-util)
5679 (name "java-eclipse-jetty-io")
5681 `(#:jar-name "eclipse-jetty-io.jar"
5682 #:source-dir "src/main/java"
5684 #:test-exclude (list "**/Abstract*.java"
5686 "**/EndPointTest.java")
5688 (modify-phases %standard-phases
5689 (add-before 'configure 'chdir
5694 `(("slf4j" ,java-slf4j-api)
5695 ("servlet" ,java-javaee-servletapi)
5696 ("util" ,java-eclipse-jetty-util)))
5697 (synopsis "Jetty :: IO Utility")
5698 (description "The Jetty Web Server provides an HTTP server and Servlet
5699 container capable of serving static and dynamic content either from a standalone
5700 or embedded instantiation. This package provides IO-related utility classes.")))
5702 (define-public java-eclipse-jetty-io-9.2
5704 (inherit java-eclipse-jetty-io)
5705 (version (package-version java-eclipse-jetty-util-9.2))
5706 (source (package-source java-eclipse-jetty-util-9.2))
5708 `(("util" ,java-eclipse-jetty-util-9.2)
5709 ,@(package-inputs java-eclipse-jetty-util-9.2)))
5711 `(("mockito" ,java-mockito-1)
5712 ("cglib" ,java-cglib)
5713 ("objenesis" ,java-objenesis)
5715 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
5717 (define-public java-eclipse-jetty-http
5719 (inherit java-eclipse-jetty-util)
5720 (name "java-eclipse-jetty-http")
5722 `(#:jar-name "eclipse-jetty-http.jar"
5723 #:source-dir "src/main/java"
5726 (modify-phases %standard-phases
5727 (add-before 'configure 'chdir
5729 (chdir "jetty-http")
5731 (add-before 'build 'copy-resources
5733 (mkdir-p "build/classes")
5734 (copy-recursively "src/main/resources/" "build/classes/")
5737 `(("slf4j" ,java-slf4j-api)
5738 ("servlet" ,java-javaee-servletapi)
5739 ("io" ,java-eclipse-jetty-io)
5740 ("util" ,java-eclipse-jetty-util)))
5741 (synopsis "Jetty :: Http Utility")
5742 (description "The Jetty Web Server provides an HTTP server and Servlet
5743 container capable of serving static and dynamic content either from a standalone
5744 or embedded instantiation. This package provides HTTP-related utility classes.")))
5746 (define-public java-eclipse-jetty-http-9.2
5748 (inherit java-eclipse-jetty-http)
5749 (version (package-version java-eclipse-jetty-util-9.2))
5750 (source (package-source java-eclipse-jetty-util-9.2))
5752 `(("util" ,java-eclipse-jetty-util-9.2)
5753 ("io" ,java-eclipse-jetty-io-9.2)
5754 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
5756 (define-public java-eclipse-jetty-jmx
5758 (inherit java-eclipse-jetty-util)
5759 (name "java-eclipse-jetty-jmx")
5761 `(#:jar-name "eclipse-jetty-jmx.jar"
5762 #:source-dir "src/main/java"
5764 #:tests? #f; FIXME: requires com.openpojo.validation
5766 (modify-phases %standard-phases
5767 (add-before 'configure 'chdir
5772 `(("slf4j" ,java-slf4j-api)
5773 ("servlet" ,java-javaee-servletapi)
5774 ("util" ,java-eclipse-jetty-util)))
5775 (synopsis "Jetty :: JMX Management")
5776 (description "The Jetty Web Server provides an HTTP server and Servlet
5777 container capable of serving static and dynamic content either from a standalone
5778 or embedded instantiation. This package provides the JMX management.")))
5780 (define-public java-eclipse-jetty-jmx-9.2
5782 (inherit java-eclipse-jetty-jmx)
5783 (version (package-version java-eclipse-jetty-util-9.2))
5784 (source (package-source java-eclipse-jetty-util-9.2))
5786 `(("util" ,java-eclipse-jetty-util-9.2)
5787 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
5789 (define java-eclipse-jetty-http-test-classes
5791 (inherit java-eclipse-jetty-util)
5792 (name "java-eclipse-jetty-http-test-classes")
5794 `(#:jar-name "eclipse-jetty-http.jar"
5795 #:source-dir "src/test"
5799 (modify-phases %standard-phases
5800 (add-before 'configure 'chdir
5802 (chdir "jetty-http")
5805 `(("slf4j" ,java-slf4j-api)
5806 ("servlet" ,java-tomcat)
5807 ("http" ,java-eclipse-jetty-http)
5808 ("io" ,java-eclipse-jetty-io)
5809 ("util" ,java-eclipse-jetty-util)))))
5811 (define java-eclipse-jetty-http-test-classes-9.2
5813 (inherit java-eclipse-jetty-http-test-classes)
5814 (version (package-version java-eclipse-jetty-util-9.2))
5815 (source (package-source java-eclipse-jetty-util-9.2))
5817 `(("http" ,java-eclipse-jetty-http-9.2)
5818 ,@(package-inputs java-eclipse-jetty-http-9.2)))))
5820 (define-public java-eclipse-jetty-server
5822 (inherit java-eclipse-jetty-util)
5823 (name "java-eclipse-jetty-server")
5825 `(#:jar-name "eclipse-jetty-server.jar"
5826 #:source-dir "src/main/java"
5828 #:tests? #f; requires a mockito version we don't have
5830 (modify-phases %standard-phases
5831 (add-before 'configure 'chdir
5833 (chdir "jetty-server")
5835 (add-before 'build 'fix-source
5837 ;; Explicit casts to prevent build failures
5838 (substitute* "src/main/java/org/eclipse/jetty/server/Request.java"
5839 (("append\\(LazyList")
5840 "append((CharSequence)LazyList"))
5842 "src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java"
5844 "Class<\\? extends EventListener> clazz = _classLoader==null"
5845 "\\?Loader.loadClass\\(ContextHandler.class,className\\):"
5846 "_classLoader.loadClass\\(className\\);"))
5847 (string-append "Class<? extends EventListener> clazz = "
5848 "(Class<? extends EventListener>) "
5849 "(_classLoader==null?Loader.loadClass("
5850 "ContextHandler.class,className):"
5851 "_classLoader.loadClass(className));")))
5854 `(("slf4j" ,java-slf4j-api)
5855 ("servlet" ,java-javaee-servletapi)
5856 ("http" ,java-eclipse-jetty-http)
5857 ("io" ,java-eclipse-jetty-io)
5858 ("jmx" ,java-eclipse-jetty-jmx)
5859 ("util" ,java-eclipse-jetty-util)))
5861 `(("test-classes" ,java-eclipse-jetty-http-test-classes)
5862 ,@(package-native-inputs java-eclipse-jetty-util)))
5863 (synopsis "Core jetty server artifact")
5864 (description "The Jetty Web Server provides an HTTP server and Servlet
5865 container capable of serving static and dynamic content either from a standalone
5866 or embedded instantiation. This package provides the core jetty server
5869 (define-public java-eclipse-jetty-server-9.2
5871 (inherit java-eclipse-jetty-server)
5872 (version (package-version java-eclipse-jetty-util-9.2))
5873 (source (package-source java-eclipse-jetty-util-9.2))
5875 `(("util" ,java-eclipse-jetty-util-9.2)
5876 ("jmx" ,java-eclipse-jetty-jmx-9.2)
5877 ("io" ,java-eclipse-jetty-io-9.2)
5878 ("http" ,java-eclipse-jetty-http-9.2)
5879 ,@(package-inputs java-eclipse-jetty-util-9.2)))
5881 `(("test-classes" ,java-eclipse-jetty-http-test-classes-9.2)
5882 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
5884 (define-public java-eclipse-jetty-security
5886 (inherit java-eclipse-jetty-util)
5887 (name "java-eclipse-jetty-security")
5889 `(#:jar-name "eclipse-jetty-security.jar"
5890 #:source-dir "src/main/java"
5892 #:test-exclude (list "**/ConstraintTest.*") ; This test fails
5894 (modify-phases %standard-phases
5895 (add-before 'configure 'chdir
5897 (chdir "jetty-security")
5900 `(("slf4j" ,java-slf4j-api)
5901 ("servlet" ,java-tomcat)
5902 ("http" ,java-eclipse-jetty-http)
5903 ("server" ,java-eclipse-jetty-server)
5904 ("util" ,java-eclipse-jetty-util)))
5906 `(("io" ,java-eclipse-jetty-io)
5907 ,@(package-native-inputs java-eclipse-jetty-util)))
5908 (synopsis "Jetty security infrastructure")
5909 (description "The Jetty Web Server provides an HTTP server and Servlet
5910 container capable of serving static and dynamic content either from a standalone
5911 or embedded instantiation. This package provides the core jetty security
5914 (define-public java-eclipse-jetty-security-9.2
5916 (inherit java-eclipse-jetty-security)
5917 (version (package-version java-eclipse-jetty-util-9.2))
5918 (source (package-source java-eclipse-jetty-util-9.2))
5920 `(("util" ,java-eclipse-jetty-util-9.2)
5921 ("http" ,java-eclipse-jetty-http-9.2)
5922 ("server" ,java-eclipse-jetty-server-9.2)
5923 ,@(package-inputs java-eclipse-jetty-util-9.2)))
5925 `(("io" ,java-eclipse-jetty-io-9.2)
5926 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
5928 (define-public java-eclipse-jetty-servlet
5930 (inherit java-eclipse-jetty-util)
5931 (name "java-eclipse-jetty-servlet")
5933 `(#:jar-name "eclipse-jetty-servlet.jar"
5934 #:source-dir "src/main/java"
5937 (modify-phases %standard-phases
5938 (add-before 'configure 'chdir
5940 (chdir "jetty-servlet")
5943 `(("slf4j" ,java-slf4j-api)
5944 ("servlet" ,java-tomcat)
5945 ("http" ,java-eclipse-jetty-http)
5946 ("http-test" ,java-eclipse-jetty-http-test-classes)
5947 ("io" ,java-eclipse-jetty-io)
5948 ("jmx" ,java-eclipse-jetty-jmx)
5949 ("security" ,java-eclipse-jetty-security)
5950 ("server" ,java-eclipse-jetty-server)
5951 ("util" ,java-eclipse-jetty-util)))
5952 (synopsis "Jetty Servlet Container")
5953 (description "The Jetty Web Server provides an HTTP server and Servlet
5954 container capable of serving static and dynamic content either from a standalone
5955 or embedded instantiation. This package provides the core jetty servlet
5958 (define-public java-eclipse-jetty-servlet-9.2
5960 (inherit java-eclipse-jetty-servlet)
5961 (version (package-version java-eclipse-jetty-util-9.2))
5962 (source (package-source java-eclipse-jetty-util-9.2))
5964 `(#:jar-name "eclipse-jetty-servlet.jar"
5965 #:source-dir "src/main/java"
5967 #:tests? #f; doesn't work
5969 (modify-phases %standard-phases
5970 (add-before 'configure 'chdir
5972 (chdir "jetty-servlet")
5975 `(("util" ,java-eclipse-jetty-util-9.2)
5976 ("jmx" ,java-eclipse-jetty-jmx-9.2)
5977 ("io" ,java-eclipse-jetty-io-9.2)
5978 ("http" ,java-eclipse-jetty-http-9.2)
5979 ("security" ,java-eclipse-jetty-security-9.2)
5980 ("http-test" ,java-eclipse-jetty-http-test-classes-9.2)
5981 ("server" ,java-eclipse-jetty-server-9.2)
5982 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
5984 (define-public java-eclipse-jetty-xml
5986 (inherit java-eclipse-jetty-util)
5987 (name "java-eclipse-jetty-xml")
5989 `(#:jar-name "eclipse-jetty-xml.jar"
5990 #:source-dir "src/main/java"
5992 #:tests? #f; most tests require network
5994 (modify-phases %standard-phases
5995 (add-before 'configure 'chdir
6000 `(("java-eclipse-jetty-util" ,java-eclipse-jetty-util)))
6002 `(("java-eclipse-jetty-io" ,java-eclipse-jetty-io)
6003 ,@(package-native-inputs java-eclipse-jetty-util)))))
6005 (define-public java-eclipse-jetty-xml-9.2
6007 (inherit java-eclipse-jetty-xml)
6008 (version (package-version java-eclipse-jetty-util-9.2))
6009 (source (package-source java-eclipse-jetty-util-9.2))
6011 `(#:jar-name "eclipse-jetty-xml.jar"
6012 #:source-dir "src/main/java"
6014 #:tests? #f; most tests require network
6016 (modify-phases %standard-phases
6017 (add-before 'configure 'chdir
6022 `(("java-eclipse-jetty-util-9.2" ,java-eclipse-jetty-util-9.2)
6023 ,@(package-inputs java-eclipse-jetty-util-9.2)))
6025 `(("java-eclipse-jetty-io-9.2" ,java-eclipse-jetty-io-9.2)
6026 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
6028 (define-public java-eclipse-jetty-webapp
6030 (inherit java-eclipse-jetty-util)
6031 (name "java-eclipse-jetty-webapp")
6033 `(#:jar-name "eclipse-jetty-webapp.jar"
6034 #:source-dir "src/main/java"
6037 #:test-exclude (list "**/WebAppContextTest.java")
6039 (modify-phases %standard-phases
6040 (add-before 'configure 'chdir
6042 (chdir "jetty-webapp")
6045 `(("java-eclipse-jetty-util" ,java-eclipse-jetty-util)
6046 ("java-eclipse-jetty-http" ,java-eclipse-jetty-http)
6047 ("java-eclipse-jetty-server" ,java-eclipse-jetty-server)
6048 ("java-eclipse-jetty-servlet" ,java-eclipse-jetty-servlet)
6049 ("java-eclipse-jetty-security" ,java-eclipse-jetty-security)
6050 ("java-eclipse-jetty-xml" ,java-eclipse-jetty-xml)
6051 ("java-javaee-servletapi" ,java-javaee-servletapi)))
6053 `(("java-eclipse-jetty-io" ,java-eclipse-jetty-io)
6054 ,@(package-native-inputs java-eclipse-jetty-util)))))
6056 (define-public java-eclipse-jetty-webapp-9.2
6058 (inherit java-eclipse-jetty-webapp)
6059 (version (package-version java-eclipse-jetty-util-9.2))
6060 (source (package-source java-eclipse-jetty-util-9.2))
6062 `(#:jar-name "eclipse-jetty-webapp.jar"
6063 #:source-dir "src/main/java"
6065 #:test-exclude (list "**/WebAppContextTest.java")
6067 (modify-phases %standard-phases
6068 (add-before 'configure 'chdir
6070 (chdir "jetty-webapp")
6073 `(("java-eclipse-jetty-util-9.2" ,java-eclipse-jetty-util-9.2)
6074 ("java-eclipse-jetty-http-9.2" ,java-eclipse-jetty-http-9.2)
6075 ("java-eclipse-jetty-server-9.2" ,java-eclipse-jetty-server-9.2)
6076 ("java-eclipse-jetty-servlet-9.2" ,java-eclipse-jetty-servlet-9.2)
6077 ("java-eclipse-jetty-security-9.2" ,java-eclipse-jetty-security-9.2)
6078 ("java-eclipse-jetty-xml-9.2" ,java-eclipse-jetty-xml-9.2)
6079 ("java-tomcat" ,java-tomcat)
6080 ,@(package-inputs java-eclipse-jetty-util-9.2)))
6082 `(("java-eclipse-jetty-io-9.2" ,java-eclipse-jetty-io-9.2)
6083 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
6085 (define-public java-jsoup
6091 (uri (string-append "https://github.com/jhy/jsoup/archive/jsoup-"
6095 "0xbzw7rjv7s4nz1xk9b2cnin6zkpaldmc3svk71waa7hhjgp0a20"))))
6096 (build-system ant-build-system)
6098 `(#:jar-name "jsoup.jar"
6099 #:source-dir "src/main/java"
6101 (modify-phases %standard-phases
6102 (add-before 'build 'copy-resources
6104 (let ((classes-dir (string-append (getcwd) "/build/classes")))
6105 (with-directory-excursion "src/main/java"
6106 (for-each (lambda (file)
6107 (let ((dist (string-append classes-dir "/" file)))
6108 (mkdir-p (dirname dist))
6109 (copy-file file dist)))
6110 (find-files "." ".*.properties"))))
6113 `(("java-junit" ,java-junit)
6114 ("java-hamcrest-core" ,java-hamcrest-core)
6115 ("java-gson" ,java-gson)))
6116 (home-page "https://jsoup.org")
6117 (synopsis "HTML parser")
6118 (description "Jsoup is a Java library for working with real-world HTML. It
6119 provides a very convenient API for extracting and manipulating data, using the
6120 best of DOM, CSS, and jQuery-like methods.")
6123 (define-public tidyp
6130 (uri (string-append "https://github.com/downloads/petdance/tidyp/tidyp-"
6134 "0f5ky0ih4vap9c6j312jn73vn8m2bj69pl2yd3a5nmv35k9zmc10"))))
6135 (build-system gnu-build-system)
6136 ;; ./test-thing.sh tries to run ./testall.sh, which is not included.
6137 (arguments `(#:tests? #f))
6138 (home-page "http://www.tidyp.com/")
6139 (synopsis "Validate HTML")
6140 (description "Tidyp is a program that can validate your HTML, as well as
6141 modify it to be more clean and standard. tidyp does not validate HTML 5.
6143 libtidyp is the library on which the program is based. It can be used by any
6144 other program that can interface to it. The Perl module @code{HTML::Tidy} is
6145 based on this library, allowing Perl programmers to easily validate HTML.")
6146 ;; See htmldoc/license.html
6149 (define-public perl-html-tidy
6151 (name "perl-html-tidy")
6156 (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/HTML-Tidy-"
6160 "1iyp2fd6j75cn1xvcwl2lxr8qpjxssy2360cyqn6g3kzd1fzdyxw"))))
6161 (build-system perl-build-system)
6164 (modify-phases %standard-phases
6165 (add-after 'unpack 'fix-tidyp-paths
6166 (lambda* (#:key inputs #:allow-other-keys)
6167 (substitute* "Makefile.PL"
6168 (("^my \\$inc = \"" line)
6170 "-I" (assoc-ref inputs "tidyp") "/include/tidyp "))
6173 "-L" (assoc-ref inputs "tidyp") "/lib")))
6176 `(("perl-libwww" ,perl-libwww)
6179 `(("perl-test-exception" ,perl-test-exception)))
6180 (home-page "https://metacpan.org/release/HTML-Tidy")
6181 (synopsis "(X)HTML validation in a Perl object")
6182 (description "@code{HTML::Tidy} is an HTML checker in a handy dandy
6183 object. It's meant as a replacement for @code{HTML::Lint}, which is written
6184 in Perl but is not nearly as capable as @code{HTML::Tidy}.")
6185 (license l:artistic2.0)))
6187 (define-public geomyidae
6195 (url "git://r-36.net/geomyidae")
6196 (commit (string-append "v" version))))
6197 (file-name (git-file-name name version))
6199 (base32 "02afgrk36wkdkflyqr2xgh49v9zq6ma454jshk7igvhpxfb5l3ks"))))
6200 (build-system gnu-build-system)
6202 `(#:make-flags (list "CC=gcc"
6203 (string-append "PREFIX="
6204 (assoc-ref %outputs "out")))
6205 #:tests? #f ; no tests
6206 #:phases (modify-phases %standard-phases
6207 (delete 'configure))))
6208 (home-page "http://r-36.net/scm/geomyidae/file/README.html")
6209 (synopsis "Small Gopher server")
6211 "Geomyidae is a server for distributed hypertext protocol Gopher. Its
6215 @item Gopher menus (see @file{index.gph} for an example);
6216 @item directory listings (if no @file{index.gph} was found);
6217 @item CGI support (@file{.cgi} files are executed);
6218 @item search support in CGI files;
6219 @item logging with multiple log levels.
6223 (define-public cat-avatar-generator
6225 (name "cat-avatar-generator")
6230 (url "https://framagit.org/Deevad/cat-avatar-generator.git")
6231 (commit "71c0c662742cafe8afd2d2d50ec84243113e35ad")))
6232 (file-name (string-append name "-" version))
6235 "0s7b5whqsmfa57prbgl66ym551kg6ly0z14h5dgrlx4lqm70y2yw"))))
6236 (build-system trivial-build-system)
6238 `(#:modules ((guix build utils)
6243 (use-modules (guix build utils)
6246 (let ((source (assoc-ref %build-inputs "source"))
6247 (php-dir (string-append %output "/share/web/" ,name "/")))
6248 ;; The cache directory must not be in the store, but in a writable
6249 ;; location. The webserver will give us this location.
6250 (copy-recursively source php-dir)
6251 (substitute* (string-append php-dir "/cat-avatar-generator.php")
6252 (("\\$cachepath = .*")
6253 "if(isset($_SERVER['CACHE_DIR']))
6254 $cachepath = $_SERVER['CACHE_DIR'];
6256 die('You need to set the CACHE_DIR variable first.');"))
6258 (home-page "https://framagit.org/Deevad/cat-avatar-generator")
6259 (synopsis "Random avatar generator")
6260 (description "Cat avatar generator is a generator of cat pictures optimised
6261 to generate random avatars, or defined avatar from a \"seed\". This is a
6262 derivation by David Revoy from the original MonsterID by Andreas Gohr.")
6263 ;; expat for the code, CC-BY 4.0 for the artwork
6264 (license (list l:expat
6267 (define-public nghttp2
6274 (uri (string-append "https://github.com/nghttp2/nghttp2/"
6275 "releases/download/v" version "/"
6276 name "-" version ".tar.xz"))
6279 "0fi6qg2w82636wixwkqy7bclpgxslmvg82r431hs8h6aqc4mnzwv"))))
6280 (build-system gnu-build-system)
6281 (outputs (list "out"
6282 "lib")) ; only libnghttp2
6284 `(("pkg-config" ,pkg-config)
6285 ("gcc" ,gcc-7) ; 1.35.0 requires GCC6 or later
6287 ;; Required by tests.
6289 ("tzdata" ,tzdata-for-tests)))
6291 ;; Required to build the tools (i.e. without ‘--enable-lib-only’).
6292 `(("c-ares" ,c-ares)
6293 ("jansson" ,jansson) ; for HPACK tools
6294 ("jemalloc" ,jemalloc) ; fight nghttpd{,x} heap fragmentation
6296 ("libxml2" ,libxml2) ; for ‘nghttp -a’
6297 ("openssl" ,openssl)))
6300 (list (string-append "--libdir=" (assoc-ref %outputs "lib") "/lib")
6301 "--enable-app" ; build all the tools
6302 "--enable-hpack-tools" ; ...all the tools
6303 "--disable-examples"
6304 "--disable-static") ; don't bother building .a files
6306 (modify-phases %standard-phases
6307 (add-after 'unpack 'break-circular-reference
6308 ;; libnghttp2.pc by default retains a reference to the ‘out’ output,
6309 ;; which is not allowed. Break this cycle. While we could install
6310 ;; only the library to ‘out’ and move everything else to a separate
6311 ;; output, this would inconvenience the majority of (human) users.
6312 (lambda* (#:key outputs #:allow-other-keys)
6313 (substitute* "lib/libnghttp2.pc.in"
6315 (assoc-ref outputs "lib")))
6317 (add-before 'configure 'work-around-bug-30756
6319 (for-each unsetenv '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH")) #t))
6320 (add-before 'check 'set-timezone-directory
6321 (lambda* (#:key inputs #:allow-other-keys)
6322 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
6325 (home-page "https://nghttp2.org/")
6326 (synopsis "HTTP/2 protocol client, proxy, server, and library")
6328 "nghttp2 implements the Hypertext Transfer Protocol, version
6331 A reusable C library provides the HTTP/2 framing layer, with several tools built
6335 @item @command{nghttp}, a command-line HTTP/2 client. It exposes many advanced
6336 and low-level aspects of the protocol and is useful for debugging.
6337 @item @command{nghttpd}, a fast, multi-threaded HTTP/2 static web server that
6338 serves files from a local directory.
6339 @item @command{nghttpx}, a fast, multi-threaded HTTP/2 reverse proxy that can be
6340 deployed in front of existing web servers that don't support HTTP/2.
6341 Both @command{nghttpd} and @command{nghttpx} can fall back to HTTP/1.1 for
6342 backwards compatibilty with clients that don't speak HTTP/2.
6343 @item @command{h2load} for benchmarking (only!) your own HTTP/2 servers.
6344 @item HTTP/2 uses a header compression method called @dfn{HPACK}.
6345 nghttp2 provides a HPACK encoder and decoder as part of its public API.
6346 @item @command{deflatehd} converts JSON data or HTTP/1-style header fields to
6347 compressed JSON header blocks.
6348 @item @command{inflatehd} converts such compressed headers back to JSON pairs.
6352 (define-public hpcguix-web
6353 (let ((commit "53e09ea59ec0380b41a4cbda32df8bdb9a10004d")
6356 (name "hpcguix-web")
6357 (version (git-version "0.0.1" revision commit))
6361 (url "https://github.com/UMCUGenetics/hpcguix-web.git")
6363 (file-name (git-file-name name version))
6366 "1ah4pn9697vazhbvd45n4b1rrkx2nbhnw384cr0b941q3sz1dfyc"))))
6367 (build-system gnu-build-system)
6369 `(#:modules ((guix build gnu-build-system)
6375 (modify-phases %standard-phases
6376 (add-before 'configure 'set-variables
6378 ;; This prevents a few warnings
6379 (setenv "GUILE_AUTO_COMPILE" "0")
6380 (setenv "XDG_CACHE_HOME" (getcwd))
6382 (add-after 'install 'wrap-program
6383 (lambda* (#:key inputs outputs #:allow-other-keys)
6384 (let* ((out (assoc-ref outputs "out"))
6385 (guix (assoc-ref inputs "guix"))
6386 (guile (assoc-ref inputs "guile"))
6387 (gcrypt (assoc-ref inputs "guile-gcrypt"))
6388 (git (assoc-ref inputs "guile-git"))
6389 (bs (assoc-ref inputs "guile-bytestructures"))
6390 (json (assoc-ref inputs "guile-json"))
6391 (guile-cm (assoc-ref inputs
6392 "guile-commonmark"))
6393 (deps (list guile gcrypt git bs guile-cm guix json))
6396 (open-pipe* OPEN_READ
6397 (string-append guile "/bin/guile")
6398 "-c" "(display (effective-version))")))
6400 (map (cut string-append <>
6401 "/share/guile/site/"
6405 (gopath (string-join
6406 (map (cut string-append <>
6407 "/lib/guile/" effective
6411 (wrap-program (string-append out "/bin/run")
6412 `("GUILE_LOAD_PATH" ":" prefix (,path))
6413 `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,gopath)))
6417 `(("autoconf" ,autoconf)
6418 ("automake" ,automake)
6419 ("uglify-js" ,uglify-js)
6420 ("pkg-config" ,pkg-config)))
6424 `(("guile" ,guile-2.2)
6425 ("guile-commonmark" ,guile-commonmark)
6426 ("guile-json" ,guile-json)))
6427 (home-page "https://github.com/UMCUGenetics/hpcguix-web")
6428 (synopsis "Web interface for cluster deployments of Guix")
6429 (description "Hpcguix-web provides a web interface to the list of packages
6430 provided by Guix. The list of packages is searchable and provides
6431 instructions on how to use Guix in a shared HPC environment.")
6432 (license l:agpl3+))))