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