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.
This commit is contained in:
Ludovic Courtès 2021-11-28 22:55:22 +01:00
parent 0ca73525c8
commit 2ec5a1a576
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -8877,6 +8877,7 @@ (define-public python-dbus
(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 @@ (define-public python2-dbus
(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")))))