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