From 2ec5a1a576c45bd63e2ae11c081802deae66ed3b Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 28 Nov 2021 22:55:22 +0100 Subject: 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. --- gnu/packages/python-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index cc35781dd6..7ff95373ce 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -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"))))) -- cgit v1.2.3