2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
ipykernel,
|
|
|
|
jupyter-core,
|
|
|
|
jupyter-client,
|
|
|
|
pygments,
|
|
|
|
pyqt5,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyzmq,
|
|
|
|
qtpy,
|
|
|
|
setuptools,
|
|
|
|
traitlets,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qtconsole";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "5.5.2";
|
|
|
|
pyproject = true;
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-a1+xEnSyl0Y3Bq+E3LvVySJzsfYZ5tJdCIdLCohRaYk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2022-11-04 12:27:35 +00:00
|
|
|
ipykernel
|
2023-01-20 10:41:00 +00:00
|
|
|
jupyter-core
|
2022-11-04 12:27:35 +00:00
|
|
|
jupyter-client
|
|
|
|
pygments
|
|
|
|
pyqt5
|
|
|
|
pyzmq
|
|
|
|
qtpy
|
|
|
|
traitlets
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# : cannot connect to X server
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "qtconsole" ];
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Jupyter Qt console";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jupyter-qtconsole";
|
2022-11-04 12:27:35 +00:00
|
|
|
homepage = "https://qtconsole.readthedocs.io/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|