mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-qtconsole: Update to 5.6.1.
* gnu/packages/python-xyz.scm (python-qtconsole): Update to 5.6.1. Fix build. [build-system]: Switch to pyproject. [propagated-inputs]: Remove python-ipython-genutils, python-pyqt, and python-pyzmq; add python-packaging. [native-inputs]: Add python-pyqt, python-setuptools, python-wheel, and xorg-server-for-tests. Change-Id: I19833b507dfc5245bc9424c629c11f2df4024dd2
This commit is contained in:
parent
201d30fb4f
commit
3f5a6dc5f0
1 changed files with 42 additions and 19 deletions
|
@ -19564,34 +19564,57 @@ Jupyter kernels such as IJulia and IRKernel.")
|
||||||
(define-public python-qtconsole
|
(define-public python-qtconsole
|
||||||
(package
|
(package
|
||||||
(name "python-qtconsole")
|
(name "python-qtconsole")
|
||||||
(version "5.3.0")
|
(version "5.6.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "qtconsole" version))
|
(uri (pypi-uri "qtconsole" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "09anp8g7vqi8z8wyi2lv21a2frd2dyhyrzvcrk2anijyqzyj0dcf"))))
|
(base32 "1r8bznf8mlajh8rcrhikp694naq653nx4zw58f0yzlvmdiz1rbaw"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags
|
||||||
(add-before 'check 'pre-check
|
;; All tests fail with error: This plugin does not support
|
||||||
(lambda _
|
;; propagateSizeHints()
|
||||||
(setenv "QT_QPA_PLATFORM" "offscreen")
|
#~(list "--ignore=qtconsole/tests/test_00_console_widget.py"
|
||||||
(setenv "HOME" "/tmp")
|
;; AssertionError: '<!DO[261 chars]size:12pt; font-weight:400;
|
||||||
;; FIXME: skip a failing test.
|
;; font-style:normal;[1218 chars]tml>' != '<!DO[261
|
||||||
(substitute* "qtconsole/tests/test_jupyter_widget.py"
|
;; chars]size:9pt; font-weight:400; font-style:normal;"[1217
|
||||||
(("def test_other_output") "def _test_other_output")))))))
|
;; chars]tml>'Diff is 1756 characters long. Set self.maxDiff to
|
||||||
(propagated-inputs
|
;; None to see it.
|
||||||
(list python-ipykernel python-ipython-genutils python-jupyter-client
|
"-k" "not test_other_output")
|
||||||
python-jupyter-core python-pygments python-pyqt
|
#:phases
|
||||||
python-pyzmq python-qtpy python-traitlets))
|
#~(modify-phases %standard-phases
|
||||||
|
(add-before 'check 'pre-check
|
||||||
|
(lambda _
|
||||||
|
(setenv "PYTEST_QT_API" "pyqt5")
|
||||||
|
(setenv "QT_LIB" "pyqt5")
|
||||||
|
(setenv "QT_QPA_PLATFORM" "offscreen")
|
||||||
|
(system "Xvfb :1 -screen 0 640x480x24 &")
|
||||||
|
(setenv "DISPLAY" ":1")
|
||||||
|
(setenv "HOME" "/tmp"))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-flaky python-pytest python-pytest-qt))
|
(list python-flaky
|
||||||
|
python-pyqt
|
||||||
|
python-pytest
|
||||||
|
python-pytest-qt
|
||||||
|
python-setuptools
|
||||||
|
python-wheel
|
||||||
|
xorg-server-for-tests))
|
||||||
|
(propagated-inputs
|
||||||
|
(list python-ipykernel
|
||||||
|
python-jupyter-client
|
||||||
|
python-jupyter-core
|
||||||
|
python-packaging
|
||||||
|
python-pygments
|
||||||
|
python-qtpy
|
||||||
|
python-traitlets))
|
||||||
(home-page "https://jupyter.org")
|
(home-page "https://jupyter.org")
|
||||||
(synopsis "Jupyter Qt console")
|
(synopsis "Jupyter Qt console")
|
||||||
(description "This package provides a Qt-based console for Jupyter with
|
(description
|
||||||
support for rich media output.")
|
"This package provides a Qt-based console for Jupyter with support for
|
||||||
|
rich media output.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public python-jsbeautifier
|
(define-public python-jsbeautifier
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue