| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr> |
| 4 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> |
| 5 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> |
| 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 | |
| 22 | (define-module (gnu packages glib) |
| 23 | #:use-module ((guix licenses) #:prefix license:) |
| 24 | #:use-module (guix packages) |
| 25 | #:use-module (guix download) |
| 26 | #:use-module (guix utils) |
| 27 | #:use-module (guix build-system gnu) |
| 28 | #:use-module (gnu packages) |
| 29 | #:use-module (gnu packages base) |
| 30 | #:use-module (gnu packages bison) |
| 31 | #:use-module (gnu packages compression) |
| 32 | #:use-module (gnu packages flex) |
| 33 | #:use-module (gnu packages gettext) |
| 34 | #:use-module (gnu packages gtk) |
| 35 | #:use-module (gnu packages libffi) |
| 36 | #:use-module (gnu packages perl) |
| 37 | #:use-module (gnu packages pkg-config) |
| 38 | #:use-module (gnu packages python) |
| 39 | #:use-module (gnu packages xml) |
| 40 | #:use-module (gnu packages bash) |
| 41 | #:use-module (gnu packages file) |
| 42 | #:use-module (gnu packages xorg) |
| 43 | #:use-module (gnu packages m4) |
| 44 | |
| 45 | ;; Export variables up-front to allow circular dependency with the 'xorg' |
| 46 | ;; module. |
| 47 | #:export (dbus |
| 48 | glib |
| 49 | gobject-introspection |
| 50 | dbus-glib |
| 51 | intltool |
| 52 | itstool |
| 53 | libsigc++ |
| 54 | glibmm |
| 55 | telepathy-glib)) |
| 56 | |
| 57 | (define dbus |
| 58 | (package |
| 59 | (name "dbus") |
| 60 | (version "1.10.0") |
| 61 | (source (origin |
| 62 | ;; TODO: Apply patch from DBUS/ACTIVATION below. |
| 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")))) |
| 70 | (build-system gnu-build-system) |
| 71 | (arguments |
| 72 | '(#:configure-flags |
| 73 | (list |
| 74 | ;; Install the system bus socket under /var. |
| 75 | "--localstatedir=/var" |
| 76 | |
| 77 | ;; Install the session bus socket under /tmp. |
| 78 | "--with-session-socket-dir=/tmp" |
| 79 | |
| 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")))))) |
| 98 | (native-inputs |
| 99 | `(("pkg-config" ,pkg-config))) |
| 100 | (inputs |
| 101 | `(("expat" ,expat) |
| 102 | |
| 103 | ;; Add a dependency on libx11 so that 'dbus-launch' has support for |
| 104 | ;; '--autolaunch'. |
| 105 | ("libx11" ,libx11))) |
| 106 | |
| 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 |
| 111 | talk to one another. In addition to interprocess communication, D-Bus |
| 112 | helps coordinate process lifecycle; it makes it simple and reliable to |
| 113 | code a \"single instance\" application or daemon, and to launch |
| 114 | applications and daemons on demand when their services are needed. |
| 115 | |
| 116 | D-Bus supplies both a system daemon (for events such as \"new hardware |
| 117 | device added\" or \"printer queue changed\") and a |
| 118 | per-user-login-session daemon (for general IPC needs among user |
| 119 | applications). Also, the message bus is built on top of a general |
| 120 | one-to-one message passing framework, which can be used by any two apps |
| 121 | to communicate directly (without going through the message bus |
| 122 | daemon). Currently the communicating applications are on one computer, |
| 123 | or through unencrypted TCP/IP suitable for use behind a firewall with |
| 124 | shared NFS home directories.") |
| 125 | (license license:gpl2+))) ; or Academic Free License 2.1 |
| 126 | |
| 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 | |
| 138 | (define glib |
| 139 | (package |
| 140 | (name "glib") |
| 141 | (version "2.46.1") |
| 142 | (source (origin |
| 143 | (method url-fetch) |
| 144 | (uri (string-append "mirror://gnome/sources/" |
| 145 | name "/" (string-take version 4) "/" |
| 146 | name "-" version ".tar.xz")) |
| 147 | (sha256 |
| 148 | (base32 |
| 149 | "1yzxr1ip3l0m9ydk5nq32piq70c9f17p5f0jyvlsghzbaawh67ss")) |
| 150 | (patches (list (search-patch "glib-tests-homedir.patch") |
| 151 | (search-patch "glib-tests-desktop.patch") |
| 152 | (search-patch "glib-tests-prlimit.patch") |
| 153 | (search-patch "glib-tests-timer.patch") |
| 154 | (search-patch "glib-tests-gapplication.patch"))))) |
| 155 | (build-system gnu-build-system) |
| 156 | (outputs '("out" ; everything |
| 157 | "bin" ; glib-mkenums, gtester, etc.; depends on Python |
| 158 | "doc")) ; 20 MiB of GTK-Doc reference |
| 159 | (inputs |
| 160 | `(("coreutils" ,coreutils) |
| 161 | ("libffi" ,libffi) |
| 162 | ("zlib" ,zlib) |
| 163 | ("tzdata" ,tzdata))) ; for tests/gdatetime.c |
| 164 | (native-inputs |
| 165 | `(("gettext" ,gnu-gettext) |
| 166 | ("dbus" ,dbus) ; for GDBus tests |
| 167 | ("pkg-config" ,pkg-config) |
| 168 | ("python" ,python-wrapper) |
| 169 | ("perl" ,perl) ; needed by GIO tests |
| 170 | ("bash" ,bash))) |
| 171 | (arguments |
| 172 | '(#:phases (alist-cons-before |
| 173 | 'build 'pre-build |
| 174 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 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 | |
| 183 | (substitute* '("glib/gspawn.c" |
| 184 | "glib/tests/utils.c" |
| 185 | "tests/spawn-test.c") |
| 186 | (("/bin/sh") |
| 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 " */")))) |
| 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") |
| 198 | "/share/gtk-doc/html")) |
| 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)) |
| 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") |
| 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"))))) |
| 216 | (search-paths native-search-paths) |
| 217 | |
| 218 | (synopsis "Thread-safe general utility library; basis of GTK+ and GNOME") |
| 219 | (description |
| 220 | "GLib provides data structure handling for C, portability wrappers, |
| 221 | and interfaces for such runtime functionality as an event loop, threads, |
| 222 | dynamic loading, and an object system.") |
| 223 | (home-page "http://developer.gnome.org/glib/") |
| 224 | (license license:lgpl2.0+))) ; some files are under lgpl2.1+ |
| 225 | |
| 226 | (define gobject-introspection |
| 227 | (package |
| 228 | (name "gobject-introspection") |
| 229 | (version "1.46.0") |
| 230 | (source (origin |
| 231 | (method url-fetch) |
| 232 | (uri (string-append "mirror://gnome/sources/" |
| 233 | "gobject-introspection/" (version-major+minor version) |
| 234 | "/gobject-introspection-" version ".tar.xz")) |
| 235 | (sha256 |
| 236 | (base32 "0cs27r18fga44ypp8icy62fwx6nh70r1bvhi4lzfn4w85cybsn36")) |
| 237 | (modules '((guix build utils))) |
| 238 | (snippet |
| 239 | '(substitute* "tools/g-ir-tool-template.in" |
| 240 | (("#!/usr/bin/env @PYTHON@") "#!@PYTHON@"))) |
| 241 | (patches (list |
| 242 | (search-patch "gobject-introspection-cc.patch") |
| 243 | (search-patch |
| 244 | "gobject-introspection-girepository.patch") |
| 245 | (search-patch |
| 246 | "gobject-introspection-absolute-shlib-path.patch"))))) |
| 247 | (build-system gnu-build-system) |
| 248 | (inputs |
| 249 | `(("bison" ,bison) |
| 250 | ("cairo" ,cairo) |
| 251 | ("flex" ,flex) |
| 252 | ("glib" ,glib) |
| 253 | ("pkg-config" ,pkg-config) |
| 254 | ("python-2" ,python-2))) |
| 255 | (native-inputs |
| 256 | `(("glib" ,glib "bin"))) |
| 257 | (propagated-inputs |
| 258 | `(;; In practice, GIR users will need libffi when using |
| 259 | ;; gobject-introspection. |
| 260 | ("libffi" ,libffi))) |
| 261 | (native-search-paths |
| 262 | (list (search-path-specification |
| 263 | (variable "GI_TYPELIB_PATH") |
| 264 | (files '("lib/girepository-1.0"))))) |
| 265 | (search-paths native-search-paths) |
| 266 | (arguments |
| 267 | `(;; The patch 'gobject-introspection-absolute-shlib-path.patch' causes |
| 268 | ;; some tests to fail. |
| 269 | #:tests? #f)) |
| 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 |
| 274 | GObject) and language bindings. The C library can be scanned at compile time |
| 275 | and generate a metadata file, in addition to the actual native C library. Then |
| 276 | at runtime, language bindings can read this metadata and automatically provide |
| 277 | bindings to call into the C library.") |
| 278 | ; Some bits are distributed under the LGPL2+, others under the GPL2+ |
| 279 | (license license:gpl2+))) |
| 280 | |
| 281 | (define intltool |
| 282 | (package |
| 283 | (name "intltool") |
| 284 | (version "0.51.0") |
| 285 | (source (origin |
| 286 | (method url-fetch) |
| 287 | (uri (string-append "https://launchpad.net/intltool/trunk/" |
| 288 | version "/+download/intltool-" |
| 289 | version ".tar.gz")) |
| 290 | (sha256 |
| 291 | (base32 |
| 292 | "1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7")))) |
| 293 | (build-system gnu-build-system) |
| 294 | (inputs |
| 295 | `(("file" ,file))) |
| 296 | (propagated-inputs |
| 297 | `(;; Propagate gettext because users expect it to be there, and so does |
| 298 | ;; the `intltool-update' script. |
| 299 | ("gettext" ,gnu-gettext) |
| 300 | |
| 301 | ("perl-xml-parser" ,perl-xml-parser) |
| 302 | ("perl" ,perl))) |
| 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))) |
| 311 | (home-page "https://launchpad.net/intltool/+download") |
| 312 | (synopsis "Tools to centralise translations of different file formats") |
| 313 | (description |
| 314 | "Intltool is a set of tools to centralise translations of many different |
| 315 | file formats using GNU gettext-compatible PO files. |
| 316 | |
| 317 | The 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 |
| 326 | oaf files. This merge step will happen at build resp. installation time.") |
| 327 | (license license:gpl2+))) |
| 328 | |
| 329 | (define itstool |
| 330 | (package |
| 331 | (name "itstool") |
| 332 | (version "2.0.2") |
| 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 |
| 339 | "0fh34wi52i0qikgvlmrcpf1vx6gc1xqdad4539l4d9hikfsrz45z")))) |
| 340 | (build-system gnu-build-system) |
| 341 | (inputs |
| 342 | `(("libxml2" ,libxml2) |
| 343 | ("python2-libxml2" ,python2-libxml2) |
| 344 | ("python-2" ,python-2))) |
| 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")))))))))) |
| 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 |
| 359 | rules from the W3C Internationalization Tag Set (ITS) to determine what to |
| 360 | translate and how to separate it into PO file messages. |
| 361 | |
| 362 | PO files are the standard translation format for GNU and other Unix-like |
| 363 | systems. They present translatable information as discrete messages, allowing |
| 364 | each message to be translated independently. In contrast to whole-page |
| 365 | translation, translating with a message-based format like PO means you can |
| 366 | easily track changes to the source document down to the paragraph. When new |
| 367 | strings are added or existing strings are modified, you only need to update the |
| 368 | corresponding messages. |
| 369 | |
| 370 | ITS Tool is designed to make XML documents translatable through PO files by |
| 371 | applying standard ITS rules, as well as extension rules specific to ITS Tool. |
| 372 | ITS also provides an industry standard way for authors to override translation |
| 373 | information in their documents, such as whether a particular element should be |
| 374 | translated.") |
| 375 | (license license:gpl3+))) |
| 376 | |
| 377 | (define dbus-glib |
| 378 | (package |
| 379 | (name "dbus-glib") |
| 380 | (version "0.104") |
| 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 |
| 388 | "1xi1v1msz75qs0s4lkyf1psrksdppa3hwkg0mznc6gpw5flg3hdz")))) |
| 389 | (build-system gnu-build-system) |
| 390 | (propagated-inputs ; according to dbus-glib-1.pc |
| 391 | `(("dbus" ,dbus) |
| 392 | ("glib" ,glib))) |
| 393 | (inputs |
| 394 | `(("expat" ,expat))) |
| 395 | (native-inputs |
| 396 | `(("glib" ,glib "bin") |
| 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 |
| 402 | by GDBus included in Glib.") |
| 403 | (license license:gpl2))) ; or Academic Free License 2.1 |
| 404 | |
| 405 | (define libsigc++ |
| 406 | (package |
| 407 | (name "libsigc++") |
| 408 | (version "2.6.1") |
| 409 | (source (origin |
| 410 | (method url-fetch) |
| 411 | (uri (string-append "mirror://gnome/sources/libsigc++/" |
| 412 | (version-major+minor version) "/" |
| 413 | name "-" version ".tar.xz")) |
| 414 | (sha256 |
| 415 | (base32 |
| 416 | "06xyvxaaxh3nbpjg86gcq5zcc2qnpx354wcfrqlhbndkq5kj2vqq")))) |
| 417 | (build-system gnu-build-system) |
| 418 | (native-inputs `(("pkg-config" ,pkg-config) |
| 419 | ("m4" ,m4))) |
| 420 | (home-page "http://libsigc.sourceforge.net/") |
| 421 | (synopsis "Type-safe callback system for standard C++") |
| 422 | (description |
| 423 | "Libsigc++ implements a type-safe callback system for standard C++. It |
| 424 | allows you to define signals and to connect those signals to any callback |
| 425 | function, either global or a member function, regardless of whether it is |
| 426 | static or virtual. |
| 427 | |
| 428 | It also contains adaptor classes for connection of dissimilar callbacks and |
| 429 | has an ease of use unmatched by other C++ callback libraries.") |
| 430 | (license license:lgpl2.1+))) |
| 431 | |
| 432 | (define glibmm |
| 433 | (package |
| 434 | (name "glibmm") |
| 435 | (version "2.46.1") |
| 436 | (source (origin |
| 437 | (method url-fetch) |
| 438 | (uri (string-append "mirror://gnome/sources/glibmm/" |
| 439 | (version-major+minor version) |
| 440 | "/glibmm-" version ".tar.xz")) |
| 441 | (sha256 |
| 442 | (base32 |
| 443 | "1an4v1yk06svlmcyp1psk2a3bsn29s1a4gdx0ai2w788q6bfaiwn")))) |
| 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))) |
| 462 | (native-inputs `(("pkg-config" ,pkg-config) |
| 463 | ("glib" ,glib "bin"))) |
| 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 |
| 470 | "Glibmm provides a C++ programming interface to the part of GLib that are |
| 471 | useful for C++.") |
| 472 | (license license:lgpl2.1+))) |
| 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) |
| 501 | ("python2-pycairo" ,python2-pycairo) |
| 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") |
| 517 | (version "3.18.0") |
| 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 |
| 526 | "1jbd2m39vcjh5h3m33l0317ziq8dxfzi40r6hrfcs4rp5l8s2fqw")))) |
| 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)) |
| 548 | (home-page "https://live.gnome.org/PyGObject") |
| 549 | (synopsis "Python bindings for GObject") |
| 550 | (description |
| 551 | "Python bindings for GLib, GObject, and GIO.") |
| 552 | (license license:lgpl2.1+))) |
| 553 | |
| 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 | |
| 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 |
| 592 | that enables real-time communication over D-Bus via pluggable protocol |
| 593 | backends. Telepathy is a communications service that can be accessed by |
| 594 | many applications simultaneously. |
| 595 | |
| 596 | This package provides the library for GLib applications.") |
| 597 | (license license:lgpl2.1+))) |