guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: gnu: python2-tqdm: Depend on python2-functools32.


From: guix-commits
Subject: 03/03: gnu: python2-tqdm: Depend on python2-functools32.
Date: Tue, 8 Oct 2019 17:19:20 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit f875d76f16203e6ad235ec2c03ac784852ac1a20
Author: Pierre Langlois <address@hidden>
Date:   Tue Oct 8 14:38:32 2019 +0100

    gnu: python2-tqdm: Depend on python2-functools32.
    
    * gnu/packages/python-xyz.scm (python-tqdm)[properties]: Add 
python2-variant.
    (python2-tqdm): Use 'strip-python2-variant'.
    [native-inputs]: Add python2-functools32.
    
    Signed-off-by: Marius Bakke <address@hidden>
---
 gnu/packages/python-xyz.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b0f5ec7..c305322 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13746,10 +13746,15 @@ ignoring formatting changes.")
       "Make loops show a progress bar on the console by just wrapping any
 iterable with @code{|tqdm(iterable)|}.  Offers many options to define
 design and layout.")
-    (license (list license:mpl2.0 license:expat))))
+    (license (list license:mpl2.0 license:expat))
+    (properties `((python2-variant . ,(delay python2-tqdm))))))
 
 (define-public python2-tqdm
-  (package-with-python2 python-tqdm))
+  (let ((tqdm (package-with-python2
+                (strip-python2-variant python-tqdm))))
+    (package (inherit tqdm)
+      (native-inputs `(("python2-functools32" ,python2-functools32)
+                        ,@(package-native-inputs tqdm))))))
 
 (define-public python-pkginfo
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]