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