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