summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2016-09-01 22:44:03 +0300
committerEfraim Flashner <efraim@flashner.co.il>2016-09-02 06:44:35 +0300
commit25a2f81f9b554e600f38ffaa89305cac3653d7a3 (patch)
tree070d1f4cdfc877fc4481d6ef0ecb7623d0a02311 /gnu
parentd44a618384a639f9207a4fca62b039758d3e9b57 (diff)
downloadguix-25a2f81f9b554e600f38ffaa89305cac3653d7a3.tar.gz
gnu: python2-scikit-learn: Use strip-python2-variant.
* gnu/packages/python.scm (python2-scikit-learn): Replace package
definition with 'package-with-python2', using 'strip-python2-variant'
to simplify the package definition.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python.scm13
1 files changed, 3 insertions, 10 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 09fe6273a3..15a2a391db 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2885,18 +2885,11 @@ and is very extensible.")
     (description
      "Scikit-learn provides simple and efficient tools for data
 mining and data analysis.")
-    (license license:bsd-3)))
+    (license license:bsd-3)
+    (properties `((python2-variant . ,(delay python2-scikit-learn))))))
 
 (define-public python2-scikit-learn
-  (let ((scikit (package-with-python2 python-scikit-learn)))
-    (package (inherit scikit)
-      (propagated-inputs
-       `(("python2-numpy" ,python2-numpy)
-         ("python2-scipy" ,python2-scipy)
-         ,@(alist-delete
-            "python-numpy"
-            (alist-delete
-             "python-scipy" (package-propagated-inputs scikit))))))))
+  (package-with-python2 (strip-python2-variant python-scikit-learn)))
 
 (define-public python-scikit-image
   (package