159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
ipykernel,
|
|
jupyter-core,
|
|
jupyter-client,
|
|
pygments,
|
|
pyqt5,
|
|
qtpy,
|
|
traitlets,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qtconsole";
|
|
version = "5.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jupyter";
|
|
repo = "qtconsole";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-V82tGAmpvfGeUoewtJXXsBBXx2HNcV9/IMJxJg3bJL8=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
ipykernel
|
|
jupyter-core
|
|
jupyter-client
|
|
pygments
|
|
pyqt5
|
|
qtpy
|
|
traitlets
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
# : cannot connect to X server
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "qtconsole" ];
|
|
|
|
meta = {
|
|
description = "Jupyter Qt console";
|
|
mainProgram = "jupyter-qtconsole";
|
|
homepage = "https://qtconsole.readthedocs.io/";
|
|
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 ];
|
|
};
|
|
}
|