1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 ipykernel,
11 jupyter-core,
12 jupyter-client,
13 pygments,
14 pyqt5,
15 qtpy,
16 traitlets,
17
18 # tests
19 pytestCheckHook,
20}:
21
22buildPythonPackage rec {
23 pname = "qtconsole";
24 version = "5.7.0";
25 pyproject = true;
26
27 src = fetchFromGitHub {
28 owner = "jupyter";
29 repo = "qtconsole";
30 tag = version;
31 hash = "sha256-UbtPVVWehb30lidBNrmsQATEd0DBfn8xCPB9ALzDjiI=";
32 };
33
34 build-system = [ setuptools ];
35
36 dependencies = [
37 ipykernel
38 jupyter-core
39 jupyter-client
40 pygments
41 pyqt5
42 qtpy
43 traitlets
44 ];
45
46 nativeCheckInputs = [ pytestCheckHook ];
47
48 # : cannot connect to X server
49 doCheck = false;
50
51 pythonImportsCheck = [ "qtconsole" ];
52
53 meta = {
54 description = "Jupyter Qt console";
55 mainProgram = "jupyter-qtconsole";
56 homepage = "https://qtconsole.readthedocs.io/";
57 changelog = "https://qtconsole.readthedocs.io/en/stable/changelog.html#changes-in-jupyter-qt-console";
58 license = lib.licenses.bsd3;
59 platforms = lib.platforms.unix;
60 maintainers = with lib.maintainers; [ GaetanLepage ];
61 };
62}