guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: python2-tqdm: Work around missing flake8 propagation.


From: Marius Bakke
Subject: 02/02: gnu: python2-tqdm: Work around missing flake8 propagation.
Date: Wed, 7 Feb 2018 11:06:15 -0500 (EST)

mbakke pushed a commit to branch core-updates
in repository guix.

commit 53f826cd0f429864d46fc3bf6305c14356d0b2ad
Author: Marius Bakke <address@hidden>
Date:   Wed Feb 7 17:05:23 2018 +0100

    gnu: python2-tqdm: Work around missing flake8 propagation.
    
    * gnu/packages/python.scm (python-tqdm)[properties]: Declare python2 
variant.
    (python2-tqdm): Use STRIP-PYTHON2-VARIANT.
    [native-inputs]: Add PYTHON-ENUM34.
---
 gnu/packages/python.scm | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 6013c31..40c6077 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -11929,10 +11929,18 @@ 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
+       ;; FIXME: This should be propagated from python2-flake8 instead.
+       `(("python2-enum34" ,python2-enum34)
+         ,@(package-native-inputs tqdm))))))
 
 (define-public python-pkginfo
   (package



reply via email to

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