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.
This commit is contained in:
Efraim Flashner 2016-09-01 22:44:03 +03:00
parent d44a618384
commit 25a2f81f9b
No known key found for this signature in database
GPG key ID: F4C1D3917EACEE93

View file

@ -2885,18 +2885,11 @@ (define-public python-scikit-learn
(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