mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
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
1 changed files with 3 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue