guix-commits
[Top][All Lists]
Advanced

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

04/06: gnu: python2-scikit-image: Use strip-python2-variant.


From: Efraim Flashner
Subject: 04/06: gnu: python2-scikit-image: Use strip-python2-variant.
Date: Fri, 2 Sep 2016 03:44:54 +0000 (UTC)

efraim pushed a commit to branch master
in repository guix.

commit 2b031d3fc109c5b726d0711d948ee465f662f0a4
Author: Efraim Flashner <address@hidden>
Date:   Thu Sep 1 23:06:42 2016 +0300

    gnu: python2-scikit-image: Use strip-python2-variant.
    
    * gnu/packages/python.scm (python2-scikit-image): Inherit using
    strip-python2-variant.
    [propagated-inputs]: Remove work-around for python2-matplotlib,
    python2-numpy, python2-scipy.
---
 gnu/packages/python.scm |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 06de46b..dd59be8 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2919,21 +2919,19 @@ mining and data analysis.")
     (synopsis "Image processing in Python")
     (description
      "Scikit-image is a collection of algorithms for image processing.")
-    (license license:bsd-3)))
+    (license license:bsd-3)
+    (properties `((python2-variant . ,(delay python2-scikit-image))))))
 
 (define-public python2-scikit-image
-  (let ((scikit-image (package-with-python2 python-scikit-image)))
+  (let ((scikit-image (package-with-python2
+                        (strip-python2-variant python-scikit-image))))
     (package (inherit scikit-image)
       (native-inputs
        `(("python2-mock" ,python2-mock)
          ,@(package-native-inputs scikit-image)))
       (propagated-inputs
        `(("python2-pytz" ,python2-pytz)
-         ("python2-matplotlib" ,python2-matplotlib)
-         ("python2-numpy" ,python2-numpy)
-         ("python2-scipy" ,python2-scipy)
-         ,@(fold alist-delete (package-propagated-inputs scikit-image)
-                 '("python-matplotlib" "python-numpy" "python-scipy")))))))
+         ,@(package-propagated-inputs scikit-image))))))
 
 (define-public python-redis
   (package



reply via email to

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