summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 b7efe5f818b..4bf09ce635a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19564,34 +19564,57 @@ Jupyter kernels such as IJulia and IRKernel.")
19564(define-public python-qtconsole 19564(define-public python-qtconsole
19565 (package 19565 (package
19566 (name "python-qtconsole") 19566 (name "python-qtconsole")
19567 (version "5.3.0") 19567 (version "5.6.1")
19568 (source 19568 (source
19569 (origin 19569 (origin
19570 (method url-fetch) 19570 (method url-fetch)
19571 (uri (pypi-uri "qtconsole" version)) 19571 (uri (pypi-uri "qtconsole" version))
19572 (sha256 19572 (sha256
19573 (base32 "09anp8g7vqi8z8wyi2lv21a2frd2dyhyrzvcrk2anijyqzyj0dcf")))) 19573 (base32 "1r8bznf8mlajh8rcrhikp694naq653nx4zw58f0yzlvmdiz1rbaw"))))
19574 (build-system python-build-system) 19574 (build-system pyproject-build-system)
19575 (arguments 19575 (arguments
19576 `(#:phases 19576 (list
19577 (modify-phases %standard-phases 19577 #:test-flags
19578 (add-before 'check 'pre-check 19578 ;; All tests fail with error: This plugin does not support
19579 (lambda _ 19579 ;; propagateSizeHints()
19580 (setenv "QT_QPA_PLATFORM" "offscreen") 19580 #~(list "--ignore=qtconsole/tests/test_00_console_widget.py"
19581 (setenv "HOME" "/tmp") 19581 ;; AssertionError: '<!DO[261 chars]size:12pt; font-weight:400;
19582 ;; FIXME: skip a failing test. 19582 ;; font-style:normal;[1218 chars]tml>' != '<!DO[261
19583 (substitute* "qtconsole/tests/test_jupyter_widget.py" 19583 ;; chars]size:9pt; font-weight:400; font-style:normal;"[1217
19584 (("def test_other_output") "def _test_other_output"))))))) 19584 ;; chars]tml>'Diff is 1756 characters long. Set self.maxDiff to
19585 (propagated-inputs 19585 ;; None to see it.
19586 (list python-ipykernel python-ipython-genutils python-jupyter-client 19586 "-k" "not test_other_output")
19587 python-jupyter-core python-pygments python-pyqt 19587 #:phases
19588 python-pyzmq python-qtpy python-traitlets)) 19588 #~(modify-phases %standard-phases
19589 (add-before 'check 'pre-check
19590 (lambda _
19591 (setenv "PYTEST_QT_API" "pyqt5")
19592 (setenv "QT_LIB" "pyqt5")
19593 (setenv "QT_QPA_PLATFORM" "offscreen")
19594 (system "Xvfb :1 -screen 0 640x480x24 &")
19595 (setenv "DISPLAY" ":1")
19596 (setenv "HOME" "/tmp"))))))
19589 (native-inputs 19597 (native-inputs
19590 (list python-flaky python-pytest python-pytest-qt)) 19598 (list python-flaky
19599 python-pyqt
19600 python-pytest
19601 python-pytest-qt
19602 python-setuptools
19603 python-wheel
19604 xorg-server-for-tests))
19605 (propagated-inputs
19606 (list python-ipykernel
19607 python-jupyter-client
19608 python-jupyter-core
19609 python-packaging
19610 python-pygments
19611 python-qtpy
19612 python-traitlets))
19591 (home-page "https://jupyter.org") 19613 (home-page "https://jupyter.org")
19592 (synopsis "Jupyter Qt console") 19614 (synopsis "Jupyter Qt console")
19593 (description "This package provides a Qt-based console for Jupyter with 19615 (description
19594support for rich media output.") 19616 "This package provides a Qt-based console for Jupyter with support for
19617rich media output.")
19595 (license license:bsd-3))) 19618 (license license:bsd-3)))
19596 19619
19597(define-public python-jsbeautifier 19620(define-public python-jsbeautifier