2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
ipykernel,
|
|
|
|
jupyter-core,
|
|
|
|
jupyter-client,
|
|
|
|
pygments,
|
|
|
|
pyqt5,
|
|
|
|
qtpy,
|
|
|
|
traitlets,
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qtconsole";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "5.6.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2022-11-04 12:27:35 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jupyter";
|
|
|
|
repo = "qtconsole";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-V82tGAmpvfGeUoewtJXXsBBXx2HNcV9/IMJxJg3bJL8=";
|
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
|
|
|
|
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
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
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/";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://qtconsole.readthedocs.io/en/stable/changelog.html#changes-in-jupyter-qt-console";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|