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