aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2016-02-22 20:14:46 +0200
committerEfraim Flashner <efraim@flashner.co.il>2016-02-22 21:59:02 +0200
commit5ad87e5bb5f5fe863c95097d012c0da13d70fbf6 (patch)
tree11e11bbcd9909a3a377cd8f0d9ea6ca29b77328f /gnu/packages
parentf4cd2ceabd652a3cd63c28bf37093f9afff2d6ee (diff)
downloadpatches-5ad87e5bb5f5fe863c95097d012c0da13d70fbf6.tar
patches-5ad87e5bb5f5fe863c95097d012c0da13d70fbf6.tar.gz
gnu: python-patsy: Define 'python2-variant'.
* gnu/packages/statistics.scm (python-patsy)[properties]: New field. (python2-patsy): Use 'strip-python2-variant'.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/statistics.scm13
1 files 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 @@ 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