gnu: orange: Update to 3.31.1.

* gnu/packages/orange.scm (orange): Update to 3.31.1.
[arguments]<#:phases>: Don't return #t. Adjust file name for substitution in
'preparations. Rename 'set-HOME to 'pre-check. Set QT_QPA_PLATFORM in
'pre-check.
[inputs]: Add python-pygments, python-qtconsole.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Vinicius Monego 2022-01-14 20:09:27 +00:00 committed by Nicolas Goaziou
parent f7b6bc9d88
commit 354426bbcb
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -102,13 +102,13 @@ (define-public python-orange-widget-base
(define-public orange (define-public orange
(package (package
(name "orange") (name "orange")
(version "3.28.0") (version "3.31.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "Orange3" version)) (uri (pypi-uri "Orange3" version))
(sha256 (sha256
(base32 "1ac4xjjkx06z10hl7k0zh1z3qhkl5vng15l9jkpkmck9spinbzil")))) (base32 "0jqay46nysgfxldik7f6mfi8iylai2gwfpq60vklrfi1rhqf3pn6"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
@ -125,11 +125,12 @@ (define-public orange
;; We use a correct version of PyQtWebEngine, but the build scripts ;; We use a correct version of PyQtWebEngine, but the build scripts
;; consider it incorrect anyways. Remove the constraint entirely to ;; consider it incorrect anyways. Remove the constraint entirely to
;; work around this bug. ;; work around this bug.
(substitute* "requirements-gui.txt" (("PyQtWebEngine>=5.12") "")) (substitute* "requirements-pyqt.txt" (("PyQtWebEngine>=5.12") ""))))
#t)) (add-before 'check 'pre-check
(add-before 'check 'set-HOME
;; Tests need a writable home. ;; Tests need a writable home.
(lambda _ (setenv "HOME" "/tmp") #t)) (lambda _
(setenv "HOME" "/tmp")
(setenv "QT_QPA_PLATFORM" "offscreen")))
(add-after 'install 'wrap-executable (add-after 'install 'wrap-executable
;; Ensure that icons are found at runtime. ;; Ensure that icons are found at runtime.
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
@ -137,8 +138,7 @@ (define-public orange
(wrap-program (string-append out "/bin/orange-canvas") (wrap-program (string-append out "/bin/orange-canvas")
`("QT_PLUGIN_PATH" prefix `("QT_PLUGIN_PATH" prefix
,(list (string-append (assoc-ref inputs "qtsvg") ,(list (string-append (assoc-ref inputs "qtsvg")
"/lib/qt5/plugins/"))))) "/lib/qt5/plugins/"))))))))))
#t)))))
(native-inputs (native-inputs
(list python-cython)) (list python-cython))
(inputs (inputs
@ -159,10 +159,12 @@ (define-public orange
python-orange-canvas-core python-orange-canvas-core
python-orange-widget-base python-orange-widget-base
python-pandas python-pandas
python-pygments
python-pyqt python-pyqt
python-pyqtgraph python-pyqtgraph
python-pyqtwebengine python-pyqtwebengine
python-pyyaml python-pyyaml
python-qtconsole
python-requests python-requests
python-scikit-learn python-scikit-learn
python-scipy python-scipy