~ruther/guix-local

2ec5a1a576c45bd63e2ae11c081802deae66ed3b — Ludovic Courtès 4 years ago 0ca7352
gnu: python-dbus: Register 'python2-dbus' as the Python 2 variant.

This allows things like 'python2-notify2' to actually use the Python 2
variant of 'python-dbus'.

* gnu/packages/python-xyz.scm (python-dbus)[properties]: New field.
(python2-dbus)[inputs]: Remove unnecessary 'alist-delete' argument.
1 files changed, 2 insertions(+), 2 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +2 -2
@@ 8877,6 8877,7 @@ parsing (browser/HTTP) user agent strings.")
    (description "python-dbus provides bindings for libdbus, the reference
implementation of D-Bus.")
    (home-page "https://www.freedesktop.org/wiki/Software/DBusBindings/")
    (properties `((python2-variant . ,(delay python2-dbus))))
    (license license:expat)))

(define-public python2-dbus


@@ 8884,8 8885,7 @@ implementation of D-Bus.")
    (name "python2-dbus")
    (inputs `(("python" ,python-2)
              ,@(alist-delete "python"
                              (package-inputs python-dbus)
                              equal?)))
                              (package-inputs python-dbus))))
    (arguments
     `(#:configure-flags '("PYTHON_VERSION=2")))))