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