From 5ad87e5bb5f5fe863c95097d012c0da13d70fbf6 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 Feb 2016 20:14:46 +0200 Subject: 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 file changed, 4 insertions(+), 9 deletions(-) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index be7c16a067..08e8654228 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -979,20 +979,15 @@ (define-public python-patsy ;; 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 -- cgit v1.2.3