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:
parent
d44a618384
commit
25a2f81f9b
|
@ -2885,18 +2885,11 @@ and is very extensible.")
|
||||||
(description
|
(description
|
||||||
"Scikit-learn provides simple and efficient tools for data
|
"Scikit-learn provides simple and efficient tools for data
|
||||||
mining and data analysis.")
|
mining and data analysis.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)
|
||||||
|
(properties `((python2-variant . ,(delay python2-scikit-learn))))))
|
||||||
|
|
||||||
(define-public python2-scikit-learn
|
(define-public python2-scikit-learn
|
||||||
(let ((scikit (package-with-python2 python-scikit-learn)))
|
(package-with-python2 (strip-python2-variant 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))))))))
|
|
||||||
|
|
||||||
(define-public python-scikit-image
|
(define-public python-scikit-image
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in New Issue