gnu: intltool: Update to 0.51.0.
[jackhill/guix/guix.git] / gnu / packages / glib.scm
CommitLineData
3889a82e 1;;; GNU Guix --- Functional package management for GNU
88c6b580 2;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
7873318d 3;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
d6b8cb5c 4;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
bb146db1 5;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
3889a82e
NK
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
943f33a3 22(define-module (gnu packages glib)
b5b73a82 23 #:use-module ((guix licenses) #:prefix license:)
3889a82e
NK
24 #:use-module (guix packages)
25 #:use-module (guix download)
a1de06b6 26 #:use-module (guix utils)
3889a82e 27 #:use-module (guix build-system gnu)
943f33a3
LC
28 #:use-module (gnu packages)
29 #:use-module (gnu packages base)
9ceb630c 30 #:use-module (gnu packages bison)
943f33a3 31 #:use-module (gnu packages compression)
9ceb630c 32 #:use-module (gnu packages flex)
1dba6407 33 #:use-module (gnu packages gettext)
9ceb630c 34 #:use-module (gnu packages gtk)
943f33a3 35 #:use-module (gnu packages libffi)
d6b8cb5c 36 #:use-module (gnu packages perl)
943f33a3
LC
37 #:use-module (gnu packages pkg-config)
38 #:use-module (gnu packages python)
7bc5cc2b 39 #:use-module (gnu packages xml)
5aa601a3 40 #:use-module (gnu packages bash)
80370441
LC
41 #:use-module (gnu packages file)
42 #:use-module (gnu packages xorg)
a5a7d374 43 #:use-module (gnu packages m4)
943f33a3 44
80370441
LC
45 ;; Export variables up-front to allow circular dependency with the 'xorg'
46 ;; module.
47 #:export (dbus
48 glib
6ac6a6b9 49 gobject-introspection
80370441
LC
50 dbus-glib
51 intltool
a5a7d374
LC
52 itstool
53 libsigc++
7873318d
AE
54 glibmm
55 telepathy-glib))
80370441
LC
56
57(define dbus
943f33a3
LC
58 (package
59 (name "dbus")
bbe04ae1 60 (version "1.10.0")
943f33a3 61 (source (origin
25087f60
SB
62 (method url-fetch)
63 (uri (string-append
64 "http://dbus.freedesktop.org/releases/dbus/dbus-"
65 version ".tar.gz"))
66 (sha256
67 (base32
68 "0jwj7wlrhq5y0fwfh8k2d9rgdpfax06lj8698g6iqbwrzd2rgyqx"))))
943f33a3 69 (build-system gnu-build-system)
8eaa8a3b 70 (arguments
25087f60
SB
71 '(#:configure-flags
72 (list
73 ;; Install the system bus socket under /var.
74 "--localstatedir=/var"
8eaa8a3b 75
25087f60
SB
76 ;; Install the session bus socket under /tmp.
77 "--with-session-socket-dir=/tmp"
8eaa8a3b 78
25087f60
SB
79 ;; Use /etc/dbus-1 for system-wide config.
80 ;; Look for configuration file under
81 ;; /etc/dbus-1. This is notably required by
82 ;; 'dbus-daemon-launch-helper', which looks for
83 ;; the 'system.conf' file in that place,
84 ;; regardless of what '--config-file' was
85 ;; passed to 'dbus-daemon' on the command line;
86 ;; see <https://bugs.freedesktop.org/show_bug.cgi?id=92458>.
87 "--sysconfdir=/etc")
88 #:phases
89 (modify-phases %standard-phases
90 (replace 'install
91 (lambda _
92 ;; Don't try to create /var and /etc.
93 (system* "make"
94 "localstatedir=/tmp/dummy"
95 "sysconfdir=/tmp/dummy"
96 "install"))))))
708be46b
LC
97 (native-inputs
98 `(("pkg-config" ,pkg-config)))
943f33a3 99 (inputs
d6b8cb5c 100 `(("expat" ,expat)
80370441
LC
101
102 ;; Add a dependency on libx11 so that 'dbus-launch' has support for
103 ;; '--autolaunch'.
104 ("libx11" ,libx11)))
105
943f33a3
LC
106 (home-page "http://dbus.freedesktop.org/")
107 (synopsis "Message bus for inter-process communication (IPC)")
108 (description
109 "D-Bus is a message bus system, a simple way for applications to
35b9e423 110talk to one another. In addition to interprocess communication, D-Bus
943f33a3
LC
111helps coordinate process lifecycle; it makes it simple and reliable to
112code a \"single instance\" application or daemon, and to launch
113applications and daemons on demand when their services are needed.
114
115D-Bus supplies both a system daemon (for events such as \"new hardware
116device added\" or \"printer queue changed\") and a
117per-user-login-session daemon (for general IPC needs among user
35b9e423 118applications). Also, the message bus is built on top of a general
943f33a3
LC
119one-to-one message passing framework, which can be used by any two apps
120to communicate directly (without going through the message bus
35b9e423 121daemon). Currently the communicating applications are on one computer,
943f33a3
LC
122or through unencrypted TCP/IP suitable for use behind a firewall with
123shared NFS home directories.")
d6b8cb5c 124 (license license:gpl2+))) ; or Academic Free License 2.1
3889a82e 125
80370441 126(define glib
3889a82e
NK
127 (package
128 (name "glib")
3c19c6a4 129 (version "2.46.1")
3889a82e
NK
130 (source (origin
131 (method url-fetch)
785db4d8 132 (uri (string-append "mirror://gnome/sources/"
d274f499 133 name "/" (string-take version 4) "/"
943f33a3 134 name "-" version ".tar.xz"))
3889a82e 135 (sha256
f47f6761 136 (base32
3c19c6a4 137 "1yzxr1ip3l0m9ydk5nq32piq70c9f17p5f0jyvlsghzbaawh67ss"))
01eafd38
LC
138 (patches (list (search-patch "glib-tests-homedir.patch")
139 (search-patch "glib-tests-desktop.patch")
ca9ea1a8 140 (search-patch "glib-tests-prlimit.patch")
36d2a3af
LC
141 (search-patch "glib-tests-timer.patch")
142 (search-patch "glib-tests-gapplication.patch")))))
3889a82e 143 (build-system gnu-build-system)
426adbe8
LC
144 (outputs '("out" ; everything
145 "bin" ; glib-mkenums, gtester, etc.; depends on Python
146 "doc")) ; 20 MiB of GTK-Doc reference
3889a82e
NK
147 (inputs
148 `(("coreutils" ,coreutils)
3889a82e 149 ("libffi" ,libffi)
c4c4cc05
JD
150 ("zlib" ,zlib)
151 ("tzdata" ,tzdata))) ; for tests/gdatetime.c
152 (native-inputs
59bad04f 153 `(("gettext" ,gnu-gettext)
c4c4cc05 154 ("dbus" ,dbus) ; for GDBus tests
3889a82e 155 ("pkg-config" ,pkg-config)
ee3e314b 156 ("python" ,python-wrapper)
943f33a3 157 ("perl" ,perl) ; needed by GIO tests
c4c4cc05 158 ("bash" ,bash)))
943f33a3 159 (arguments
01eafd38 160 '(#:phases (alist-cons-before
943f33a3
LC
161 'build 'pre-build
162 (lambda* (#:key inputs outputs #:allow-other-keys)
7bc5cc2b
LC
163 ;; For tests/gdatetime.c.
164 (setenv "TZDIR"
165 (string-append (assoc-ref inputs "tzdata")
166 "/share/zoneinfo"))
167
168 ;; Some tests want write access there.
169 (setenv "XDG_CACHE_HOME" (getcwd))
170
943f33a3
LC
171 (substitute* '("glib/gspawn.c"
172 "glib/tests/utils.c"
173 "tests/spawn-test.c")
7bc5cc2b 174 (("/bin/sh")
ee28fc64
MW
175 (string-append (assoc-ref inputs "bash") "/bin/sh")))
176
177 ;; Disable a test that requires dbus.
178 (substitute* "gio/tests/gdbus-serialization.c"
179 (("g_test_add_func \\(\"/gdbus/message-serialize/double-array\", test_double_array\\);" all)
180 (string-append "/* " all " */"))))
943f33a3
LC
181 %standard-phases)
182
183 ;; Note: `--docdir' and `--htmldir' are not honored, so work around it.
184 #:configure-flags (list (string-append "--with-html-dir="
185 (assoc-ref %outputs "doc")
b2a80c78 186 "/share/gtk-doc/html"))
00585a55
LC
187
188 ;; In 'gio/tests', 'gdbus-test-codegen-generated.h' is #included in a
189 ;; file that gets compiled possibly before it has been fully generated.
190 #:parallel-tests? #f))
ce2df078
LC
191
192 (native-search-paths
193 ;; This variable is not really "owned" by GLib, but several related
194 ;; packages refer to it: gobject-introspection's tools use it as a search
195 ;; path for .gir files, and it's also a search path for schemas produced
196 ;; by 'glib-compile-schemas'.
197 (list (search-path-specification
198 (variable "XDG_DATA_DIRS")
1b85e57f
SB
199 (files '("share")))
200 ;; To load extra gio modules from glib-networking, etc.
201 (search-path-specification
202 (variable "GIO_EXTRA_MODULES")
203 (files '("lib/gio/modules")))))
ce2df078
LC
204 (search-paths native-search-paths)
205
f50d2669 206 (synopsis "Thread-safe general utility library; basis of GTK+ and GNOME")
3889a82e
NK
207 (description
208 "GLib provides data structure handling for C, portability wrappers,
209and interfaces for such runtime functionality as an event loop, threads,
210dynamic loading, and an object system.")
211 (home-page "http://developer.gnome.org/glib/")
d6b8cb5c 212 (license license:lgpl2.0+))) ; some files are under lgpl2.1+
71eb5c10 213
6ac6a6b9 214(define gobject-introspection
9ceb630c
CR
215 (package
216 (name "gobject-introspection")
ed89d901 217 (version "1.46.0")
9ceb630c
CR
218 (source (origin
219 (method url-fetch)
cc84b08c 220 (uri (string-append "mirror://gnome/sources/"
2474b81d
FB
221 "gobject-introspection/" (version-major+minor version)
222 "/gobject-introspection-" version ".tar.xz"))
9ceb630c 223 (sha256
ed89d901
SB
224 (base32 "0cs27r18fga44ypp8icy62fwx6nh70r1bvhi4lzfn4w85cybsn36"))
225 (modules '((guix build utils)))
226 (snippet
227 '(substitute* "tools/g-ir-tool-template.in"
228 (("#!/usr/bin/env @PYTHON@") "#!@PYTHON@")))
7ca0dbc3 229 (patches (list
2474b81d 230 (search-patch "gobject-introspection-cc.patch")
94987ebe
FB
231 (search-patch
232 "gobject-introspection-girepository.patch")
7ca0dbc3 233 (search-patch
2474b81d 234 "gobject-introspection-absolute-shlib-path.patch")))))
9ceb630c
CR
235 (build-system gnu-build-system)
236 (inputs
237 `(("bison" ,bison)
238 ("cairo" ,cairo)
239 ("flex" ,flex)
240 ("glib" ,glib)
9ceb630c
CR
241 ("pkg-config" ,pkg-config)
242 ("python-2" ,python-2)))
426adbe8
LC
243 (native-inputs
244 `(("glib" ,glib "bin")))
af949e8e
CR
245 (propagated-inputs
246 `(;; In practice, GIR users will need libffi when using
247 ;; gobject-introspection.
248 ("libffi" ,libffi)))
5a4753a6
FB
249 (native-search-paths
250 (list (search-path-specification
251 (variable "GI_TYPELIB_PATH")
af070955 252 (files '("lib/girepository-1.0")))))
5a4753a6 253 (search-paths native-search-paths)
9ceb630c 254 (arguments
2474b81d
FB
255 `(;; The patch 'gobject-introspection-absolute-shlib-path.patch' causes
256 ;; some tests to fail.
cc84b08c 257 #:tests? #f))
9ceb630c
CR
258 (home-page "https://wiki.gnome.org/GObjectIntrospection")
259 (synopsis "Generate interface introspection data for GObject libraries")
260 (description
261 "GObject introspection is a middleware layer between C libraries (using
262GObject) and language bindings. The C library can be scanned at compile time
263and generate a metadata file, in addition to the actual native C library. Then
264at runtime, language bindings can read this metadata and automatically provide
265bindings to call into the C library.")
266 ; Some bits are distributed under the LGPL2+, others under the GPL2+
267 (license license:gpl2+)))
268
80370441 269(define intltool
71eb5c10
LC
270 (package
271 (name "intltool")
fa09ebfa 272 (version "0.51.0")
71eb5c10
LC
273 (source (origin
274 (method url-fetch)
d6b8cb5c
AE
275 (uri (string-append "https://launchpad.net/intltool/trunk/"
276 version "/+download/intltool-"
277 version ".tar.gz"))
71eb5c10
LC
278 (sha256
279 (base32
fa09ebfa 280 "1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7"))))
71eb5c10 281 (build-system gnu-build-system)
93882f0e
EB
282 (inputs
283 `(("file" ,file)))
71eb5c10 284 (propagated-inputs
107b415e
LC
285 `(;; Propagate gettext because users expect it to be there, and so does
286 ;; the `intltool-update' script.
1dba6407 287 ("gettext" ,gnu-gettext)
107b415e 288
e33d9d6f 289 ("perl-xml-parser" ,perl-xml-parser)
107b415e 290 ("perl" ,perl)))
93882f0e
EB
291 (arguments
292 `(#:phases (alist-cons-after
293 'unpack 'patch-file-references
294 (lambda* (#:key inputs #:allow-other-keys)
295 (let ((file (assoc-ref inputs "file")))
296 (substitute* "intltool-update.in"
297 (("`file") (string-append "`" file "/bin/file")))))
298 %standard-phases)))
d6b8cb5c
AE
299 (home-page "https://launchpad.net/intltool/+download")
300 (synopsis "Tools to centralise translations of different file formats")
71eb5c10 301 (description
35b9e423 302 "Intltool is a set of tools to centralise translations of many different
71eb5c10
LC
303file formats using GNU gettext-compatible PO files.
304
305The intltool collection can be used to do these things:
306
307 Extract translatable strings from various source files (.xml.in,
308 glade, .desktop.in, .server.in, .oaf.in).
309
310 Collect the extracted strings together with messages from traditional
311 source files (.c, .h) in po/$(PACKAGE).pot.
312
313 Merge back the translations from .po files into .xml, .desktop and
35b9e423 314 oaf files. This merge step will happen at build resp. installation time.")
d6b8cb5c 315 (license license:gpl2+)))
24b5c463 316
80370441 317(define itstool
20a26ff5
CR
318 (package
319 (name "itstool")
3c87c02e 320 (version "2.0.2")
20a26ff5
CR
321 (source (origin
322 (method url-fetch)
323 (uri (string-append "http://files.itstool.org/itstool/itstool-"
324 version ".tar.bz2"))
325 (sha256
326 (base32
3c87c02e 327 "0fh34wi52i0qikgvlmrcpf1vx6gc1xqdad4539l4d9hikfsrz45z"))))
20a26ff5 328 (build-system gnu-build-system)
4b58d88b 329 (inputs
f922fc42 330 `(("libxml2" ,libxml2)
264d57b6 331 ("python2-libxml2" ,python2-libxml2)
f922fc42 332 ("python-2" ,python-2)))
4b58d88b
SB
333 (arguments
334 '(#:phases
335 (modify-phases %standard-phases
336 (add-after
337 'install 'wrap-program
338 (lambda* (#:key outputs #:allow-other-keys)
339 (let ((prog (string-append (assoc-ref outputs "out")
340 "/bin/itstool")))
341 (wrap-program prog
342 `("PYTHONPATH" = (,(getenv "PYTHONPATH"))))))))))
20a26ff5
CR
343 (home-page "http://www.itstool.org")
344 (synopsis "Tool to translate XML documents with PO files")
345 (description
346 "ITS Tool allows you to translate your XML documents with PO files, using
347rules from the W3C Internationalization Tag Set (ITS) to determine what to
348translate and how to separate it into PO file messages.
349
350PO files are the standard translation format for GNU and other Unix-like
351systems. They present translatable information as discrete messages, allowing
352each message to be translated independently. In contrast to whole-page
353translation, translating with a message-based format like PO means you can
354easily track changes to the source document down to the paragraph. When new
355strings are added or existing strings are modified, you only need to update the
356corresponding messages.
357
358ITS Tool is designed to make XML documents translatable through PO files by
359applying standard ITS rules, as well as extension rules specific to ITS Tool.
360ITS also provides an industry standard way for authors to override translation
361information in their documents, such as whether a particular element should be
362translated.")
a129e0d8 363 (license license:gpl3+)))
20a26ff5 364
80370441 365(define dbus-glib
24b5c463
AE
366 (package
367 (name "dbus-glib")
cb77ade6 368 (version "0.104")
24b5c463
AE
369 (source (origin
370 (method url-fetch)
371 (uri
372 (string-append "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-"
373 version ".tar.gz"))
374 (sha256
375 (base32
cb77ade6 376 "1xi1v1msz75qs0s4lkyf1psrksdppa3hwkg0mznc6gpw5flg3hdz"))))
24b5c463 377 (build-system gnu-build-system)
2e88d113 378 (propagated-inputs ; according to dbus-glib-1.pc
24b5c463 379 `(("dbus" ,dbus)
44add1ce 380 ("glib" ,glib)))
2e88d113
AE
381 (inputs
382 `(("expat" ,expat)))
44add1ce
LC
383 (native-inputs
384 `(("glib" ,glib "bin")
24b5c463
AE
385 ("pkg-config" ,pkg-config)))
386 (home-page "http://dbus.freedesktop.org/doc/dbus-glib/")
387 (synopsis "D-Bus GLib bindings")
388 (description
389 "GLib bindings for D-Bus. The package is obsolete and superseded
390by GDBus included in Glib.")
391 (license license:gpl2))) ; or Academic Free License 2.1
a5a7d374
LC
392
393(define libsigc++
394 (package
395 (name "libsigc++")
e7a720e6 396 (version "2.4.1")
a5a7d374
LC
397 (source (origin
398 (method url-fetch)
e7a720e6
SB
399 (uri (string-append "mirror://gnome/sources/libsigc++/"
400 (version-major+minor version) "/"
401 name "-" version ".tar.xz"))
a5a7d374
LC
402 (sha256
403 (base32
e7a720e6 404 "1v0rvkzglzmf67y9nkcppwjwi68j1cy5yhldvcq7xrv8594l612l"))))
a5a7d374 405 (build-system gnu-build-system)
41eb1198
LC
406 (native-inputs `(("pkg-config" ,pkg-config)
407 ("m4" ,m4)))
a5a7d374
LC
408 (home-page "http://libsigc.sourceforge.net/")
409 (synopsis "Type-safe callback system for standard C++")
410 (description
35b9e423 411 "Libsigc++ implements a type-safe callback system for standard C++. It
a5a7d374
LC
412allows you to define signals and to connect those signals to any callback
413function, either global or a member function, regardless of whether it is
414static or virtual.
415
416It also contains adaptor classes for connection of dissimilar callbacks and
417has an ease of use unmatched by other C++ callback libraries.")
418 (license license:lgpl2.1+)))
419
420(define glibmm
421 (package
422 (name "glibmm")
759dd7d5 423 (version "2.44.0")
a5a7d374
LC
424 (source (origin
425 (method url-fetch)
3d6befa4
MW
426 (uri (string-append "mirror://gnome/sources/glibmm/"
427 (version-major+minor version)
428 "/glibmm-" version ".tar.xz"))
a5a7d374
LC
429 (sha256
430 (base32
759dd7d5 431 "1a1fczy7hcpn24fglyn4i79f4yjc8s50is70q03mb294bm1c02hv"))))
a5a7d374
LC
432 (build-system gnu-build-system)
433 (arguments
434 `(#:phases (alist-cons-before
435 'build 'pre-build
436 (lambda _
437 ;; This test uses /etc/fstab as an example file to read
438 ;; from; choose a better example.
439 (substitute* "tests/giomm_simple/main.cc"
440 (("/etc/fstab")
441 (string-append (getcwd)
442 "/tests/giomm_simple/main.cc")))
443
444 ;; This test does a DNS lookup, and then expects to be able
445 ;; to open a TLS session; just skip it.
446 (substitute* "tests/giomm_tls_client/main.cc"
447 (("Gio::init.*$")
448 "return 77;\n")))
449 %standard-phases)))
41eb1198
LC
450 (native-inputs `(("pkg-config" ,pkg-config)
451 ("glib" ,glib "bin")))
a5a7d374
LC
452 (propagated-inputs
453 `(("libsigc++" ,libsigc++)
454 ("glib" ,glib)))
455 (home-page "http://gtkmm.org/")
456 (synopsis "C++ interface to the GLib library")
457 (description
35b9e423 458 "Glibmm provides a C++ programming interface to the part of GLib that are
a5a7d374
LC
459useful for C++.")
460 (license license:lgpl2.1+)))
a1de06b6
EB
461
462(define-public python2-pygobject-2
463 (package
464 (name "python2-pygobject")
465 ;; This was the last version to declare the 2.0 platform number, i.e. its
466 ;; pkg-config files were named pygobject-2.0.pc
467 (version "2.28.6")
468 (source
469 (origin
470 (method url-fetch)
471 (uri (string-append "mirror://gnome/sources/pygobject/"
472 (version-major+minor version)
473 "/pygobject-" version ".tar.xz"))
474 (sha256
475 (base32
476 "1f5dfxjnil2glfwxnqr14d2cjfbkghsbsn8n04js2c2icr7iv2pv"))
477 (patches
478 (list (search-patch
479 "python2-pygobject-2-gi-info-type-error-domain.patch")))))
480 (build-system gnu-build-system)
481 (native-inputs
482 `(("which" ,which)
483 ("glib-bin" ,glib "bin") ;for tests: glib-compile-schemas
484 ("pkg-config" ,pkg-config)
485 ("dbus" ,dbus))) ;for tests
486 (inputs
487 `(("python" ,python-2)
488 ("glib" ,glib)
7ca0dbc3 489 ("python2-pycairo" ,python2-pycairo)
a1de06b6
EB
490 ("gobject-introspection" ,gobject-introspection)))
491 (propagated-inputs
492 `(("libffi" ,libffi))) ;mentioned in pygobject-2.0.pc
493 (arguments
494 `(#:tests? #f ;segfaults during tests
495 #:configure-flags '("LIBS=-lcairo-gobject")))
496 (home-page "https://pypi.python.org/pypi/PyGObject")
497 (synopsis "Python bindings for GObject")
498 (description
499 "Python bindings for GLib, GObject, and GIO.")
500 (license license:lgpl2.1+)))
501
502(define-public python-pygobject
503 (package
504 (name "python-pygobject")
6b679559 505 (version "3.16.1")
a1de06b6
EB
506 (source
507 (origin
508 (method url-fetch)
509 (uri (string-append "mirror://gnome/sources/pygobject/"
510 (version-major+minor version)
511 "/pygobject-" version ".tar.xz"))
512 (sha256
513 (base32
6b679559 514 "1hqyma73w0lnjcgx68kawhnq84aq92xlkdqphrlc2ppia38dm5kx"))))
a1de06b6
EB
515 (build-system gnu-build-system)
516 (native-inputs
517 `(("which" ,which)
518 ("glib-bin" ,glib "bin") ;for tests: glib-compile-schemas
519 ("pkg-config" ,pkg-config)))
520 (inputs
521 `(("python" ,python)
522 ("glib" ,glib)
523 ("python-pycairo" ,python-pycairo)
524 ("gobject-introspection" ,gobject-introspection)
525 ("libffi" ,libffi)))
526 (arguments
527 ;; TODO: failing tests: test_native_calls_async
528 ;; test_native_calls_async_errors test_native_calls_sync
529 ;; test_native_calls_sync_errors test_python_calls_async
530 ;; test_python_calls_async_error test_python_calls_async_error_result
531 ;; test_python_calls_sync test_python_calls_sync_errors
532 ;; test_python_calls_sync_noargs test_callback_user_data_middle_none
533 ;; test_callback_user_data_middle_single
534 ;; test_callback_user_data_middle_tuple
535 '(#:tests? #f))
594a362b 536 (home-page "https://live.gnome.org/PyGObject")
a1de06b6
EB
537 (synopsis "Python bindings for GObject")
538 (description
539 "Python bindings for GLib, GObject, and GIO.")
540 (license license:lgpl2.1+)))
7873318d 541
0f49d7ba
RW
542(define-public python2-pygobject
543 (package (inherit python-pygobject)
544 (name "python2-pygobject")
545 (inputs
546 `(("python" ,python-2)
547 ("glib" ,glib)
548 ("python-pycairo" ,python2-pycairo)
549 ("gobject-introspection" ,gobject-introspection)
550 ("libffi" ,libffi)))))
551
7873318d
AE
552(define telepathy-glib
553 (package
554 (name "telepathy-glib")
555 (version "0.24.1")
556 (source
557 (origin
558 (method url-fetch)
559 (uri
560 (string-append
561 "http://telepathy.freedesktop.org/releases/telepathy-glib/"
562 "telepathy-glib-" version ".tar.gz"))
563 (sha256
564 (base32
565 "1symyzbjmxvksn2ifdkk50lafjm2llf2sbmky062gq2pz3cg23cy"))))
566 (build-system gnu-build-system)
567 (native-inputs
568 `(("glib" ,glib "bin") ; uses glib-mkenums
569 ("pkg-config" ,pkg-config)
570 ("python" ,python-2)))
571 (inputs
572 `(("dbus" ,dbus)
573 ("dbus-glib" ,dbus-glib)
574 ("glib" ,glib)
575 ("gobject-introspection" ,gobject-introspection)
576 ("libxslt" ,libxslt)))
577 (home-page "http://telepathy.freedesktop.org/wiki/")
578 (synopsis "GLib Real-time communications framework over D-Bus")
579 (description "Telepathy is a flexible, modular communications framework
580that enables real-time communication over D-Bus via pluggable protocol
581backends. Telepathy is a communications service that can be accessed by
582many applications simultaneously.
583
584This package provides the library for GLib applications.")
585 (license license:lgpl2.1+)))