Commit | Line | Data |
---|---|---|
d0414883 | 1 | ;;; GNU Guix --- Functional package management for GNU |
ed4263fc | 2 | ;;; Copyright © 2013, 2014, 2015, 2016, 2018 Ludovic Courtès <ludo@gnu.org> |
0899144f | 3 | ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr> |
b715dbac | 4 | ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org> |
10ac0f9f | 5 | ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com> |
5c1cf7f3 | 6 | ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net> |
96fd87c9 | 7 | ;;; Copyright © 2015, 2016, 2017 Mark H Weaver <mhw@netris.org> |
0efb6452 | 8 | ;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il> |
fe9451c5 | 9 | ;;; Copyright © 2015 Raimon Grau <raimonster@gmail.com> |
c74c7c13 | 10 | ;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org> |
e9f62e52 | 11 | ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name> |
5eec378b | 12 | ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com> |
19c33040 | 13 | ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org> |
47956fa0 | 14 | ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is> |
17634f0b | 15 | ;;; Copyright © 2016, 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
b4c9a317 | 16 | ;;; Copyright © 2016, 2017, 2018 Marius Bakke <mbakke@fastmail.com> |
f9f67fcb | 17 | ;;; Copyright © 2017 Adriano Peluso <catonano@gmail.com> |
5bc2d579 | 18 | ;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net> |
76fed2b3 | 19 | ;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com> |
3b695802 | 20 | ;;; Copyright © 2017 Petter <petter@mykolab.ch> |
767d24e8 | 21 | ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at> |
2cce23bf | 22 | ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz> |
d0414883 LC |
23 | ;;; |
24 | ;;; This file is part of GNU Guix. | |
25 | ;;; | |
26 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
27 | ;;; under the terms of the GNU General Public License as published by | |
28 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
29 | ;;; your option) any later version. | |
30 | ;;; | |
31 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
32 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
33 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
34 | ;;; GNU General Public License for more details. | |
35 | ;;; | |
36 | ;;; You should have received a copy of the GNU General Public License | |
37 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
38 | ||
1ffa7090 | 39 | (define-module (gnu packages xml) |
f0444eaf | 40 | #:use-module (gnu packages) |
0899144f | 41 | #:use-module (gnu packages autotools) |
79a0eabd | 42 | #:use-module (gnu packages check) |
322cbda7 | 43 | #:use-module (gnu packages compression) |
2cce23bf | 44 | #:use-module (gnu packages curl) |
58cc3b38 | 45 | #:use-module (gnu packages gnupg) |
1a17ca26 | 46 | #:use-module (gnu packages java) |
aff0cce9 | 47 | #:use-module (gnu packages nss) |
f0444eaf | 48 | #:use-module (gnu packages perl) |
5ccde207 | 49 | #:use-module (gnu packages perl-check) |
f0444eaf | 50 | #:use-module (gnu packages python) |
a7fd7b68 | 51 | #:use-module (gnu packages tls) |
ad871fc6 | 52 | #:use-module (gnu packages web) |
b5b73a82 | 53 | #:use-module ((guix licenses) #:prefix license:) |
d0414883 LC |
54 | #:use-module (guix packages) |
55 | #:use-module (guix download) | |
3047c7ba | 56 | #:use-module (guix git-download) |
77d7b57c | 57 | #:use-module (guix build-system ant) |
6ce212b8 | 58 | #:use-module (guix build-system cmake) |
2a1e82bb | 59 | #:use-module (guix build-system gnu) |
37f9ff63 | 60 | #:use-module (guix build-system perl) |
7ce32242 | 61 | #:use-module (guix build-system python) |
e4aab734 RW |
62 | #:use-module (gnu packages linux) |
63 | #:use-module (gnu packages pkg-config)) | |
d0414883 LC |
64 | |
65 | (define-public expat | |
66 | (package | |
67 | (name "expat") | |
1c61a086 | 68 | (version "2.2.6") |
d0414883 LC |
69 | (source (origin |
70 | (method url-fetch) | |
71 | (uri (string-append "mirror://sourceforge/expat/expat/" | |
51514e69 | 72 | version "/expat-" version ".tar.bz2")) |
d0414883 LC |
73 | (sha256 |
74 | (base32 | |
1c61a086 | 75 | "1wl1x93b5w457ddsdgj0lh7yjq4q6l7wfbgwhagkc8fm2qkkrd0p")))) |
d0414883 | 76 | (build-system gnu-build-system) |
e5e33f90 | 77 | (home-page "https://libexpat.github.io/") |
9e771e3b | 78 | (synopsis "Stream-oriented XML parser library written in C") |
d0414883 LC |
79 | (description |
80 | "Expat is an XML parser library written in C. It is a | |
81 | stream-oriented parser in which an application registers handlers for | |
82 | things the parser might find in the XML document (like start tags).") | |
83 | (license license:expat))) | |
f0444eaf | 84 | |
5bc2d579 GG |
85 | (define-public libebml |
86 | (package | |
87 | (name "libebml") | |
bc48088b | 88 | (version "1.3.9") |
5bc2d579 GG |
89 | (source |
90 | (origin | |
91 | (method url-fetch) | |
079321fa TGR |
92 | (uri (string-append "https://dl.matroska.org/downloads/libebml/" |
93 | "libebml-" version ".tar.xz")) | |
5bc2d579 | 94 | (sha256 |
bc48088b | 95 | (base32 "0j65r6i7s2k67c8f9wa653mqpxmfhdl67kjxrc1n5910ig6wddn6")))) |
f3d89181 TGR |
96 | (build-system cmake-build-system) |
97 | (arguments | |
98 | `(#:configure-flags | |
99 | (list "-DBUILD_SHARED_LIBS=YES") | |
100 | #:tests? #f)) ; no test suite | |
a040db6d | 101 | (home-page "https://matroska-org.github.io/libebml/") |
cb778117 TGR |
102 | (synopsis "C++ library to parse EBML files") |
103 | (description "libebml is a C++ library to read and write @dfn{EBML} | |
104 | (Extensible Binary Meta Language) files. EBML was designed to be a simplified | |
105 | binary extension of XML for the purpose of storing and manipulating data in a | |
5bc2d579 GG |
106 | hierarchical form with variable field lengths.") |
107 | (license license:lgpl2.1))) | |
108 | ||
f0444eaf AE |
109 | (define-public libxml2 |
110 | (package | |
111 | (name "libxml2") | |
1b5292ca | 112 | (version "2.9.8") |
f0444eaf AE |
113 | (source (origin |
114 | (method url-fetch) | |
115 | (uri (string-append "ftp://xmlsoft.org/libxml2/libxml2-" | |
116 | version ".tar.gz")) | |
117 | (sha256 | |
118 | (base32 | |
1b5292ca | 119 | "0ci7is75bwqqw2p32vxvrk6ds51ik7qgx73m920rakv5jlayax0b")))) |
f0444eaf | 120 | (build-system gnu-build-system) |
5f8642ea MB |
121 | (outputs '("out" "static")) |
122 | (arguments | |
123 | `(#:phases (modify-phases %standard-phases | |
124 | (add-after 'install 'move-static-libs | |
125 | (lambda* (#:key outputs #:allow-other-keys) | |
126 | (let ((src (string-append (assoc-ref outputs "out") "/lib")) | |
127 | (dst (string-append (assoc-ref outputs "static") | |
128 | "/lib"))) | |
129 | (mkdir-p dst) | |
130 | (for-each (lambda (ar) | |
131 | (rename-file ar (string-append dst "/" | |
132 | (basename ar)))) | |
133 | (find-files src "\\.a$")) | |
134 | #t)))))) | |
f0444eaf | 135 | (home-page "http://www.xmlsoft.org/") |
35b9e423 | 136 | (synopsis "C parser for XML") |
7ba79d5d | 137 | (inputs `(("xz" ,xz))) |
c1944c92 | 138 | (propagated-inputs `(("zlib" ,zlib))) ; libxml2.la says '-lz'. |
7ce32242 | 139 | (native-inputs `(("perl" ,perl))) |
2a8d4401 LC |
140 | ;; $XML_CATALOG_FILES lists 'catalog.xml' files found in under the 'xml' |
141 | ;; sub-directory of any given package. | |
74528069 LC |
142 | (native-search-paths (list (search-path-specification |
143 | (variable "XML_CATALOG_FILES") | |
144 | (separator " ") | |
145 | (files '("xml")) | |
146 | (file-pattern "^catalog\\.xml$") | |
147 | (file-type 'regular)))) | |
2a8d4401 | 148 | (search-paths native-search-paths) |
f0444eaf | 149 | (description |
7c125ce0 AK |
150 | "Libxml2 is the XML C parser and toolkit developed for the Gnome |
151 | project (but it is usable outside of the Gnome platform).") | |
f0444eaf | 152 | (license license:x11))) |
58cc3b38 | 153 | |
7ce32242 | 154 | (define-public python-libxml2 |
e428b2c0 | 155 | (package/inherit libxml2 |
7ce32242 SB |
156 | (name "python-libxml2") |
157 | (build-system python-build-system) | |
d3028f5b | 158 | (outputs '("out")) |
7ce32242 SB |
159 | (arguments |
160 | `(;; XXX: Tests are specified in 'Makefile.am', but not in 'setup.py'. | |
161 | #:tests? #f | |
162 | #:phases | |
163 | (modify-phases %standard-phases | |
164 | (add-before | |
165 | 'build 'configure | |
166 | (lambda* (#:key inputs #:allow-other-keys) | |
167 | (chdir "python") | |
168 | (let ((glibc (assoc-ref inputs ,(if (%current-target-system) | |
169 | "cross-libc" "libc"))) | |
170 | (libxml2 (assoc-ref inputs "libxml2"))) | |
171 | (substitute* "setup.py" | |
172 | ;; For 'libxml2/libxml/tree.h'. | |
173 | (("ROOT = r'/usr'") | |
174 | (format #f "ROOT = r'~a'" libxml2)) | |
175 | ;; For 'iconv.h'. | |
176 | (("/opt/include") | |
aa6f87a2 MW |
177 | (string-append glibc "/include")))) |
178 | #t))))) | |
7ce32242 SB |
179 | (inputs `(("libxml2" ,libxml2))) |
180 | (synopsis "Python bindings for the libxml2 library"))) | |
181 | ||
182 | (define-public python2-libxml2 | |
183 | (package-with-python2 python-libxml2)) | |
184 | ||
58cc3b38 AE |
185 | (define-public libxslt |
186 | (package | |
187 | (name "libxslt") | |
16cc6a9d | 188 | (version "1.1.32") |
58cc3b38 AE |
189 | (source (origin |
190 | (method url-fetch) | |
191 | (uri (string-append "ftp://xmlsoft.org/libxslt/libxslt-" | |
192 | version ".tar.gz")) | |
193 | (sha256 | |
194 | (base32 | |
16cc6a9d | 195 | "0q2l6m56iv3ysxgm2walhg4c9wp7q183jb328687i9zlp85csvjj")) |
28b33172 | 196 | (patches (search-patches "libxslt-generated-ids.patch")))) |
58cc3b38 AE |
197 | (build-system gnu-build-system) |
198 | (home-page "http://xmlsoft.org/XSLT/index.html") | |
35b9e423 | 199 | (synopsis "C library for applying XSLT stylesheets to XML documents") |
58cc3b38 AE |
200 | (inputs `(("libgcrypt" ,libgcrypt) |
201 | ("libxml2" ,libxml2) | |
95288fcc | 202 | ("python" ,python-minimal-wrapper) |
11e3f107 | 203 | ("zlib" ,zlib))) |
58cc3b38 | 204 | (description |
35b9e423 | 205 | "Libxslt is an XSLT C library developed for the GNOME project. It is |
58cc3b38 AE |
206 | based on libxml for XML parsing, tree manipulation and XPath support.") |
207 | (license license:x11))) | |
2a1e82bb | 208 | |
5eec378b BW |
209 | (define-public perl-graph-readwrite |
210 | (package | |
211 | (name "perl-graph-readwrite") | |
ffbc7d65 | 212 | (version "2.09") |
5eec378b BW |
213 | (source |
214 | (origin | |
215 | (method url-fetch) | |
216 | (uri (string-append | |
217 | "mirror://cpan/authors/id/N/NE/NEILB/Graph-ReadWrite-" | |
218 | version | |
219 | ".tar.gz")) | |
220 | (sha256 | |
221 | (base32 | |
ffbc7d65 | 222 | "0jlsg64pmy6ka5q5gy851nnyfgjzvhyxc576bhns3vi2x5ng07mh")))) |
5eec378b BW |
223 | (build-system perl-build-system) |
224 | (propagated-inputs | |
225 | `(("perl-graph" ,perl-graph) | |
226 | ("perl-parse-yapp" ,perl-parse-yapp) | |
227 | ("perl-xml-parser" ,perl-xml-parser) | |
228 | ("perl-xml-writer" ,perl-xml-writer))) | |
9aba9b12 | 229 | (home-page "https://metacpan.org/release/Graph-ReadWrite") |
5eec378b BW |
230 | (synopsis "Modules for reading and writing directed graphs") |
231 | (description "This is a collection of perl classes for reading and writing | |
232 | directed graphs in a variety of file formats. The graphs are represented in | |
233 | Perl using Jarkko Hietaniemi's @code{Graph} classes. | |
234 | ||
235 | There are two base classes. @code{Graph::Reader} is the base class for classes | |
236 | which read a graph file and create an instance of the Graph class. | |
237 | @code{Graph::Writer} is the base class for classes which take an instance of | |
238 | the @code{Graph} class and write it out in a specific file format.") | |
2f3108ad | 239 | (license license:perl-license))) |
5eec378b | 240 | |
b2696a58 | 241 | (define-public perl-xml-atom |
242 | (package | |
243 | (name "perl-xml-atom") | |
522f1995 | 244 | (version "0.42") |
b2696a58 | 245 | (source (origin |
246 | (method url-fetch) | |
247 | (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/" | |
248 | "XML-Atom-" version ".tar.gz")) | |
249 | (sha256 | |
250 | (base32 | |
522f1995 | 251 | "1wa8kfy1w4mg7kzxim4whyprkn48a2il6fap0b947zywknw4c6y6")))) |
b2696a58 | 252 | (build-system perl-build-system) |
522f1995 MB |
253 | (arguments |
254 | `(#:phases | |
255 | (modify-phases %standard-phases | |
256 | (add-before 'check 'set-perl-search-path | |
257 | (lambda _ | |
258 | (setenv "PERL5LIB" | |
259 | (string-append (getcwd) ":" | |
260 | (getenv "PERL5LIB"))) | |
261 | #t))))) | |
b2696a58 | 262 | (native-inputs |
50632f0a TGR |
263 | ;; TODO package: perl-datetime-format-atom |
264 | `(("perl-html-tagset" ,perl-html-tagset) | |
522f1995 | 265 | ("perl-module-build-tiny" ,perl-module-build-tiny) |
50632f0a TGR |
266 | ("perl-module-install" ,perl-module-install))) |
267 | (propagated-inputs | |
b2696a58 | 268 | `(("perl-class-data-inheritable" ,perl-class-data-inheritable) |
269 | ("perl-datetime" ,perl-datetime) | |
270 | ("perl-datetime-timezone" ,perl-datetime-timezone) | |
271 | ("perl-digest-sha1" ,perl-digest-sha1) | |
272 | ("perl-libwww" ,perl-libwww) | |
273 | ("perl-uri" ,perl-uri) | |
274 | ("perl-xml-libxml" ,perl-xml-libxml) | |
275 | ("perl-xml-xpath" ,perl-xml-xpath))) | |
9aba9b12 | 276 | (home-page "https://metacpan.org/release/XML-Atom") |
b2696a58 | 277 | (synopsis "Atom feed and API implementation") |
278 | (description | |
279 | "Atom is a syndication, API, and archiving format for weblogs and other data. | |
280 | @code{XML::Atom} implements the feed format as well as a client for the API.") | |
2f3108ad | 281 | (license license:perl-license))) |
b2696a58 | 282 | |
d66fa696 MB |
283 | (define-public perl-xml-descent |
284 | (package | |
285 | (name "perl-xml-descent") | |
286 | (version "1.04") | |
287 | (source (origin | |
288 | (method url-fetch) | |
289 | (uri (string-append "mirror://cpan/authors/id/A/AN/ANDYA/" | |
290 | "XML-Descent-" version ".tar.gz")) | |
291 | (sha256 | |
292 | (base32 | |
293 | "0l5xmw2hd95ypppz3lyvp4sn02ccsikzjwacli3ydxfdz1bbh4d7")))) | |
294 | (build-system perl-build-system) | |
295 | (native-inputs | |
296 | `(("perl-module-build" ,perl-module-build))) | |
297 | (propagated-inputs | |
298 | `(("perl-test-differences" ,perl-test-differences) | |
299 | ("perl-xml-tokeparser" ,perl-xml-tokeparser))) | |
9aba9b12 | 300 | (home-page "https://metacpan.org/release/XML-Descent") |
d66fa696 MB |
301 | (synopsis "Recursive descent XML parsing") |
302 | (description | |
303 | "The conventional models for parsing XML are either @dfn{DOM} | |
304 | (a data structure representing the entire document tree is created) or | |
305 | @dfn{SAX} (callbacks are issued for each element in the XML). | |
306 | ||
307 | XML grammar is recursive - so it's nice to be able to write recursive | |
308 | parsers for it. @code{XML::Descent} allows such parsers to be created.") | |
2f3108ad | 309 | (license license:perl-license))) |
d66fa696 | 310 | |
2a1e82bb LC |
311 | (define-public perl-xml-parser |
312 | (package | |
313 | (name "perl-xml-parser") | |
d495634b | 314 | (version "2.44") |
2a1e82bb LC |
315 | (source (origin |
316 | (method url-fetch) | |
317 | (uri (string-append | |
2b8c5f54 | 318 | "mirror://cpan/authors/id/T/TO/TODDR/XML-Parser-" |
2a1e82bb LC |
319 | version ".tar.gz")) |
320 | (sha256 | |
321 | (base32 | |
d495634b | 322 | "05ij0g6bfn27iaggxf8nl5rhlwx6f6p6xmdav6rjcly3x5zd1s8s")))) |
2a1e82bb LC |
323 | (build-system perl-build-system) |
324 | (arguments `(#:make-maker-flags | |
325 | (let ((expat (assoc-ref %build-inputs "expat"))) | |
326 | (list (string-append "EXPATLIBPATH=" expat "/lib") | |
327 | (string-append "EXPATINCPATH=" expat "/include"))))) | |
328 | (inputs `(("expat" ,expat))) | |
2f3108ad | 329 | (license license:perl-license) |
2a1e82bb LC |
330 | (synopsis "Perl bindings to the Expat XML parsing library") |
331 | (description | |
332 | "This module provides ways to parse XML documents. It is built on top of | |
333 | XML::Parser::Expat, which is a lower level interface to James Clark's expat | |
334 | library. Each call to one of the parsing methods creates a new instance of | |
335 | XML::Parser::Expat which is then used to parse the document. Expat options | |
336 | may be provided when the XML::Parser object is created. These options are | |
337 | then passed on to the Expat object on each parse call. They can also be given | |
338 | as extra arguments to the parse methods, in which case they override options | |
339 | given at XML::Parser creation time.") | |
9aba9b12 | 340 | (home-page "https://metacpan.org/release/XML-Parser"))) |
37f9ff63 | 341 | |
62b28f19 MB |
342 | (define-public perl-xml-tokeparser |
343 | (package | |
344 | (name "perl-xml-tokeparser") | |
345 | (version "0.05") | |
346 | (source (origin | |
347 | (method url-fetch) | |
348 | (uri (string-append "mirror://cpan/authors/id/P/PO/PODMASTER/" | |
349 | "XML-TokeParser-" version ".tar.gz")) | |
350 | (sha256 | |
351 | (base32 | |
352 | "1hnpwb3lh6cbgwvjjgqzcp6jm4mp612qn6ili38adc9nhkwv8fc5")))) | |
353 | (build-system perl-build-system) | |
354 | (propagated-inputs `(("perl-xml-parser" ,perl-xml-parser))) | |
9aba9b12 | 355 | (home-page "https://metacpan.org/release/XML-TokeParser") |
62b28f19 MB |
356 | (synopsis "Simplified interface to XML::Parser") |
357 | (description | |
358 | "@code{XML::TokeParser} provides a procedural (\"pull mode\") interface | |
359 | to @code{XML::Parser} in much the same way that Gisle Aas' | |
360 | @code{HTML::TokeParser} provides a procedural interface to @code{HTML::Parser}. | |
361 | @code{XML::TokeParser} splits its XML input up into \"tokens\", each | |
362 | corresponding to an @code{XML::Parser} event.") | |
2f3108ad | 363 | (license license:perl-license))) |
62b28f19 | 364 | |
7339fbe2 | 365 | (define-public perl-libxml |
1385ba4f | 366 | (package |
7339fbe2 | 367 | (name "perl-libxml") |
1385ba4f AE |
368 | (version "0.08") |
369 | (source (origin | |
370 | (method url-fetch) | |
371 | (uri (string-append | |
372 | "mirror://cpan/authors/id/K/KM/KMACLEOD/libxml-perl-" | |
373 | version ".tar.gz")) | |
374 | (sha256 | |
375 | (base32 | |
376 | "1jy9af0ljyzj7wakqli0437zb2vrbplqj4xhab7bfj2xgfdhawa5")))) | |
377 | (build-system perl-build-system) | |
7b81406a | 378 | (propagated-inputs |
1385ba4f | 379 | `(("perl-xml-parser" ,perl-xml-parser))) |
2f3108ad | 380 | (license license:perl-license) |
2db5f9b6 | 381 | (synopsis "Perl modules for working with XML") |
1385ba4f | 382 | (description |
2db5f9b6 TGR |
383 | "libxml-perl is a collection of smaller Perl modules, scripts, and |
384 | documents for working with XML in Perl. libxml-perl software works in | |
385 | combination with @code{XML::Parser}, PerlSAX, @code{XML::DOM}, | |
386 | @code{XML::Grove}, and others.") | |
9aba9b12 | 387 | (home-page "https://metacpan.org/release/libxml-perl"))) |
1385ba4f | 388 | |
3dd6bee1 EB |
389 | (define-public perl-xml-libxml |
390 | (package | |
391 | (name "perl-xml-libxml") | |
d71184f8 | 392 | (version "2.0134") |
3dd6bee1 EB |
393 | (source |
394 | (origin | |
395 | (method url-fetch) | |
396 | (uri (string-append "mirror://cpan/authors/id/S/SH/SHLOMIF/" | |
397 | "XML-LibXML-" version ".tar.gz")) | |
398 | (sha256 | |
399 | (base32 | |
d71184f8 | 400 | "1ks69xymv6zkj7hvaymjvb78ch81abri7kg4zrwxhdfsqb8a9g7h")))) |
3dd6bee1 EB |
401 | (build-system perl-build-system) |
402 | (propagated-inputs | |
403 | `(("perl-xml-namespacesupport" ,perl-xml-namespacesupport) | |
404 | ("perl-xml-sax" ,perl-xml-sax))) | |
405 | (inputs | |
406 | `(("libxml2" ,libxml2))) | |
9aba9b12 | 407 | (home-page "https://metacpan.org/release/XML-LibXML") |
3dd6bee1 EB |
408 | (synopsis "Perl interface to libxml2") |
409 | (description "This module implements a Perl interface to the libxml2 | |
54c3c140 | 410 | library which provides interfaces for parsing and manipulating XML files. This |
3dd6bee1 EB |
411 | module allows Perl programmers to make use of the highly capable validating |
412 | XML parser and the high performance DOM implementation.") | |
2f3108ad | 413 | (license license:perl-license))) |
3dd6bee1 | 414 | |
f7c4dc2f RW |
415 | (define-public perl-xml-libxml-simple |
416 | (package | |
417 | (name "perl-xml-libxml-simple") | |
d21fb90a | 418 | (version "0.99") |
f7c4dc2f RW |
419 | (source (origin |
420 | (method url-fetch) | |
421 | (uri (string-append "mirror://cpan/authors/id/M/MA/MARKOV/" | |
422 | "XML-LibXML-Simple-" version ".tar.gz")) | |
423 | (sha256 | |
424 | (base32 | |
d21fb90a | 425 | "0i4ybiqdnvnbfxqslw2y392kvy7i752dl8n99bqiqv5kzk4lbzhl")))) |
f7c4dc2f RW |
426 | (build-system perl-build-system) |
427 | (propagated-inputs | |
428 | `(("perl-file-slurp-tiny" ,perl-file-slurp-tiny) | |
429 | ("perl-xml-libxml" ,perl-xml-libxml))) | |
9aba9b12 | 430 | (home-page "https://metacpan.org/release/XML-LibXML-Simple") |
f7c4dc2f RW |
431 | (synopsis "XML::LibXML based XML::Simple clone") |
432 | (description | |
433 | "This package provides the same API as @code{XML::Simple} but is based on | |
434 | @code{XML::LibXML}.") | |
2f3108ad | 435 | (license license:perl-license))) |
f7c4dc2f | 436 | |
93863a5e RW |
437 | (define-public perl-xml-libxslt |
438 | (package | |
439 | (name "perl-xml-libxslt") | |
73a3e98f | 440 | (version "1.96") |
93863a5e RW |
441 | (source |
442 | (origin | |
443 | (method url-fetch) | |
444 | (uri (string-append "mirror://cpan/authors/id/S/SH/SHLOMIF/" | |
445 | "XML-LibXSLT-" version ".tar.gz")) | |
446 | (sha256 | |
447 | (base32 | |
73a3e98f | 448 | "0wyl8klgr65j8y8fzgwz9jlvfjwvxazna8j3dg9gksd2v973fpia")))) |
93863a5e RW |
449 | (build-system perl-build-system) |
450 | (inputs | |
451 | `(("libxslt" ,libxslt))) | |
452 | (propagated-inputs | |
453 | `(("perl-xml-libxml" ,perl-xml-libxml))) | |
9aba9b12 | 454 | (home-page "https://metacpan.org/release/XML-LibXSLT") |
93863a5e RW |
455 | (synopsis "Perl bindings to GNOME libxslt library") |
456 | (description "This Perl module is an interface to the GNOME project's | |
457 | libxslt library.") | |
2f3108ad | 458 | (license license:perl-license))) |
93863a5e | 459 | |
b715dbac EB |
460 | (define-public perl-xml-namespacesupport |
461 | (package | |
462 | (name "perl-xml-namespacesupport") | |
88958ee0 | 463 | (version "1.12") |
b715dbac EB |
464 | (source |
465 | (origin | |
466 | (method url-fetch) | |
467 | (uri (string-append "mirror://cpan/authors/id/P/PE/PERIGRIN/" | |
468 | "XML-NamespaceSupport-" version ".tar.gz")) | |
469 | (sha256 | |
470 | (base32 | |
88958ee0 | 471 | "1vz5pbi4lm5fhq2slrs2hlp6bnk29863abgjlcx43l4dky2rbsa7")))) |
b715dbac | 472 | (build-system perl-build-system) |
9aba9b12 | 473 | (home-page "https://metacpan.org/release/XML-NamespaceSupport") |
b715dbac EB |
474 | (synopsis "XML namespace support class") |
475 | (description "This module offers a simple to process namespaced XML | |
476 | names (unames) from within any application that may need them. It also helps | |
477 | maintain a prefix to namespace URI map, and provides a number of basic | |
478 | checks.") | |
2f3108ad | 479 | (license license:perl-license))) |
b715dbac | 480 | |
a022b23f | 481 | (define-public perl-xml-rss |
482 | (package | |
483 | (name "perl-xml-rss") | |
b5de208e | 484 | (version "1.60") |
a022b23f | 485 | (source (origin |
486 | (method url-fetch) | |
487 | (uri (string-append "mirror://cpan/authors/id/S/SH/SHLOMIF/" | |
488 | "XML-RSS-" version ".tar.gz")) | |
489 | (sha256 | |
490 | (base32 | |
b5de208e | 491 | "0xw6aaqka3vqwbv152sbh6fbi8j306q1gvg7v83br8miif3mjcsb")))) |
a022b23f | 492 | (build-system perl-build-system) |
493 | (native-inputs | |
494 | `(("perl-module-build" ,perl-module-build) | |
495 | ("perl-test-manifest" ,perl-test-manifest) | |
496 | ("perl-test-differences" ,perl-test-differences) | |
497 | ("perl-test-pod" ,perl-test-pod) | |
498 | ("perl-test-pod-coverage" ,perl-test-pod-coverage))) | |
499 | ;; XXX: The test which uses this modules does not run, even when it is included | |
500 | ;; it is ignored. ("perl-test-trailingspace" ,perl-test-trailingspace) | |
501 | (inputs | |
502 | `(("perl-datetime" ,perl-datetime) | |
503 | ("perl-datetime-format-mail" ,perl-datetime-format-mail) | |
504 | ("perl-datetime-format-w3cdtf" ,perl-datetime-format-w3cdtf) | |
505 | ("perl-html-parser" ,perl-html-parser) | |
506 | ("perl-xml-parser" ,perl-xml-parser))) | |
9aba9b12 | 507 | (home-page "https://metacpan.org/release/XML-RSS") |
a022b23f | 508 | (synopsis "Creates and updates RSS files") |
509 | (description | |
510 | "This module provides a basic framework for creating and maintaining | |
511 | RDF Site Summary (RSS) files. This distribution also contains many examples | |
512 | that allow you to generate HTML from an RSS, convert between 0.9, 0.91, and | |
513 | 1.0 version, and more.") | |
2f3108ad | 514 | (license license:perl-license))) |
a022b23f | 515 | |
18b8bbb3 EB |
516 | (define-public perl-xml-sax |
517 | (package | |
518 | (name "perl-xml-sax") | |
2dcde3c7 | 519 | (version "1.02") |
18b8bbb3 EB |
520 | (source |
521 | (origin | |
522 | (method url-fetch) | |
523 | (uri (string-append "mirror://cpan/authors/id/G/GR/GRANTM/" | |
524 | "XML-SAX-" version ".tar.gz")) | |
525 | (sha256 | |
2dcde3c7 | 526 | (base32 "0am13vnv8qsjafr5ljakwnkhlwpk15sga02z8mxsg9is0j3w61j5")))) |
18b8bbb3 EB |
527 | (build-system perl-build-system) |
528 | (propagated-inputs | |
529 | `(("perl-xml-namespacesupport" ,perl-xml-namespacesupport) | |
530 | ("perl-xml-sax-base" ,perl-xml-sax-base))) | |
531 | (arguments | |
532 | `(#:phases (modify-phases %standard-phases | |
533 | (add-before | |
40b084a3 | 534 | 'install 'augment-path |
18b8bbb3 EB |
535 | ;; The install target tries to load the newly-installed |
536 | ;; XML::SAX module, but can't find it, so we need to tell | |
537 | ;; perl where to look. | |
538 | (lambda* (#:key outputs #:allow-other-keys) | |
539 | (setenv "PERL5LIB" | |
540 | (string-append (getenv "PERL5LIB") ":" | |
541 | (assoc-ref outputs "out") | |
aa6f87a2 MW |
542 | "/lib/perl5/site_perl")) |
543 | #t))))) | |
9aba9b12 | 544 | (home-page "https://metacpan.org/release/XML-SAX") |
18b8bbb3 EB |
545 | (synopsis "Perl API for XML") |
546 | (description "XML::SAX consists of several framework classes for using and | |
547 | building Perl SAX2 XML parsers, filters, and drivers.") | |
2f3108ad | 548 | (license license:perl-license))) |
18b8bbb3 | 549 | |
1ed6d5bc EB |
550 | (define-public perl-xml-sax-base |
551 | (package | |
552 | (name "perl-xml-sax-base") | |
fa964e96 | 553 | (version "1.09") |
1ed6d5bc EB |
554 | (source |
555 | (origin | |
556 | (method url-fetch) | |
557 | (uri (string-append "mirror://cpan/authors/id/G/GR/GRANTM/" | |
558 | "XML-SAX-Base-" version ".tar.gz")) | |
559 | (sha256 | |
560 | (base32 | |
fa964e96 | 561 | "1l1ai9g1z11ja7mvnfl5mj346r13jyckbg9qlw6c2izglidkbjv6")))) |
1ed6d5bc | 562 | (build-system perl-build-system) |
9aba9b12 | 563 | (home-page "https://metacpan.org/release/XML-SAX-Base") |
1ed6d5bc EB |
564 | (synopsis "Base class for SAX Drivers and Filters") |
565 | (description "This module has a very simple task - to be a base class for | |
566 | PerlSAX drivers and filters. It's default behaviour is to pass the input | |
567 | directly to the output unchanged. It can be useful to use this module as a | |
568 | base class so you don't have to, for example, implement the characters() | |
569 | callback.") | |
2f3108ad | 570 | (license license:perl-license))) |
1ed6d5bc | 571 | |
535dc6cf AE |
572 | (define-public perl-xml-simple |
573 | (package | |
574 | (name "perl-xml-simple") | |
fa3fff43 | 575 | (version "2.25") |
535dc6cf AE |
576 | (source (origin |
577 | (method url-fetch) | |
578 | (uri (string-append | |
579 | "mirror://cpan/authors/id/G/GR/GRANTM/XML-Simple-" | |
580 | version ".tar.gz")) | |
581 | (sha256 | |
582 | (base32 | |
fa3fff43 | 583 | "1y6vh328zrh085d40852v4ij2l4g0amxykswxd1nfhd2pspds7sk")))) |
535dc6cf | 584 | (build-system perl-build-system) |
27ef7f45 | 585 | (propagated-inputs |
e831256f EF |
586 | `(("perl-xml-parser" ,perl-xml-parser) |
587 | ("perl-xml-sax" ,perl-xml-sax))) | |
2f3108ad | 588 | (license license:perl-license) |
535dc6cf AE |
589 | (synopsis "Perl module for easy reading/writing of XML files") |
590 | (description | |
591 | "The XML::Simple module provides a simple API layer on top of an | |
592 | underlying XML parsing module (either XML::Parser or one of the SAX2 | |
593 | parser modules).") | |
9aba9b12 | 594 | (home-page "https://metacpan.org/release/XML-Simple"))) |
535dc6cf | 595 | |
a2e520af AE |
596 | (define-public perl-xml-regexp |
597 | (package | |
598 | (name "perl-xml-regexp") | |
599 | (version "0.04") | |
600 | (source (origin | |
601 | (method url-fetch) | |
602 | (uri (string-append | |
603 | "mirror://cpan/authors/id/T/TJ/TJMATHER/XML-RegExp-" | |
604 | version ".tar.gz")) | |
605 | (sha256 | |
606 | (base32 | |
607 | "0m7wj00a2kik7wj0azhs1zagwazqh3hlz4255n75q21nc04r06fz")))) | |
608 | (build-system perl-build-system) | |
609 | (inputs | |
610 | `(("perl-xml-parser" ,perl-xml-parser))) | |
2f3108ad | 611 | (license license:perl-license) |
a2e520af AE |
612 | (synopsis "Perl regular expressions for XML tokens") |
613 | (description | |
614 | "XML::RegExp contains regular expressions for the following XML tokens: | |
615 | BaseChar, Ideographic, Letter, Digit, Extender, CombiningChar, NameChar, | |
616 | EntityRef, CharRef, Reference, Name, NmToken, and AttValue.") | |
9aba9b12 | 617 | (home-page "https://metacpan.org/release/XML-RegExp"))) |
a2e520af | 618 | |
ad871fc6 AE |
619 | (define-public perl-xml-dom |
620 | (package | |
621 | (name "perl-xml-dom") | |
4e5465f2 | 622 | (version "1.46") |
ad871fc6 AE |
623 | (source (origin |
624 | (method url-fetch) | |
625 | (uri (string-append | |
626 | "mirror://cpan/authors/id/T/TJ/TJMATHER/XML-DOM-" | |
627 | version ".tar.gz")) | |
628 | (sha256 | |
629 | (base32 | |
4e5465f2 | 630 | "0phpkc4li43m2g44hdcvyxzy9pymqwlqhh5hwp2xc0cv8l5lp8lb")))) |
ad871fc6 | 631 | (build-system perl-build-system) |
f7faff88 AE |
632 | (propagated-inputs |
633 | `(("perl-libwww" ,perl-libwww) | |
ad871fc6 | 634 | ("perl-libxml" ,perl-libxml) |
4e5465f2 | 635 | ("perl-xml-parser" ,perl-xml-parser) |
ad871fc6 | 636 | ("perl-xml-regexp" ,perl-xml-regexp))) |
2f3108ad | 637 | (license license:perl-license) |
ad871fc6 AE |
638 | (synopsis |
639 | "Perl module for building DOM Level 1 compliant document structures") | |
640 | (description | |
641 | "This module extends the XML::Parser module by Clark Cooper. The | |
642 | XML::Parser module is built on top of XML::Parser::Expat, which is a lower | |
643 | level interface to James Clark's expat library. XML::DOM::Parser is derived | |
644 | from XML::Parser. It parses XML strings or files and builds a data structure | |
645 | that conforms to the API of the Document Object Model.") | |
9aba9b12 | 646 | (home-page "https://metacpan.org/release/XML-DOM"))) |
ad871fc6 | 647 | |
649e1676 RW |
648 | (define-public perl-xml-compile-tester |
649 | (package | |
650 | (name "perl-xml-compile-tester") | |
9af5a513 | 651 | (version "0.91") |
649e1676 RW |
652 | (source (origin |
653 | (method url-fetch) | |
654 | (uri (string-append "mirror://cpan/authors/id/M/MA/MARKOV/" | |
655 | "XML-Compile-Tester-" version ".tar.gz")) | |
656 | (sha256 | |
657 | (base32 | |
9af5a513 | 658 | "1drzwziwi96rfkh48qpw4l225mcbk8ppl2157nj92cslcpwwdk75")))) |
649e1676 RW |
659 | (build-system perl-build-system) |
660 | (propagated-inputs | |
661 | `(("perl-log-report" ,perl-log-report) | |
662 | ("perl-test-deep" ,perl-test-deep))) | |
9aba9b12 | 663 | (home-page "https://metacpan.org/release/XML-Compile-Tester") |
649e1676 RW |
664 | (synopsis "XML::Compile related regression testing") |
665 | (description | |
666 | "The @code{XML::Compile} module suite has extensive regression testing. | |
667 | This module provide functions which simplify writing tests for | |
668 | @code{XML::Compile} related distributions.") | |
2f3108ad | 669 | (license license:perl-license))) |
649e1676 | 670 | |
b494a5f1 RW |
671 | (define-public perl-xml-compile |
672 | (package | |
673 | (name "perl-xml-compile") | |
107976ac | 674 | (version "1.62") |
b494a5f1 RW |
675 | (source (origin |
676 | (method url-fetch) | |
677 | (uri (string-append "mirror://cpan/authors/id/M/MA/MARKOV/" | |
678 | "XML-Compile-" version ".tar.gz")) | |
679 | (sha256 | |
680 | (base32 | |
107976ac | 681 | "0a75gr4qcjj8ybzljacbbkdxprbqpypz49bc0jb7cfamx1hp7p2w")))) |
b494a5f1 RW |
682 | (build-system perl-build-system) |
683 | (propagated-inputs | |
174988fa TGR |
684 | `(("perl-carp" ,perl-carp) |
685 | ("perl-log-report" ,perl-log-report) | |
b494a5f1 RW |
686 | ("perl-xml-compile-tester" ,perl-xml-compile-tester) |
687 | ("perl-xml-libxml" ,perl-xml-libxml) | |
174988fa TGR |
688 | ("perl-scalar-list-utils" ,perl-scalar-list-utils) |
689 | ("perl-test-deep" ,perl-test-deep) | |
690 | ("perl-types-serialiser" ,perl-types-serialiser))) | |
9aba9b12 | 691 | (home-page "https://metacpan.org/release/XML-Compile") |
b494a5f1 RW |
692 | (synopsis "Compilation-based XML processing") |
693 | (description | |
694 | "@code{XML::Compile} can be used to translate a Perl data-structure into | |
695 | XML or XML into a Perl data-structure, both directions under rigid control by | |
696 | a schema.") | |
2f3108ad | 697 | (license license:perl-license))) |
b494a5f1 | 698 | |
c1d41b5d RW |
699 | (define-public perl-xml-compile-cache |
700 | (package | |
701 | (name "perl-xml-compile-cache") | |
503a0059 | 702 | (version "1.06") |
c1d41b5d RW |
703 | (source (origin |
704 | (method url-fetch) | |
705 | (uri (string-append "mirror://cpan/authors/id/M/MA/MARKOV/" | |
706 | "XML-Compile-Cache-" version ".tar.gz")) | |
707 | (sha256 | |
708 | (base32 | |
503a0059 | 709 | "181qf1s7ymgi7saph3cf9p6dbxkxyh1ja23na4dchhi8v5mi66sr")))) |
c1d41b5d RW |
710 | (build-system perl-build-system) |
711 | (propagated-inputs | |
712 | `(("perl-log-report" ,perl-log-report) | |
713 | ("perl-xml-compile" ,perl-xml-compile) | |
714 | ("perl-xml-compile-tester" ,perl-xml-compile-tester) | |
715 | ("perl-xml-libxml-simple" ,perl-xml-libxml-simple))) | |
9aba9b12 | 716 | (home-page "https://metacpan.org/release/XML-Compile-Cache") |
c1d41b5d RW |
717 | (synopsis "Cache compiled XML translators") |
718 | (description | |
719 | "This package provides methods to cache compiled XML translators.") | |
2f3108ad | 720 | (license license:perl-license))) |
c1d41b5d | 721 | |
baeab9b8 RW |
722 | (define-public perl-xml-compile-soap |
723 | (package | |
724 | (name "perl-xml-compile-soap") | |
1d9b041c | 725 | (version "3.24") |
baeab9b8 RW |
726 | (source (origin |
727 | (method url-fetch) | |
728 | (uri (string-append "mirror://cpan/authors/id/M/MA/MARKOV/" | |
729 | "XML-Compile-SOAP-" version ".tar.gz")) | |
730 | (sha256 | |
731 | (base32 | |
1d9b041c | 732 | "0pkcph562l2ij7rlwlvm58v6y062qsbydfpaz2qnph2ixqy0xfd1")))) |
baeab9b8 RW |
733 | (build-system perl-build-system) |
734 | (propagated-inputs | |
735 | `(("perl-file-slurp-tiny" ,perl-file-slurp-tiny) | |
736 | ("perl-libwww" ,perl-libwww) | |
737 | ("perl-log-report" ,perl-log-report) | |
738 | ("perl-xml-compile" ,perl-xml-compile) | |
739 | ("perl-xml-compile-cache" ,perl-xml-compile-cache) | |
740 | ("perl-xml-compile-tester" ,perl-xml-compile-tester))) | |
9aba9b12 | 741 | (home-page "https://metacpan.org/release/XML-Compile-SOAP") |
baeab9b8 RW |
742 | (synopsis "Base-class for SOAP implementations") |
743 | (description | |
744 | "This module provides a class to handle the SOAP protocol. The first | |
745 | implementation is @url{SOAP1.1, | |
746 | http://www.w3.org/TR/2000/NOTE-SOAP-20000508/}, which is still most often | |
747 | used.") | |
2f3108ad | 748 | (license license:perl-license))) |
baeab9b8 | 749 | |
6a914948 RW |
750 | (define-public perl-xml-compile-wsdl11 |
751 | (package | |
752 | (name "perl-xml-compile-wsdl11") | |
4b4a4f5c | 753 | (version "3.07") |
6a914948 RW |
754 | (source (origin |
755 | (method url-fetch) | |
756 | (uri (string-append "mirror://cpan/authors/id/M/MA/MARKOV/" | |
757 | "XML-Compile-WSDL11-" version ".tar.gz")) | |
758 | (sha256 | |
759 | (base32 | |
4b4a4f5c | 760 | "09ayl442hzvn97q4ghn5rz4r82dm9w3l69hixhb29h9xq9ysi7ba")))) |
6a914948 RW |
761 | (build-system perl-build-system) |
762 | (propagated-inputs | |
763 | `(("perl-log-report" ,perl-log-report) | |
764 | ("perl-xml-compile" ,perl-xml-compile) | |
765 | ("perl-xml-compile-cache" ,perl-xml-compile-cache) | |
766 | ("perl-xml-compile-soap" ,perl-xml-compile-soap))) | |
9aba9b12 | 767 | (home-page "https://metacpan.org/release/XML-Compile-WSDL11") |
6a914948 RW |
768 | (synopsis "Create SOAP messages defined by WSDL 1.1") |
769 | (description | |
770 | "This module understands WSDL version 1.1. A WSDL file defines a set of | |
771 | messages to be send and received over SOAP connections. This involves | |
772 | encoding of the message to be send into XML, sending the message to the | |
773 | server, collect the answer, and finally decoding the XML to Perl.") | |
2f3108ad | 774 | (license license:perl-license))) |
6a914948 | 775 | |
246455c2 | 776 | (define-public perl-xml-feed |
777 | (package | |
778 | (name "perl-xml-feed") | |
8dfdd746 | 779 | (version "0.59") |
246455c2 | 780 | (source (origin |
781 | (method url-fetch) | |
782 | (uri (string-append "mirror://cpan/authors/id/D/DA/DAVECROSS/" | |
783 | "XML-Feed-" version ".tar.gz")) | |
784 | (sha256 | |
785 | (base32 | |
8dfdd746 | 786 | "1z1a88bpy64j42bbyl8acbfl3dn9iaz47gx6clkgy5sbn4kr0kgk")))) |
246455c2 | 787 | (build-system perl-build-system) |
788 | (arguments | |
ddf72f50 | 789 | `(#:tests? #f)) ; tests require internet connection |
246455c2 | 790 | (native-inputs |
791 | `(("perl-module-build" ,perl-module-build) | |
792 | ("perl-uri" ,perl-uri) | |
793 | ("perl-class-data-inheritable" ,perl-class-data-inheritable))) | |
794 | (inputs | |
795 | `(("perl-class-errorhandler" ,perl-class-errorhandler) | |
796 | ("perl-datetime" ,perl-datetime) | |
797 | ("perl-datetime-format-mail" ,perl-datetime-format-mail) | |
798 | ("perl-datetime-format-w3cdtf" ,perl-datetime-format-w3cdtf) | |
799 | ("perl-feed-find" ,perl-feed-find) | |
800 | ("perl-html-parser" ,perl-html-parser) | |
801 | ("perl-libwww-perl" ,perl-libwww) | |
802 | ("perl-module-pluggable" ,perl-module-pluggable) | |
803 | ("perl-uri-fetch" ,perl-uri-fetch) | |
804 | ("perl-xml-atom" ,perl-xml-atom) | |
805 | ("perl-xml-libxml" ,perl-xml-libxml) | |
806 | ("perl-xml-rss" ,perl-xml-rss))) | |
9aba9b12 | 807 | (home-page "https://metacpan.org/release/XML-Feed") |
246455c2 | 808 | (synopsis "XML Syndication Feed Support") |
809 | (description "@code{XML::Feed} is a syndication feed parser for both RSS and | |
810 | Atom feeds. It also implements feed auto-discovery for finding feeds, given a URI. | |
811 | @code{XML::Feed} supports the following syndication feed formats: | |
812 | RSS 0.91, RSS 1.0, RSS 2.0, Atom") | |
2f3108ad | 813 | (license license:perl-license))) |
246455c2 | 814 | |
0c1bab36 | 815 | (define-public perl-xml-xpath |
816 | (package | |
817 | (name "perl-xml-xpath") | |
fc82538c | 818 | (version "1.44") |
0c1bab36 | 819 | (source (origin |
820 | (method url-fetch) | |
821 | (uri (string-append "mirror://cpan/authors/id/M/MA/MANWAR/" | |
822 | "XML-XPath-" version ".tar.gz")) | |
823 | (sha256 | |
824 | (base32 | |
fc82538c | 825 | "03yxj7w5a43ibbpiqsvb3lswj2b71dydsx4rs2fw0p8n0l3i3j8w")))) |
0c1bab36 | 826 | (build-system perl-build-system) |
827 | (native-inputs | |
828 | `(("perl-path-tiny" ,perl-path-tiny))) | |
9332d706 | 829 | (propagated-inputs |
0c1bab36 | 830 | `(("perl-xml-parser" ,perl-xml-parser))) |
9aba9b12 | 831 | (home-page "https://metacpan.org/release/XML-XPath") |
0c1bab36 | 832 | (synopsis "Parse and evaluate XPath statements") |
833 | (description | |
834 | "This module aims to comply exactly to the @url{XPath specification, | |
835 | https://www.w3.org/TR/xpath} and yet allow extensions to be added in | |
836 | the form of functions.") | |
2f3108ad | 837 | (license license:perl-license))) |
0c1bab36 | 838 | |
6ce212b8 RW |
839 | (define-public pugixml |
840 | (package | |
841 | (name "pugixml") | |
727ffbd5 | 842 | (version "1.9") |
6ce212b8 RW |
843 | (source |
844 | (origin | |
845 | (method url-fetch) | |
0562a81e EF |
846 | (uri (string-append "https://github.com/zeux/pugixml/releases/download/v" |
847 | version "/pugixml-" version ".tar.gz")) | |
7fda7b8f | 848 | (patches (search-patches "pugixml-versioned-libdir.patch")) |
6ce212b8 RW |
849 | (sha256 |
850 | (base32 | |
727ffbd5 | 851 | "19nv3zhik3djp4blc4vrjwrl8dfhzmal8b21sq7y907nhddx6mni")))) |
6ce212b8 RW |
852 | (build-system cmake-build-system) |
853 | (arguments | |
7fda7b8f MB |
854 | `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON") |
855 | #:tests? #f)) ;no tests | |
856 | (native-inputs | |
857 | `(("pkg-config" ,pkg-config))) | |
28655227 | 858 | (home-page "https://pugixml.org") |
6ce212b8 RW |
859 | (synopsis "Light-weight, simple and fast XML parser for C++ with XPath support") |
860 | (description | |
861 | "pugixml is a C++ XML processing library, which consists of a DOM-like | |
862 | interface with rich traversal/modification capabilities, a fast XML parser | |
863 | which constructs the DOM tree from an XML file/buffer, and an XPath 1.0 | |
864 | implementation for complex data-driven tree queries. Full Unicode support is | |
865 | also available, with Unicode interface variants and conversions between | |
866 | different Unicode encodings which happen automatically during | |
867 | parsing/saving.") | |
868 | (license license:expat))) | |
869 | ||
c2efe1ae MB |
870 | (define-public python-pyxb |
871 | (package | |
872 | (name "python-pyxb") | |
4ef6cfef | 873 | (version "1.2.6") |
c2efe1ae MB |
874 | (source (origin |
875 | (method url-fetch) | |
876 | (uri (pypi-uri "PyXB" version)) | |
877 | (sha256 | |
878 | (base32 | |
4ef6cfef | 879 | "1d17pyixbfvjyi2lb0cfp0ch8wwdf44mmg3r5pwqhyyqs66z601a")))) |
c2efe1ae MB |
880 | (build-system python-build-system) |
881 | (home-page "http://pyxb.sourceforge.net/") | |
882 | (synopsis "Python XML Schema Bindings") | |
883 | (description | |
884 | "PyXB (\"pixbee\") is a pure Python package that generates Python source | |
885 | code for classes that correspond to data structures defined by XMLSchema.") | |
886 | (license (list license:asl2.0 ; Most files. | |
887 | license:expat ; pyxb/utils/six.py | |
888 | license:gpl2 ; bundled jquery in doc is dual MIT/GPL2 | |
889 | license:psfl)))) ; pyxb/utils/activestate.py | |
890 | ||
891 | (define-public python2-pyxb | |
892 | (package-with-python2 python-pyxb)) | |
893 | ||
37f9ff63 AE |
894 | (define-public xmlto |
895 | (package | |
896 | (name "xmlto") | |
877a6466 | 897 | (version "0.0.28") |
37f9ff63 AE |
898 | (source |
899 | (origin | |
900 | (method url-fetch) | |
7bc19c92 LF |
901 | ;; The old source on fedorahosted.org is offline permanently: |
902 | ;; <https://bugs.gnu.org/25989> | |
903 | (uri (string-append "mirror://debian/pool/main/x/xmlto/" | |
904 | "xmlto_" version ".orig.tar.bz2")) | |
905 | (file-name (string-append name "-" version ".tar.bz2")) | |
37f9ff63 AE |
906 | (sha256 |
907 | (base32 | |
877a6466 | 908 | "0xhj8b2pwp4vhl9y16v3dpxpsakkflfamr191mprzsspg4xdyc0i")))) |
37f9ff63 | 909 | (build-system gnu-build-system) |
ae0c1202 LC |
910 | (arguments |
911 | ;; Make sure the reference to util-linux's 'getopt' is kept in 'xmlto'. | |
912 | '(#:configure-flags (list (string-append "GETOPT=" | |
913 | (assoc-ref %build-inputs | |
914 | "util-linux") | |
915 | "/bin/getopt")))) | |
37f9ff63 | 916 | (inputs |
ae0c1202 LC |
917 | `(("util-linux" ,util-linux) ; for 'getopt' |
918 | ("libxml2" ,libxml2) ; for 'xmllint' | |
919 | ("libxslt" ,libxslt))) ; for 'xsltproc' | |
37f9ff63 AE |
920 | (home-page "http://cyberelk.net/tim/software/xmlto/") |
921 | (synopsis "Front-end to an XSL toolchain") | |
922 | (description | |
923 | "Xmlto is a front-end to an XSL toolchain. It chooses an appropriate | |
924 | stylesheet for the conversion you want and applies it using an external | |
925 | XSL-T processor. It also performs any necessary post-processing.") | |
926 | (license license:gpl2+))) | |
0899144f AE |
927 | |
928 | (define-public xmlsec | |
929 | (package | |
930 | (name "xmlsec") | |
e6d78262 | 931 | (version "1.2.28") |
0899144f | 932 | (source (origin |
50f5aa4b TGR |
933 | (method url-fetch) |
934 | (uri (string-append "https://www.aleksey.com/xmlsec/download/" | |
935 | "xmlsec1-" version ".tar.gz")) | |
936 | (sha256 | |
937 | (base32 | |
e6d78262 | 938 | "1m12caglhyx08g8lh2sl3nkldlpryzdx2d572q73y3m33s0w9vhk")))) |
0899144f | 939 | (build-system gnu-build-system) |
50f5aa4b | 940 | (propagated-inputs ; according to xmlsec1.pc |
0899144f AE |
941 | `(("libxml2" ,libxml2) |
942 | ("libxslt" ,libxslt))) | |
943 | (inputs | |
944 | `(("gnutls" ,gnutls) | |
945 | ("libgcrypt" ,libgcrypt) | |
946 | ("libltdl" ,libltdl))) | |
e4aab734 RW |
947 | (native-inputs |
948 | `(("pkg-config" ,pkg-config))) | |
a5b570b4 | 949 | (home-page "https://www.aleksey.com/xmlsec/") |
0899144f AE |
950 | (synopsis "XML Security Library") |
951 | (description | |
952 | "The XML Security Library is a C library based on Libxml2. It | |
953 | supports XML security standards such as XML Signature, XML Encryption, | |
954 | Canonical XML (part of Libxml2) and Exclusive Canonical XML (part of | |
955 | Libxml2).") | |
956 | (license (license:x11-style "file://COPYING" | |
957 | "See 'COPYING' in the distribution.")))) | |
96f8d991 | 958 | |
b4c9a317 MB |
959 | (define-public xmlsec-nss |
960 | (package | |
961 | (inherit xmlsec) | |
962 | (name "xmlsec-nss") | |
3825b444 TGR |
963 | (native-inputs |
964 | ;; For tests. | |
965 | `(("nss:bin" ,nss "bin") ; for certutil | |
966 | ,@(package-native-inputs xmlsec))) | |
b4c9a317 MB |
967 | (inputs |
968 | `(("nss" ,nss) | |
969 | ("libltdl" ,libltdl))) | |
970 | (synopsis "XML Security Library (using NSS instead of GnuTLS)"))) | |
971 | ||
96f8d991 RW |
972 | (define-public minixml |
973 | (package | |
974 | (name "minixml") | |
5b59c775 | 975 | (version "2.12") |
96f8d991 | 976 | (source (origin |
b7cbcee5 | 977 | (method url-fetch/tarbomb) |
eba9ecd4 | 978 | (uri (string-append "https://github.com/michaelrsweet/mxml/" |
b7cbcee5 | 979 | "releases/download/v" version |
eba9ecd4 | 980 | "/mxml-" version ".tar.gz")) |
96f8d991 RW |
981 | (sha256 |
982 | (base32 | |
5b59c775 | 983 | "1z8nqxa4pqdic8wpixkkgg1m2pak9wjikjjxnk3j5i0d29dbgmmg")))) |
96f8d991 RW |
984 | (build-system gnu-build-system) |
985 | (arguments | |
5b59c775 TGR |
986 | `(#:configure-flags |
987 | (list (string-append "LDFLAGS=-Wl,-rpath=" | |
988 | (assoc-ref %outputs "out") "/lib")) | |
989 | #:phases | |
b7cbcee5 TGR |
990 | (modify-phases %standard-phases |
991 | (add-after 'unpack 'fix-permissions | |
992 | ;; FIXME: url-fetch/tarbomb resets all permissions to 555/444. | |
993 | (lambda _ | |
994 | (for-each | |
995 | (lambda (file) | |
996 | (chmod file #o644)) | |
997 | (find-files "doc" "\\.")) | |
998 | #t))) | |
999 | #:tests? #f)) ; tests are run during build | |
eba9ecd4 | 1000 | (home-page "https://michaelrsweet.github.io/mxml") |
96f8d991 RW |
1001 | (synopsis "Small XML parsing library") |
1002 | (description | |
1003 | "Mini-XML is a small C library to read and write XML files and strings in | |
1004 | UTF-8 and UTF-16 encoding.") | |
1005 | ;; LGPL 2.0+ with additional exceptions for static linking | |
1006 | (license license:lgpl2.0+))) | |
33ae9107 DT |
1007 | |
1008 | ;; TinyXML is an unmaintained piece of software, so the patches and build | |
1009 | ;; system massaging have no upstream potential. | |
1010 | (define-public tinyxml | |
1011 | (package | |
1012 | (name "tinyxml") | |
1013 | (version "2.6.2") | |
1014 | (source (origin | |
1015 | (method url-fetch) | |
de67e922 LF |
1016 | (uri (string-append "mirror://sourceforge/tinyxml/tinyxml/" |
1017 | version "/tinyxml_" | |
33ae9107 DT |
1018 | (string-join (string-split version #\.) "_") |
1019 | ".tar.gz")) | |
671249b9 | 1020 | (file-name (string-append name "-" version ".tar.gz")) |
33ae9107 DT |
1021 | (sha256 |
1022 | (base32 | |
1023 | "14smciid19lvkxqznfig77jxn5s4iq3jpb47vh5a6zcaqp7gvg8m")) | |
fc1adab1 | 1024 | (patches (search-patches "tinyxml-use-stl.patch")))) |
33ae9107 DT |
1025 | (build-system gnu-build-system) |
1026 | ;; This library is missing *a lot* of the steps to make it usable, so we | |
1027 | ;; have to add them here, like every other distro must do. | |
1028 | (arguments | |
1029 | `(#:phases | |
1030 | (modify-phases %standard-phases | |
1031 | (delete 'configure) | |
1032 | (add-after 'build 'build-shared-library | |
1033 | (lambda _ | |
0efb6452 EF |
1034 | (invoke "g++" "-Wall" "-O2" "-shared" "-fpic" |
1035 | "tinyxml.cpp" "tinyxmlerror.cpp" | |
1036 | "tinyxmlparser.cpp" "tinystr.cpp" | |
1037 | "-o" "libtinyxml.so"))) | |
33ae9107 | 1038 | (replace 'check |
0efb6452 | 1039 | (lambda _ (invoke "./xmltest"))) |
33ae9107 DT |
1040 | (replace 'install |
1041 | (lambda* (#:key outputs #:allow-other-keys) | |
1042 | (let* ((out (assoc-ref outputs "out")) | |
1043 | (include (string-append out "/include")) | |
1044 | (lib (string-append out "/lib")) | |
1045 | (pkgconfig (string-append out "/lib/pkgconfig")) | |
1046 | (doc (string-append out "/share/doc"))) | |
1047 | ;; Install libs and headers. | |
1048 | (install-file "libtinyxml.so" lib) | |
1049 | (install-file "tinystr.h" include) | |
1050 | (install-file "tinyxml.h" include) | |
1051 | ;; Generate and install pkg-config file. | |
1052 | (mkdir-p pkgconfig) | |
1053 | ;; Software such as Kodi expect this file to be present, but | |
1054 | ;; it's not provided in the source code. | |
1055 | (call-with-output-file (string-append pkgconfig "/tinyxml.pc") | |
1056 | (lambda (port) | |
1057 | (format port "prefix=~a | |
1058 | exec_prefix=${prefix} | |
1059 | libdir=${exec_prefix}/lib | |
1060 | includedir=${prefix}/include | |
1061 | ||
1062 | Name: TinyXML | |
1063 | Description: A simple, small, C++ XML parser | |
1064 | Version: ~a | |
1065 | Libs: -L${libdir} -ltinyxml | |
1066 | Cflags: -I${includedir} | |
1067 | " | |
1068 | out ,version))) | |
1069 | ;; Install docs. | |
1070 | (mkdir-p doc) | |
1071 | (copy-recursively "docs" (string-append doc "tinyxml")) | |
1072 | #t)))))) | |
1073 | (synopsis "Small XML parser for C++") | |
1074 | (description "TinyXML is a small and simple XML parsing library for the | |
05077200 | 1075 | C++ programming language.") |
33ae9107 DT |
1076 | (home-page "http://www.grinninglizard.com/tinyxml/index.html") |
1077 | (license license:zlib))) | |
fe9451c5 | 1078 | |
931bd7f6 TGR |
1079 | (define-public tinyxml2 |
1080 | (package | |
1081 | (name "tinyxml2") | |
c83aa292 | 1082 | (version "7.0.1") |
931bd7f6 TGR |
1083 | (source |
1084 | (origin | |
4bad4fbd TGR |
1085 | (method git-fetch) |
1086 | (uri (git-reference | |
1087 | (url "https://github.com/leethomason/tinyxml2.git") | |
1088 | (commit version))) | |
1089 | (file-name (git-file-name name version)) | |
931bd7f6 | 1090 | (sha256 |
c83aa292 | 1091 | (base32 "1sf6sch1kawrna2f9dc8f4xl836acqcddkghzdib0s7dl48m9r7m")))) |
931bd7f6 | 1092 | (build-system cmake-build-system) |
931bd7f6 TGR |
1093 | (synopsis "Small XML parser for C++") |
1094 | (description "TinyXML2 is a small and simple XML parsing library for the | |
1095 | C++ programming language.") | |
1096 | (home-page "http://www.grinninglizard.com/tinyxml2/") | |
1097 | (license license:zlib))) | |
1098 | ||
fe9451c5 RG |
1099 | (define-public xmlstarlet |
1100 | (package | |
1101 | (name "xmlstarlet") | |
1102 | (version "1.6.1") | |
1103 | (source | |
1104 | (origin | |
1105 | (method url-fetch) | |
1106 | (uri (string-append "mirror://sourceforge/xmlstar/xmlstarlet/" | |
1107 | version "/xmlstarlet-" version ".tar.gz")) | |
1108 | (sha256 | |
1109 | (base32 | |
1110 | "1jp737nvfcf6wyb54fla868yrr39kcbijijmjpyk4lrpyg23in0m")))) | |
1111 | (build-system gnu-build-system) | |
22ea0235 MB |
1112 | (arguments |
1113 | '(#:phases | |
1114 | (modify-phases %standard-phases | |
1115 | (add-before 'check 'drop-failing-tests | |
1116 | (lambda _ | |
1117 | ;; FIXME: Why are these tests failing. | |
1118 | (substitute* "Makefile" | |
1119 | (("^examples/schema1\\\\") "\\") | |
1120 | (("^examples/valid1\\\\") "\\")) | |
1121 | #t))))) | |
fe9451c5 RG |
1122 | (inputs |
1123 | `(("libxslt" ,libxslt) | |
1124 | ("libxml2" ,libxml2))) | |
1125 | (home-page "http://xmlstar.sourceforge.net/") | |
1126 | (synopsis "Command line XML toolkit") | |
1127 | (description "XMLStarlet is a set of command line utilities which can be | |
1128 | used to transform, query, validate, and edit XML documents. XPath is used to | |
1129 | match and extract data, and elements can be added, deleted or modified using | |
1130 | XSLT and EXSLT.") | |
1131 | (license license:x11))) | |
19c33040 | 1132 | |
767d24e8 SR |
1133 | (define-public html-xml-utils |
1134 | (package | |
1135 | (name "html-xml-utils") | |
4fab0da0 | 1136 | (version "7.7") |
767d24e8 SR |
1137 | (source |
1138 | (origin | |
1139 | (method url-fetch) | |
1140 | (uri (string-append | |
1141 | "https://www.w3.org/Tools/HTML-XML-utils/html-xml-utils-" | |
1142 | version ".tar.gz")) | |
1143 | (sha256 | |
1144 | (base32 | |
4fab0da0 | 1145 | "1vwqp5q276j8di9zql3kygf31z2frp2c59yjqlrvvwcvccvkcdwr")))) |
767d24e8 SR |
1146 | (build-system gnu-build-system) |
1147 | (home-page "https://www.w3.org/Tools/HTML-XML-utils/") | |
1148 | (synopsis "Command line utilities to manipulate HTML and XML files") | |
1149 | (description "HTML-XML-utils provides a number of simple utilities for | |
1150 | manipulating and converting HTML and XML files in various ways. The suite | |
1151 | consists of the following tools: | |
1152 | ||
1153 | @itemize | |
1154 | @item @command{asc2xml} convert from @code{UTF-8} to @code{&#nnn;} entities | |
1155 | @item @command{xml2asc} convert from @code{&#nnn;} entities to @code{UTF-8} | |
1156 | @item @command{hxaddid} add IDs to selected elements | |
1157 | @item @command{hxcite} replace bibliographic references by hyperlinks | |
1158 | @item @command{hxcite} mkbib - expand references and create bibliography | |
1159 | @item @command{hxclean} apply heuristics to correct an HTML file | |
1160 | @item @command{hxcopy} copy an HTML file while preserving relative links | |
1161 | @item @command{hxcount} count elements and attributes in HTML or XML files | |
1162 | @item @command{hxextract} extract selected elements | |
1163 | @item @command{hxincl} expand included HTML or XML files | |
1164 | @item @command{hxindex} create an alphabetically sorted index | |
1165 | @item @command{hxmkbib} create bibliography from a template | |
1166 | @item @command{hxmultitoc} create a table of contents for a set of HTML files | |
1167 | @item @command{hxname2id} move some @code{ID=} or @code{NAME=} from A | |
1168 | elements to their parents | |
1169 | @item @command{hxnormalize} pretty-print an HTML file | |
1170 | @item @command{hxnsxml} convert output of hxxmlns back to normal XML | |
1171 | @item @command{hxnum} number section headings in an HTML file | |
1172 | @item @command{hxpipe} convert XML to a format easier to parse with Perl or AWK | |
1173 | @item @command{hxprintlinks} number links and add table of URLs at end of an HTML file | |
1174 | @item @command{hxprune} remove marked elements from an HTML file | |
1175 | @item @command{hxref} generate cross-references | |
1176 | @item @command{hxselect} extract elements that match a (CSS) selector | |
1177 | @item @command{hxtoc} insert a table of contents in an HTML file | |
1178 | @item @command{hxuncdata} replace CDATA sections by character entities | |
1179 | @item @command{hxunent} replace HTML predefined character entities to @code{UTF-8} | |
1180 | @item @command{hxunpipe} convert output of pipe back to XML format | |
1181 | @item @command{hxunxmlns} replace \"global names\" by XML Namespace prefixes | |
1182 | @item @command{hxwls} list links in an HTML file | |
1183 | @item @command{hxxmlns} replace XML Namespace prefixes by \"global names\" | |
1184 | @end itemize | |
1185 | ") | |
1186 | (license license:expat))) | |
1187 | ||
19c33040 JN |
1188 | (define-public xlsx2csv |
1189 | (package | |
1190 | (name "xlsx2csv") | |
3255fc3b | 1191 | (version "0.7.4") |
3047c7ba TGR |
1192 | (source |
1193 | (origin | |
1194 | (method git-fetch) | |
1195 | (uri (git-reference | |
1196 | (url "https://github.com/dilshod/xlsx2csv.git") | |
1197 | (commit version))) | |
1198 | (file-name (git-file-name name version)) | |
1199 | (sha256 | |
1200 | (base32 "168dm6p7w6pvgd87yb9hcxv9y0liv6mxgril202nfva68cp8y939")))) | |
19c33040 JN |
1201 | (build-system python-build-system) |
1202 | (arguments | |
3255fc3b | 1203 | `(#:python ,python-2 ; use python-2 for the test script |
19c33040 JN |
1204 | #:phases |
1205 | (modify-phases %standard-phases | |
1206 | (replace 'check | |
1207 | (lambda _ | |
1208 | (substitute* "test/run" | |
3255fc3b | 1209 | ;; Run tests with `python' only. |
19c33040 | 1210 | (("^(PYTHON_VERSIONS = ).*" all m) (string-append m "['']"))) |
aa6f87a2 | 1211 | (invoke "test/run")))))) |
19c33040 JN |
1212 | (home-page "https://github.com/dilshod/xlsx2csv") |
1213 | (synopsis "XLSX to CSV converter") | |
1214 | (description | |
1215 | "Xlsx2csv is a program to convert Microsoft Excel 2007 XML (XLSX and | |
1216 | XLSM) format spreadsheets into plaintext @dfn{comma separated values} (CSV) | |
1217 | files. It is designed to be fast and to handle large input files.") | |
1218 | (license license:gpl2+))) | |
d2b51c08 | 1219 | |
1220 | (define-public python-defusedxml | |
1221 | (package | |
1222 | (name "python-defusedxml") | |
ca6197dd | 1223 | (version "0.5.0") |
d2b51c08 | 1224 | (source |
1225 | (origin | |
1226 | (method url-fetch) | |
1227 | (uri (pypi-uri "defusedxml" version)) | |
1228 | (sha256 | |
1229 | (base32 | |
ca6197dd | 1230 | "1x54n0h8hl92vvwyymx883fbqpqjwn2mc8fb383bcg3z9zwz5mr4")))) |
d2b51c08 | 1231 | (build-system python-build-system) |
1232 | (home-page "https://bitbucket.org/tiran/defusedxml") | |
1233 | (synopsis "XML bomb protection for Python stdlib modules") | |
1234 | (description | |
1235 | "Defusedxml provides XML bomb protection for Python stdlib modules.") | |
1236 | (license license:psfl))) | |
1237 | ||
1238 | (define-public python2-defusedxml | |
1239 | (package-with-python2 python-defusedxml)) | |
ca8f3f9a | 1240 | |
623fb4d1 AP |
1241 | (define-public freexl |
1242 | (package | |
1243 | (name "freexl") | |
5275f69e | 1244 | (version "1.0.5") |
623fb4d1 AP |
1245 | (source (origin |
1246 | (method url-fetch) | |
1247 | (uri (string-append "http://www.gaia-gis.it/gaia-sins/" | |
1248 | name "-" version ".tar.gz")) | |
1249 | (sha256 | |
1250 | (base32 | |
5275f69e | 1251 | "03bmwq6hngmzwpqpb7c2amqlspz4q69iv96nlf0f5c0qs98b3j9x")))) |
623fb4d1 AP |
1252 | (build-system gnu-build-system) |
1253 | (home-page "https://www.gaia-gis.it/fossil/freexl/index") | |
1254 | (synopsis "Read Excel files") | |
1255 | (description | |
1256 | "FreeXL is a C library to extract valid data from within an Excel (.xls) | |
1257 | spreadsheet.") | |
1258 | ;; Any of these licenses may be picked. | |
1259 | (license (list license:gpl2+ | |
1260 | license:lgpl2.1+ | |
1261 | license:mpl1.1)))) | |
d00d6cea RW |
1262 | |
1263 | (define-public xerces-c | |
1264 | (package | |
1265 | (name "xerces-c") | |
1266 | (version "3.1.4") | |
1267 | (source (origin | |
1268 | (method url-fetch) | |
1269 | (uri (string-append "mirror://apache/xerces/c/3/sources/" | |
1270 | "xerces-c-" version ".tar.xz")) | |
1271 | (sha256 | |
1272 | (base32 | |
1273 | "0hb29c0smqlpxj0zdm09s983z5jx37szlliccnvgh0qq91wwqwwr")))) | |
1274 | (build-system gnu-build-system) | |
1275 | (arguments | |
1276 | (let ((system (or (%current-target-system) | |
1277 | (%current-system)))) | |
1278 | (if (string-prefix? "x86_64" system) | |
1279 | '() | |
1280 | '(#:configure-flags '("--disable-sse2"))))) | |
1281 | (native-inputs | |
1282 | `(("perl" ,perl))) | |
1283 | (home-page "http://xerces.apache.org/xerces-c/") | |
1284 | (synopsis "Validating XML parser library for C++") | |
1285 | (description "Xerces-C++ is a validating XML parser written in a portable | |
1286 | subset of C++. Xerces-C++ makes it easy to give your application the ability | |
1287 | to read and write XML data. A shared library is provided for parsing, | |
1288 | generating, manipulating, and validating XML documents using the DOM, SAX, and | |
1289 | SAX2 APIs.") | |
1290 | (license license:asl2.0))) | |
77d7b57c RW |
1291 | |
1292 | (define-public java-simple-xml | |
1293 | (package | |
1294 | (name "java-simple-xml") | |
1295 | (version "2.7.1") | |
1296 | (source (origin | |
1297 | (method url-fetch) | |
1298 | (uri (string-append "mirror://sourceforge/simple/simple-xml-" | |
1299 | version ".zip")) | |
1300 | (sha256 | |
1301 | (base32 | |
3c274149 GB |
1302 | "0w19k1awslmihpwsxwjbg89hv0vjhk4k3i0vrfchy3mqknd988y5")) |
1303 | (patches (search-patches "java-simple-xml-fix-tests.patch")))) | |
77d7b57c RW |
1304 | (build-system ant-build-system) |
1305 | (arguments | |
1306 | `(#:build-target "build" | |
1307 | #:test-target "test" | |
1308 | #:phases | |
1309 | (modify-phases %standard-phases | |
1310 | (replace 'install (install-jars "jar"))))) | |
1311 | (native-inputs | |
1312 | `(("unzip" ,unzip))) | |
1313 | (home-page "http://simple.sourceforge.net/") | |
1314 | (synopsis "XML serialization framework for Java") | |
1315 | (description "Simple is a high performance XML serialization and | |
1316 | configuration framework for Java. Its goal is to provide an XML framework | |
1317 | that enables rapid development of XML configuration and communication systems. | |
1318 | This framework aids the development of XML systems with minimal effort and | |
1319 | reduced errors. It offers full object serialization and deserialization, | |
1320 | maintaining each reference encountered.") | |
1321 | (license license:asl2.0))) | |
3b695802 P |
1322 | |
1323 | (define-public perl-xml-xpathengine | |
1324 | (package | |
1325 | (name "perl-xml-xpathengine") | |
1326 | (version "0.14") | |
1327 | (source (origin | |
1328 | (method url-fetch) | |
1329 | (uri (string-append "mirror://cpan/authors/id/M/MI/MIROD/" | |
1330 | "XML-XPathEngine-" version ".tar.gz")) | |
1331 | (sha256 | |
1332 | (base32 | |
1333 | "0r72na14bmsxfd16s9nlza155amqww0k8wsa9x2a3sqbpp5ppznj")))) | |
1334 | (build-system perl-build-system) | |
9aba9b12 | 1335 | (home-page "https://metacpan.org/release/XML-XPathEngine") |
3b695802 P |
1336 | (synopsis "Re-usable XPath engine for DOM-like trees") |
1337 | (description | |
1338 | "This module provides an XPath engine, that can be re-used by other | |
1339 | modules/classes that implement trees. | |
1340 | ||
1341 | In order to use the XPath engine, nodes in the user module need to mimick DOM | |
1342 | nodes. The degree of similitude between the user tree and a DOM dictates how | |
1343 | much of the XPath features can be used. A module implementing all of the DOM | |
1344 | should be able to use this module very easily (you might need to add the | |
1345 | @code{cmp} method on nodes in order to get ordered result sets).") | |
1346 | (license license:perl-license))) | |
9e1c3581 P |
1347 | |
1348 | (define-public perl-tree-xpathengine | |
1349 | (package | |
1350 | (name "perl-tree-xpathengine") | |
1351 | (version "0.05") | |
1352 | (source (origin | |
1353 | (method url-fetch) | |
1354 | (uri (string-append "mirror://cpan/authors/id/M/MI/MIROD/" | |
1355 | "Tree-XPathEngine-" version ".tar.gz")) | |
1356 | (sha256 | |
1357 | (base32 | |
1358 | "1vbbw8wxm79r3xbra8narw1dqvm34510q67wbmg2zmj6zd1k06r9")))) | |
1359 | (build-system perl-build-system) | |
9aba9b12 | 1360 | (home-page "https://metacpan.org/release/Tree-XPathEngine") |
9e1c3581 P |
1361 | (synopsis "Re-usable XPath engine") |
1362 | (description | |
1363 | "This module provides an XPath engine, that can be re-used by other | |
1364 | module/classes that implement trees. It is designed to be compatible with | |
1365 | @code{Class::XPath}, ie it passes its tests if you replace @code{Class::XPath} | |
1366 | by @code{Tree::XPathEngine}.") | |
1367 | (license license:perl-license))) | |
b7c59195 P |
1368 | |
1369 | (define-public perl-xml-filter-buffertext | |
1370 | (package | |
1371 | (name "perl-xml-filter-buffertext") | |
1372 | (version "1.01") | |
1373 | (source | |
1374 | (origin | |
1375 | (method url-fetch) | |
1376 | (uri (string-append "mirror://cpan/authors/id/R/RB/RBERJON/" | |
1377 | "XML-Filter-BufferText-" version ".tar.gz")) | |
1378 | (sha256 | |
1379 | (base32 | |
1380 | "0p5785c1dsk6kdp505vapb5h54k8krrz8699hpgm9igf7dni5llg")))) | |
1381 | (build-system perl-build-system) | |
1382 | (propagated-inputs | |
1383 | `(("perl-xml-sax-base" ,perl-xml-sax-base))) | |
9aba9b12 | 1384 | (home-page "https://metacpan.org/release/XML-Filter-BufferText") |
b7c59195 P |
1385 | (synopsis "Filter to put all characters() in one event") |
1386 | (description "This is a very simple filter. One common cause of | |
1387 | grief (and programmer error) is that XML parsers aren't required to provide | |
1388 | character events in one chunk. They can, but are not forced to, and most | |
1389 | don't. This filter does the trivial but oft-repeated task of putting all | |
1390 | characters into a single event.") | |
1391 | (license license:perl-license))) | |
33b592ee P |
1392 | |
1393 | (define-public perl-xml-sax-writer | |
1394 | (package | |
1395 | (name "perl-xml-sax-writer") | |
1396 | (version "0.57") | |
1397 | (source (origin | |
1398 | (method url-fetch) | |
1399 | (uri (string-append | |
1400 | "mirror://cpan/authors/id/P/PE/PERIGRIN/" | |
1401 | "XML-SAX-Writer-" version ".tar.gz")) | |
1402 | (sha256 | |
1403 | (base32 | |
1404 | "1w1cd1ybxdvhmnxdlkywi3x5ka3g4md42kyynksjc09vyizd0q9x")))) | |
1405 | (build-system perl-build-system) | |
1406 | (propagated-inputs | |
1407 | `(("perl-libxml" ,perl-libxml) | |
1408 | ("perl-xml-filter-buffertext" ,perl-xml-filter-buffertext) | |
c695fb76 | 1409 | ("perl-xml-namespacesupport" ,perl-xml-namespacesupport) |
33b592ee | 1410 | ("perl-xml-sax-base" ,perl-xml-sax-base))) |
9aba9b12 | 1411 | (home-page "https://metacpan.org/release/XML-SAX-Writer") |
33b592ee P |
1412 | (synopsis "SAX2 XML Writer") |
1413 | (description | |
1414 | "This is an XML writer that understands SAX2. It is based on | |
1415 | @code{XML::Handler::YAWriter}.") | |
1416 | (license license:perl-license))) | |
9e88b210 P |
1417 | |
1418 | (define-public perl-xml-handler-yawriter | |
1419 | (package | |
1420 | (name "perl-xml-handler-yawriter") | |
1421 | (version "0.23") | |
1422 | (source | |
1423 | (origin | |
1424 | (method url-fetch) | |
1425 | (uri (string-append "mirror://cpan/authors/id/K/KR/KRAEHE/" | |
1426 | "XML-Handler-YAWriter-" version ".tar.gz")) | |
1427 | (sha256 | |
1428 | (base32 | |
1429 | "11d45a1sz862va9rry3p2m77pwvq3kpsvgwhc5ramh9mbszbnk77")))) | |
1430 | (build-system perl-build-system) | |
1431 | (propagated-inputs | |
1432 | `(("perl-libxml" ,perl-libxml))) | |
9aba9b12 | 1433 | (home-page "https://metacpan.org/release/XML-Handler-YAWriter") |
9e88b210 P |
1434 | (synopsis "Yet another Perl SAX XML Writer") |
1435 | (description "YAWriter implements Yet Another @code{XML::Handler::Writer}. | |
1436 | It provides a flexible escaping technique and pretty printing.") | |
1437 | (license license:perl-license))) | |
85f225fb P |
1438 | |
1439 | (define-public perl-xml-twig | |
1440 | (package | |
1441 | (name "perl-xml-twig") | |
1442 | (version "3.52") | |
1443 | (source (origin | |
1444 | (method url-fetch) | |
1445 | (uri (string-append "mirror://cpan/authors/id/M/MI/MIROD/" | |
1446 | "XML-Twig-" version ".tar.gz")) | |
1447 | (sha256 | |
1448 | (base32 | |
1449 | "1bc0hrz4jp6199hi29sdxmb9gyy45whla9hd19yqfasgq8k5ixzy")))) | |
1450 | (build-system perl-build-system) | |
1451 | (inputs | |
1452 | `(("expat" ,expat))) | |
1453 | (propagated-inputs | |
1454 | `(("perl-html-tidy" ,perl-html-tidy) | |
1455 | ("perl-html-tree" ,perl-html-tree) | |
1456 | ("perl-io-captureoutput" ,perl-io-captureoutput) | |
1457 | ("perl-io-string" ,perl-io-string) | |
1458 | ("perl-io-stringy" ,perl-io-stringy) | |
1459 | ("perl-libxml" ,perl-libxml) | |
1460 | ("perl-xml-filter-buffertext" ,perl-xml-filter-buffertext) | |
1461 | ("perl-xml-handler-yawriter" ,perl-xml-handler-yawriter) | |
1462 | ("perl-xml-parser" ,perl-xml-parser) | |
1463 | ("perl-xml-sax-writer" ,perl-xml-sax-writer) | |
1464 | ("perl-xml-simple" ,perl-xml-simple) | |
1465 | ("perl-xml-xpathengine" ,perl-xml-xpathengine) | |
c695fb76 | 1466 | ("perl-test-pod" ,perl-test-pod) |
85f225fb | 1467 | ("perl-tree-xpathengine" ,perl-tree-xpathengine))) |
9aba9b12 | 1468 | (home-page "https://metacpan.org/release/XML-Twig") |
85f225fb P |
1469 | (synopsis "Perl module for processing huge XML documents in tree mode") |
1470 | (description "@code{XML::Twig} is an XML transformation module. Its | |
1471 | strong points: can be used to process huge documents while still being in tree | |
1472 | mode; not bound by DOM or SAX, so it is very perlish and offers a very | |
1473 | comprehensive set of methods; simple to use; DWIMs as much as possible. | |
1474 | ||
1475 | What it doesn't offer: full SAX support (it can export SAX, but only reads | |
1476 | XML), full XPath support (unless you use @code{XML::Twig::XPath}), nor DOM | |
1477 | support.") | |
1478 | (license license:perl-license))) | |
1a17ca26 JL |
1479 | |
1480 | ;; TODO: Debian builds several jars out of this: jaxp-1.4.jar, | |
1481 | ;; xml-apis.jar and xml-apis-1.4.01.jar. | |
1482 | (define-public java-jaxp | |
1483 | (package | |
1484 | (name "java-jaxp") | |
1485 | (version "1.4.01") | |
1486 | (source | |
1487 | (origin | |
1488 | (method url-fetch) | |
1489 | (uri (string-append "mirror://apache/xerces/xml-commons/source/" | |
1490 | "xml-commons-external-" version "-src.tar.gz")) | |
1491 | (sha256 | |
1492 | (base32 "0rhq32a7dl9yik7zx9h0naz2iz068qgcdiayak91wp4wr26xhjyk")))) | |
1493 | (build-system ant-build-system) | |
1494 | (arguments | |
1495 | `(#:jar-name "jaxp.jar" | |
1496 | #:jdk ,icedtea-8 | |
1497 | #:source-dir ".." | |
1498 | #:tests? #f)); no tests | |
1499 | (home-page "http://xerces.apache.org/xml-commons/") | |
1500 | (synopsis "Java XML parser and transformer APIs (DOM, SAX, JAXP, TrAX)") | |
1501 | (description "Jaxp from the Apache XML Commons project is used by | |
1502 | the Xerces-J XML parser and Xalan-J XSLT processor and specifies these APIs: | |
1503 | ||
1504 | @itemize | |
1505 | @item Document Object Model (DOM) | |
1506 | @item Simple API for XML (SAX) | |
1507 | @item Java APIs for XML Processing (JAXP) | |
1508 | @item Transformation API for XML (TrAX) | |
1509 | @item Document Object Model (DOM) Load and Save | |
1510 | @item JSR 206 Java API for XML Processing | |
1511 | @end itemize") | |
1512 | (license (list license:asl2.0 | |
1513 | license:w3c ;; Files under org.w3c | |
1514 | license:public-domain)))) ;; org.xml.sax | |
9a86ee78 JL |
1515 | |
1516 | (define-public java-apache-xml-commons-resolver | |
1517 | (package | |
1518 | (name "java-apache-xml-commons-resolver") | |
1519 | (version "1.2") | |
1520 | (source | |
1521 | (origin | |
1522 | (method url-fetch) | |
1523 | (uri (string-append "mirror://apache/xerces/xml-commons/" | |
1524 | "xml-commons-resolver-" version ".tar.gz")) | |
1525 | (sha256 | |
1526 | (base32 "1zhy4anc3fg9f8y348bj88vmab15aavrg6nf419ifb25asyygnsm")) | |
1527 | (modules '((guix build utils))) | |
1528 | (snippet | |
1529 | '(begin | |
1530 | (for-each delete-file (find-files "." ".*\\.(jar|zip)")) | |
1531 | #t)))) | |
1532 | (build-system ant-build-system) | |
1533 | (arguments | |
1534 | `(#:jar-name (string-append "xml-resolver.jar") | |
1535 | #:tests? #f)); no tests | |
1536 | (inputs | |
1537 | `(("java-junit" ,java-junit))) | |
1538 | (home-page "http://xerces.apache.org/xml-commons/") | |
1539 | (synopsis "Catalog-based entity and URI resolution") | |
1540 | (description "The resolver class implements the full semantics of OASIS Technical | |
1541 | Resolution 9401:1997 (Amendment 2 to TR 9401) catalogs and the 06 Aug | |
1542 | 2001 Committee Specification of OASIS XML Catalogs. | |
1543 | ||
1544 | It also includes a framework of classes designed to read catalog files | |
1545 | in a number of formats: | |
1546 | ||
1547 | @itemize | |
1548 | @item The plain-text flavor described by TR9401. | |
1549 | @item The XCatalog XML format defined by John Cowan | |
1550 | @item The XML Catalog format defined by the OASIS Entity Resolution | |
1551 | Technical Committee. | |
1552 | @end itemize") | |
1553 | (license license:asl2.0))) | |
7eae94d8 JL |
1554 | |
1555 | ;; Jaxen requires java-dom4j and java-xom that in turn require jaxen. | |
1556 | ;; This package is a bootstrap version without dependencies on dom4j and xom. | |
1557 | (define java-jaxen-bootstrap | |
1558 | (package | |
1559 | (name "java-jaxen-bootstrap") | |
1560 | (version "1.1.6") | |
1561 | (source (origin | |
1562 | (method url-fetch) | |
1563 | ;; No release on github | |
1564 | (uri (string-append "https://repo1.maven.org/maven2/jaxen/jaxen/" | |
1565 | version "/jaxen-" version "-sources.jar")) | |
1566 | (sha256 | |
1567 | (base32 | |
1568 | "18pa8mks3gfhazmkyil8wsp6j1g1x7rggqxfv4k2mnixkrj5x1kx")))) | |
1569 | (build-system ant-build-system) | |
1570 | (arguments | |
1571 | `(#:jar-name "jaxen.jar" | |
1572 | #:source-dir "src" | |
1573 | #:tests? #f; no tests | |
1574 | #:phases | |
1575 | (modify-phases %standard-phases | |
1576 | (add-before 'build 'remove-dom4j | |
1577 | (lambda _ | |
1578 | (delete-file-recursively "src/org/jaxen/dom4j") | |
1579 | (delete-file-recursively "src/org/jaxen/xom") | |
1580 | #t))))) | |
1581 | (inputs | |
1582 | `(("java-jdom" ,java-jdom))) | |
1583 | (home-page "https://github.com/jaxen-xpath/jaxen") | |
1584 | (synopsis "XPath library") | |
1585 | (description "Jaxen is an XPath library written in Java. It is adaptable | |
1586 | to many different object models, including DOM, XOM, dom4j, and JDOM. It is | |
1587 | also possible to write adapters that treat non-XML trees such as compiled | |
1588 | Java byte code or Java beans as XML, thus enabling you to query these trees | |
1589 | with XPath too.") | |
1590 | (license license:bsd-3))) | |
5552080d | 1591 | |
be0524f4 JL |
1592 | (define-public java-jaxen |
1593 | (package | |
1594 | (inherit java-jaxen-bootstrap) | |
1595 | (name "java-jaxen") | |
1596 | (inputs | |
1597 | `(("java-jdom" ,java-jdom) | |
1598 | ("java-xom" ,java-xom) | |
1599 | ("java-dom4j" ,java-dom4j))))) | |
1600 | ||
5552080d JL |
1601 | (define-public java-xom |
1602 | (package | |
1603 | (name "java-xom") | |
1604 | (version "127") | |
1605 | (source (origin | |
eed5e162 TGR |
1606 | (method git-fetch) |
1607 | (uri (git-reference | |
1608 | (url "https://github.com/elharo/xom.git") | |
1609 | (commit (string-append "XOM_" version)))) | |
1610 | (file-name (git-file-name name version)) | |
5552080d JL |
1611 | (sha256 |
1612 | (base32 | |
eed5e162 | 1613 | "1jh6y03g5zzdhsb5jm6ms1xnamr460qmn96y3w6aw0ikfwqlg0bq")) |
5552080d JL |
1614 | (modules '((guix build utils))) |
1615 | (snippet | |
1616 | '(begin | |
1617 | (for-each delete-file | |
1618 | (find-files "." "\\.jar$")) | |
1619 | #t)))) | |
1620 | (build-system ant-build-system) | |
1621 | (arguments | |
1622 | `(#:jar-name "xom.jar" | |
1623 | #:jdk ,icedtea-8 | |
eed5e162 | 1624 | #:tests? #f ; no tests |
5552080d JL |
1625 | #:phases |
1626 | (modify-phases %standard-phases | |
eed5e162 TGR |
1627 | (add-after 'unpack 'make-git-checkout-writable |
1628 | (lambda _ | |
1629 | (for-each make-file-writable (find-files ".")) | |
1630 | #t)) | |
5552080d JL |
1631 | (add-before 'configure 'fix-tagsoup-dep |
1632 | (lambda _ | |
1633 | ;; FIXME: Where is tagsoup source? | |
1634 | (delete-file "src/nu/xom/tools/XHTMLJavaDoc.java") | |
1635 | #t))))) | |
1636 | (inputs | |
1637 | `(("java-jdom" ,java-jdom) | |
1638 | ("java-junit" ,java-junit) | |
1639 | ("java-classpathx-servletapi" ,java-classpathx-servletapi) | |
1640 | ("java-jaxen-bootstrap" ,java-jaxen-bootstrap) | |
1641 | ("java-xerces" ,java-xerces))) | |
1642 | (home-page "https://xom.nu/") | |
1643 | (synopsis "XML Object Model") | |
1644 | (description "XOM is a new XML Object Model for processing XML with Java | |
1645 | that strives for correctness and simplicity.") | |
1646 | ;; 2.1 only | |
1647 | (license license:lgpl2.1))) | |
96f31935 JL |
1648 | |
1649 | (define-public java-xsdlib | |
1650 | (package | |
1651 | (name "java-xsdlib") | |
1652 | (version "2013.2") | |
1653 | (source (origin | |
1654 | (method url-fetch) | |
1655 | (uri (string-append "http://central.maven.org/maven2/com/sun/msv/" | |
1656 | "datatype/xsd/xsdlib/" version "/xsdlib-" | |
1657 | version "-sources.jar")) | |
1658 | (sha256 | |
1659 | (base32 | |
1660 | "185i48p1xp09wbq03i9zgfl701qa262rq46yf4cajzmk3336kqim")))) | |
1661 | (build-system ant-build-system) | |
1662 | (arguments | |
1663 | `(#:tests? #f; no tests | |
1664 | #:jar-name "xsdlib.jar" | |
1665 | #:jdk ,icedtea-8)) | |
1666 | (inputs | |
1667 | `(("java-xerces" ,java-xerces))) | |
1668 | (home-page "http://central.maven.org/maven2/com/sun/msv/datatype/xsd/xsdlib/") | |
1669 | (synopsis "Sun Multi-Schema Validator") | |
1670 | (description "Xsdlib contains an implementation of sun.com.msv, an XML | |
1671 | validator.") | |
1672 | (license license:bsd-2))) | |
82d7d4e1 JL |
1673 | |
1674 | (define-public java-xpp3 | |
1675 | (package | |
1676 | (name "java-xpp3") | |
1677 | (version "1.1.4") | |
1678 | (source (origin | |
1679 | (method url-fetch) | |
1680 | (uri (string-append "http://www.extreme.indiana.edu/dist/" | |
1681 | "java-repository/xpp3/distributions/xpp3-" | |
1682 | version "_src.tgz")) | |
1683 | (sha256 | |
1684 | (base32 | |
1685 | "1b99zrhyij5qwyhilyjdl1ykxvhk902vsvflh6gx4fir8hfvdl5p")) | |
1686 | (modules '((guix build utils))) | |
1687 | (snippet | |
1688 | '(begin ;; Delete bundled jar archives. | |
1689 | (for-each delete-file (find-files "." ".*\\.jar")) | |
1690 | #t)))) | |
1691 | (build-system ant-build-system) | |
1692 | (arguments | |
1693 | `(#:tests? #f; no tests | |
1694 | #:build-target "jar" | |
1695 | #:phases | |
1696 | (modify-phases %standard-phases | |
1697 | (replace 'install (install-jars "build"))))) | |
1698 | (home-page "http://www.extreme.indiana.edu/xgws/xsoap/xpp/") | |
1699 | (synopsis "Streaming pull XML parser") | |
1700 | (description "Xml Pull Parser (in short XPP) is a streaming pull XML | |
1701 | parser and should be used when there is a need to process quickly and | |
1702 | efficiently all input elements (for example in SOAP processors). This | |
1703 | package is a stable XmlPull parsing engine that is based on ideas from XPP | |
1704 | and in particular XPP2 but completely revised and rewritten to take the best | |
1705 | advantage of JIT JVMs.") | |
1706 | (license (license:non-copyleft "file://LICENSE.txt")))) | |
9421f682 JL |
1707 | |
1708 | (define-public java-xmlpull2 | |
1709 | (package | |
1710 | (name "java-xmlpull2") | |
1711 | (version "2.1.10") | |
1712 | (source (origin | |
1713 | (method url-fetch) | |
1714 | (uri (string-append "http://www.extreme.indiana.edu/xgws/xsoap/" | |
1715 | "PullParser/PullParser" version ".tgz")) | |
1716 | (sha256 | |
1717 | (base32 | |
1718 | "1kw9nhyqb7bzhn2zjbwlpi5vp5rzj89amzi3hadw2acyh2dmd0md")) | |
1719 | (modules '((guix build utils))) | |
1720 | (snippet | |
1721 | '(begin ;; Delete bundled jar archives. | |
1722 | (for-each delete-file (find-files "." ".*\\.jar")) | |
1723 | #t)))) | |
1724 | (build-system ant-build-system) | |
1725 | (arguments | |
1726 | `(#:tests? #f; no tests | |
1727 | #:build-target "impl" | |
1728 | #:phases | |
1729 | (modify-phases %standard-phases | |
1730 | (replace 'install (install-jars "build/lib"))))) | |
1731 | (home-page "http://www.extreme.indiana.edu/xgws/xsoap/xpp/") | |
1732 | (synopsis "Streaming pull XML parser") | |
1733 | (description "Xml Pull Parser (in short XPP) is a streaming pull XML | |
1734 | parser and should be used when there is a need to process quickly and | |
1735 | efficiently all input elements (for example in SOAP processors). This | |
1736 | package is in maintenance mode.") | |
1737 | (license (license:non-copyleft "file:///LICENSE.txt")))) | |
605c23df JL |
1738 | |
1739 | (define-public java-dom4j | |
1740 | (package | |
1741 | (name "java-dom4j") | |
1742 | (version "2.1.0") | |
1743 | (source (origin | |
9d670526 TGR |
1744 | (method git-fetch) |
1745 | (uri (git-reference | |
1746 | (url "https://github.com/dom4j/dom4j.git") | |
1747 | (commit (string-append "version-" version)))) | |
1748 | (file-name (git-file-name name version)) | |
605c23df JL |
1749 | (sha256 |
1750 | (base32 | |
9d670526 | 1751 | "1827jljs8mps489fm7xw63cakdqwc5grilrr5n9spr2rlk76jpx3")) |
605c23df JL |
1752 | (modules '((guix build utils))) |
1753 | (snippet | |
1754 | '(begin ;; Delete bundled jar archives. | |
1755 | (for-each delete-file (find-files "." ".*\\.jar")) | |
1756 | #t)))) | |
1757 | (build-system ant-build-system) | |
1758 | (arguments | |
1759 | `(#:jar-name "dom4j.jar" | |
1760 | #:jdk ,icedtea-8 | |
1761 | #:source-dir "src/main/java" | |
1762 | ;; FIXME: Requires xalan, but xalan depends on java-cup which has a | |
1763 | ;; dependency on itself through jflex. | |
1764 | #:tests? #f | |
1765 | #:phases | |
1766 | (modify-phases %standard-phases | |
1767 | (add-before 'build 'copy-jaxen-sources | |
1768 | ;; java-jaxen-bootstrap is not enough. These files have a circular | |
1769 | ;; dependency and there is no subset of dom4j that would allow | |
1770 | ;; breaking the circle. | |
1771 | (lambda* (#:key inputs #:allow-other-keys) | |
1772 | (mkdir-p "jaxen-sources") | |
1773 | (with-directory-excursion "jaxen-sources" | |
1774 | (system* "jar" "xf" (assoc-ref inputs "java-jaxen-sources"))) | |
1775 | (mkdir-p "src/main/java/org/jaxen/dom4j") | |
1776 | (copy-file "jaxen-sources/org/jaxen/dom4j/DocumentNavigator.java" | |
1777 | "src/main/java/org/jaxen/dom4j/DocumentNavigator.java") | |
1778 | (copy-file "jaxen-sources/org/jaxen/dom4j/Dom4jXPath.java" | |
1779 | "src/main/java/org/jaxen/dom4j/Dom4jXPath.java") | |
1780 | #t)) | |
1781 | (add-before 'build 'fix-old-xpp2 | |
1782 | (lambda _ | |
1783 | ;; This package normally depends on xpp2 2.0, but version 2.1.10 | |
1784 | ;; is the only version whose source code is published. | |
1785 | (substitute* "src/main/java/org/dom4j/xpp/ProxyXmlStartTag.java" | |
1786 | (("public void resetStartTag") | |
1787 | "public boolean removeAttributeByRawName(String name) {\n | |
1788 | return false;\n | |
1789 | }\n | |
1790 | public boolean removeAttributeByName(String name, String name2) {\n | |
1791 | return false;\n | |
1792 | }\n\npublic void resetStartTag") | |
1793 | (("Atttribute") "Attribute")) | |
1794 | #t))))) | |
1795 | (inputs | |
1796 | `(("java-jaxen-bootstrap" ,java-jaxen-bootstrap) | |
1797 | ("java-jaxen-sources" ,(package-source java-jaxen-bootstrap)) | |
1798 | ("java-xmlpull2" ,java-xmlpull2) | |
1799 | ("java-xpp3" ,java-xpp3) | |
1800 | ("java-xsdlib" ,java-xsdlib))) | |
1801 | (native-inputs | |
1802 | `(("java-testng" ,java-testng) | |
1803 | ("java-xerces" ,java-xerces))) | |
1804 | (home-page "https://dom4j.github.io/") | |
1805 | (synopsis "Flexible XML framework for Java") | |
1806 | (description "Dom4j is a flexible XML framework for Java. DOM4J works | |
1807 | with DOM, SAX, XPath, and XSLT. It can parse large XML documents with very | |
1808 | low memory footprint.") | |
1809 | ;; some BSD-like 5-clause license | |
1810 | (license (license:non-copyleft "file://LICENSE")))) | |
3058d8ec JL |
1811 | |
1812 | (define-public java-kxml2 | |
1813 | (package | |
1814 | (name "java-kxml2") | |
1815 | (version "2.4.2") | |
1816 | (source (origin | |
00fc9389 TGR |
1817 | (method git-fetch) |
1818 | (uri (git-reference | |
1819 | (url "https://github.com/stefanhaustein/kxml2.git") | |
1820 | (commit (string-append "v" version)))) | |
1821 | (file-name (git-file-name name version)) | |
3058d8ec JL |
1822 | (sha256 |
1823 | (base32 | |
00fc9389 | 1824 | "0g6d8c9r9sh3x04sf4wdpgwvhkqvk11k3kq9skx91i60h4vn01hg")))) |
3058d8ec JL |
1825 | (build-system ant-build-system) |
1826 | (arguments | |
1827 | `(#:jar-name "kxml2.jar" | |
1828 | #:source-dir "src/main/java" | |
1829 | #:test-include (list "TestWb.java") | |
1830 | ;; Test failure: it was expected to get an XML entity but got the | |
1831 | ;; equivalent Unicode character instead. | |
1832 | #:tests? #f | |
1833 | #:phases | |
1834 | (modify-phases %standard-phases | |
00fc9389 TGR |
1835 | (add-after 'unpack 'make-git-checkout-writable |
1836 | (lambda _ | |
1837 | (for-each make-file-writable (find-files ".")) | |
1838 | #t)) | |
3058d8ec JL |
1839 | (add-before 'build 'copy-resources |
1840 | (lambda _ | |
aa6f87a2 MW |
1841 | (copy-recursively "src/main/resources" "build/classes") |
1842 | #t))))) | |
3058d8ec JL |
1843 | (inputs |
1844 | `(("java-xpp3" ,java-xpp3))) | |
1845 | (native-inputs | |
1846 | `(("java-junit" ,java-junit))) | |
1847 | (home-page "http://kxml.org") | |
1848 | (synopsis "XML pull parser") | |
1849 | (description "kXML is a small XML pull parser, specially designed for | |
1850 | constrained environments such as Applets, Personal Java or devices compliant | |
1851 | with the Mobile Information Device Profile (MIDP).") | |
1852 | (license license:expat))) | |
4c7759f0 JL |
1853 | |
1854 | (define-public java-stax | |
1855 | (package | |
1856 | (name "java-stax") | |
1857 | (version "1.2.0") | |
1858 | (source (origin | |
1859 | (method url-fetch) | |
1860 | (uri (string-append "https://repo1.maven.org/maven2/stax/stax/" | |
1861 | version "/stax-" version "-sources.jar")) | |
1862 | (sha256 | |
1863 | (base32 | |
1864 | "04ba4qvbrps45j8bldbakxq31k7gjlsay9pppa9yn13fr00q586z")))) | |
1865 | (build-system ant-build-system) | |
1866 | (arguments | |
1867 | `(#:jar-name "stax.jar" | |
1868 | #:tests? #f; no tests | |
1869 | #:phases | |
1870 | (modify-phases %standard-phases | |
1871 | (add-before 'configure 'fix-utf8 | |
1872 | (lambda _ | |
1873 | ;; This file is ISO-8859-1 but java expects UTF-8. | |
1874 | ;; Remove special characters in comments. | |
1875 | (with-fluids ((%default-port-encoding "ISO-8859-1")) | |
1876 | (substitute* "src/com/wutka/dtd/Scanner.java" | |
1877 | (("//.*") "\n"))) | |
1878 | #t))))) | |
1879 | (home-page "https://repo1.maven.org/maven2/stax/stax/") | |
1880 | (synopsis "Streaming API for XML") | |
1881 | (description "This package provides the reference implementation of the | |
1882 | @dfn{Streaming API for XML} (StAX). It is used for streaming XML data to | |
1883 | and from a Java application. It provides a standard pull parser interface.") | |
1884 | (license license:asl2.0))) | |
b8798817 JL |
1885 | |
1886 | (define-public java-jettison | |
1887 | (package | |
1888 | (name "java-jettison") | |
1889 | (version "1.3.7") | |
1890 | (source (origin | |
a4b96726 TGR |
1891 | (method git-fetch) |
1892 | (uri (git-reference | |
1893 | (url "https://github.com/codehaus/jettison.git") | |
1894 | (commit (string-append "jettison-" version)))) | |
1895 | (file-name (git-file-name name version)) | |
b8798817 JL |
1896 | (sha256 |
1897 | (base32 | |
a4b96726 | 1898 | "15sydmi5chdh4126qc7v8bsrp7fp4ldaya8a05iby4pq2324q0qw")))) |
b8798817 JL |
1899 | (build-system ant-build-system) |
1900 | (arguments | |
1901 | `(#:jar-name "jettison.jar" | |
1902 | #:source-dir "src/main/java" | |
1903 | #:test-exclude (list "**/Abstract*.java" | |
1904 | ;; Abstract classes | |
1905 | "**/DOMTest.java" | |
1906 | "**/BadgerFishDOMTest.java" | |
1907 | "**/MappedDOMTest.java"))) | |
1908 | (native-inputs | |
1909 | `(("java-junit" ,java-junit))) | |
1910 | (home-page "https://github.com/codehaus/jettison") | |
1911 | (synopsis "StAX implementation for JSON") | |
1912 | (description "Jettison is a Java library for converting XML to JSON and | |
1913 | vice-versa with the help of the @dfn{Streaming API for XML} (StAX). It | |
1914 | implements @code{XMLStreamWriter} and @code{XMLStreamReader} and supports | |
1915 | @code{Mapped} and @code{BadgerFish} conventions.") | |
1916 | (license license:asl2.0))) | |
a5ec8a5c JL |
1917 | |
1918 | (define-public java-jdom2 | |
1919 | (package | |
1920 | (name "java-jdom") | |
1921 | (version "2.0.6") | |
1922 | (source (origin | |
951bdf5a TGR |
1923 | (method git-fetch) |
1924 | (uri (git-reference | |
1925 | (url "https://github.com/hunterhacker/jdom.git") | |
1926 | (commit (string-append "JDOM-" version)))) | |
1927 | (file-name (git-file-name name version)) | |
a5ec8a5c JL |
1928 | (sha256 |
1929 | (base32 | |
951bdf5a | 1930 | "14vv1kxrsdvwi4cz3rx6r48w5y6fvk9cymil8qhvxwp56xxrgxiq")))) |
a5ec8a5c JL |
1931 | (build-system ant-build-system) |
1932 | (arguments | |
1933 | `(#:build-target "package" | |
951bdf5a | 1934 | #:tests? #f ; tests are run as part of the build process |
a5ec8a5c JL |
1935 | #:phases |
1936 | (modify-phases %standard-phases | |
1937 | (replace 'install | |
1938 | (install-jars "build"))))) | |
1939 | (home-page "http://jdom.org/") | |
1940 | (synopsis "Access, manipulate, and output XML data") | |
1941 | (description "Jdom is a Java-based solution for accessing, manipulating, and | |
1942 | outputting XML data from Java code.") | |
1943 | (license license:bsd-4))) | |
5ee7b02f JL |
1944 | |
1945 | (define-public java-xstream | |
1946 | (package | |
1947 | (name "java-xstream") | |
1948 | (version "1.4.10") | |
b05bc3c4 TGR |
1949 | (source |
1950 | (origin | |
1951 | (method git-fetch) | |
1952 | (uri (git-reference | |
1953 | (url "https://github.com/x-stream/xstream.git") | |
1954 | (commit (string-append | |
1955 | "XSTREAM_" | |
1956 | (string-map (lambda (x) (if (eq? x #\.) #\_ x)) | |
1957 | version))))) | |
1958 | (file-name (git-file-name name version)) | |
1959 | (sha256 | |
1960 | (base32 "12m2bw8bapdc1w0pni9wl5hh2y8jfdgcvxd464jl9917dsp3ai2n")))) | |
5ee7b02f JL |
1961 | (build-system ant-build-system) |
1962 | (arguments | |
1963 | `(#:jar-name "xstream.jar" | |
b05bc3c4 | 1964 | ;; FIXME: Tests are not in a java subdirectory as assumed by ant-build-system. |
5ee7b02f JL |
1965 | #:tests? #f |
1966 | #:jdk ,icedtea-8 | |
1967 | #:source-dir "xstream/src/java")) | |
1968 | (inputs | |
1969 | `(("java-jdom" ,java-jdom) | |
1970 | ("java-jdom2" ,java-jdom2) | |
1971 | ("java-cglib" ,java-cglib) | |
1972 | ("java-joda-time" ,java-joda-time) | |
1973 | ("java-jettison" ,java-jettison) | |
1974 | ("java-xom" ,java-xom) | |
1975 | ("java-xpp3" ,java-xpp3) | |
1976 | ("java-dom4j" ,java-dom4j) | |
1977 | ("java-stax2-api" ,java-stax2-api) | |
1978 | ("java-woodstox-core" ,java-woodstox-core) | |
1979 | ("java-kxml2" ,java-kxml2) | |
1980 | ("java-stax" ,java-stax))) | |
1981 | (home-page "https://x-stream.github.io") | |
1982 | (synopsis "XML serialization library") | |
1983 | (description "XStream is a simple library to serialize Java objects to XML | |
1984 | and back again.") | |
1985 | (license license:bsd-3))) | |
5c1cf7f3 | 1986 | |
2cce23bf PN |
1987 | (define-public xmlrpc-c |
1988 | (package | |
1989 | (name "xmlrpc-c") | |
1990 | (version "1.43.08") | |
1991 | (source (origin | |
1992 | (method url-fetch) | |
1993 | (uri (string-append "mirror://sourceforge/xmlrpc-c/Xmlrpc-c%20Super%20Stable/" | |
1994 | version "/xmlrpc-c-" version ".tgz")) | |
1995 | (sha256 | |
1996 | (base32 | |
1997 | "18zwbj6i2hpcn5riiyp8i6rml0sfv60dd7phw1x8g4r4lj2bbxf9")))) | |
1998 | (build-system gnu-build-system) | |
1999 | (inputs | |
2000 | `(("curl" ,curl))) | |
2001 | (native-inputs | |
2002 | `(;; For tools, if ever needed. | |
2003 | ("perl" ,perl))) | |
2004 | (arguments | |
2005 | `(#:make-flags ; Add $libdir to the RUNPATH of all the executables. | |
2006 | (list (string-append "LDFLAGS_PERSONAL=-Wl,-rpath=" %output "/lib")) | |
2007 | #:phases | |
2008 | (modify-phases %standard-phases | |
2009 | (add-after 'unpack 'fix-/bin/sh-in-tests | |
2010 | (lambda _ | |
2011 | (substitute* "GNUmakefile" | |
2012 | (("#! /bin/sh") (which "sh"))) | |
2013 | #t))))) | |
2014 | (home-page "http://xmlrpc-c.sourceforge.net/") | |
2015 | (synopsis "Lightweight RPC library based on XML and HTTP") | |
2016 | (description | |
2017 | "XML-RPC is a quick-and-easy way to make procedure calls over the Internet. | |
2018 | It converts the procedure call into an XML document, sends it to a remote | |
2019 | server using HTTP, and gets back the response as XML. This library provides a | |
2020 | modular implementation of XML-RPC for C and C++.") | |
2021 | (license (list license:psfl license:expat)))) | |
79a0eabd OP |
2022 | |
2023 | (define-public python-xmltodict | |
2024 | (package | |
2025 | (name "python-xmltodict") | |
2026 | (version "0.11.0") | |
2027 | (source | |
2028 | (origin | |
2029 | (method url-fetch) | |
2030 | (uri (pypi-uri "xmltodict" version)) | |
2031 | (sha256 | |
2032 | (base32 | |
2033 | "1pxh4yjhvmxi1h6f92skv41g4kbsws3ams57150kzn18m907v3cg")))) | |
2034 | (build-system python-build-system) | |
2035 | (native-inputs | |
2036 | `(("python-coverage" ,python-coverage) | |
2037 | ("python-nose" ,python-nose))) | |
2038 | (home-page "https://github.com/martinblech/xmltodict") | |
2039 | (synopsis "Work with XML like you are working with JSON") | |
2040 | (description "This package provides a Python library to convert XML to | |
2041 | @code{OrderedDict}.") | |
2042 | (license license:expat))) |