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