guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: python-patsy: Define 'python2-variant'.


From: Efraim Flashner
Subject: 02/02: gnu: python-patsy: Define 'python2-variant'.
Date: Mon, 22 Feb 2016 20:00:44 +0000

efraim pushed a commit to branch master
in repository guix.

commit 5ad87e5bb5f5fe863c95097d012c0da13d70fbf6
Author: Efraim Flashner <address@hidden>
Date:   Mon Feb 22 20:14:46 2016 +0200

    gnu: python-patsy: Define 'python2-variant'.
    
    * gnu/packages/statistics.scm (python-patsy)[properties]: New field.
    (python2-patsy): Use 'strip-python2-variant'.
---
 gnu/packages/statistics.scm |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index be7c16a..08e8654 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -979,20 +979,15 @@ building design matrices.")
     ;; The majority of the code is distributed under BSD-2.  The module
     ;; patsy.compat contains code derived from the Python standard library,
     ;; and is covered by the PSFL.
-    (license (list license:bsd-2 license:psfl))))
+    (license (list license:bsd-2 license:psfl))
+    (properties `((python2-variant . ,(delay python2-patsy))))))
 
 (define-public python2-patsy
-  (let ((patsy (package-with-python2 python-patsy)))
+  (let ((patsy (package-with-python2 (strip-python2-variant python-patsy))))
     (package (inherit patsy)
       (native-inputs
        `(("python2-setuptools" ,python2-setuptools)
-         ,@(package-native-inputs patsy)))
-      (propagated-inputs
-       `(("python2-numpy" ,python2-numpy)
-         ("python2-scipy" ,python2-scipy)
-         ,@(alist-delete "python-numpy"
-                         (alist-delete "python-scipy"
-                                       (package-propagated-inputs patsy))))))))
+         ,@(package-native-inputs patsy))))))
 
 (define-public python-statsmodels
   (package



reply via email to

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