aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-04-24 13:23:54 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-04-24 13:24:03 +0100
commit3f5a6dc5f059aeb9ba8a26cb140dadfa183337f6 (patch)
tree27b398f894004997f77a38379388706e96238a73
parent201d30fb4fc6af098b26e6711eed9945a6aaa421 (diff)
downloadguix-3f5a6dc5f059aeb9ba8a26cb140dadfa183337f6.tar.gz
guix-3f5a6dc5f059aeb9ba8a26cb140dadfa183337f6.zip
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
-rw-r--r--gnu/packages/python-xyz.scm61
1 files changed, 42 insertions, 19 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b7efe5f818..4bf09ce635 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19564,34 +19564,57 @@ Jupyter kernels such as IJulia and IRKernel.")
(define-public python-qtconsole
(package
(name "python-qtconsole")
- (version "5.3.0")
+ (version "5.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "qtconsole" version))
(sha256
- (base32 "09anp8g7vqi8z8wyi2lv21a2frd2dyhyrzvcrk2anijyqzyj0dcf"))))
- (build-system python-build-system)
+ (base32 "1r8bznf8mlajh8rcrhikp694naq653nx4zw58f0yzlvmdiz1rbaw"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'pre-check
- (lambda _
- (setenv "QT_QPA_PLATFORM" "offscreen")
- (setenv "HOME" "/tmp")
- ;; FIXME: skip a failing test.
- (substitute* "qtconsole/tests/test_jupyter_widget.py"
- (("def test_other_output") "def _test_other_output")))))))
- (propagated-inputs
- (list python-ipykernel python-ipython-genutils python-jupyter-client
- python-jupyter-core python-pygments python-pyqt
- python-pyzmq python-qtpy python-traitlets))
+ (list
+ #:test-flags
+ ;; All tests fail with error: This plugin does not support
+ ;; propagateSizeHints()
+ #~(list "--ignore=qtconsole/tests/test_00_console_widget.py"
+ ;; AssertionError: '<!DO[261 chars]size:12pt; font-weight:400;
+ ;; font-style:normal;[1218 chars]tml>' != '<!DO[261
+ ;; chars]size:9pt; font-weight:400; font-style:normal;"[1217
+ ;; chars]tml>'Diff is 1756 characters long. Set self.maxDiff to
+ ;; None to see it.
+ "-k" "not test_other_output")
+ #:phases
+ #~(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
- (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")
(synopsis "Jupyter Qt console")
- (description "This package provides a Qt-based console for Jupyter with
-support for rich media output.")
+ (description
+ "This package provides a Qt-based console for Jupyter with support for
+rich media output.")
(license license:bsd-3)))
(define-public python-jsbeautifier