1{ lib
2, buildPythonPackage
3, fetchPypi
4, ipykernel
5, jupyter-core
6, jupyter-client
7, ipython-genutils
8, pygments
9, pyqt5
10, pytestCheckHook
11, pythonOlder
12, pyzmq
13, qtpy
14, traitlets
15}:
16
17buildPythonPackage rec {
18 pname = "qtconsole";
19 version = "5.4.4";
20 format = "setuptools";
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-t/+1PXTyPO4p9M21Xdb6vI7DEtlPPEa6OOHd5FhpPfs=";
27 };
28
29 propagatedBuildInputs = [
30 ipykernel
31 ipython-genutils
32 jupyter-core
33 jupyter-client
34 pygments
35 pyqt5
36 pyzmq
37 qtpy
38 traitlets
39 ];
40
41 nativeCheckInputs = [
42 pytestCheckHook
43 ];
44
45 # : cannot connect to X server
46 doCheck = false;
47
48 pythonImportsCheck = [
49 "qtconsole"
50 ];
51
52 meta = with lib; {
53 description = "Jupyter Qt console";
54 homepage = "https://qtconsole.readthedocs.io/";
55 license = licenses.bsd3;
56 maintainers = with maintainers; [ fridh ];
57 platforms = platforms.unix;
58 };
59}