f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
57 lines
959 B
Nix
57 lines
959 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
ipykernel,
|
|
jupyter-core,
|
|
jupyter-client,
|
|
pygments,
|
|
pyqt5,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pyzmq,
|
|
qtpy,
|
|
setuptools,
|
|
traitlets,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qtconsole";
|
|
version = "5.5.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-a1+xEnSyl0Y3Bq+E3LvVySJzsfYZ5tJdCIdLCohRaYk=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
ipykernel
|
|
jupyter-core
|
|
jupyter-client
|
|
pygments
|
|
pyqt5
|
|
pyzmq
|
|
qtpy
|
|
traitlets
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
# : cannot connect to X server
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "qtconsole" ];
|
|
|
|
meta = with lib; {
|
|
description = "Jupyter Qt console";
|
|
mainProgram = "jupyter-qtconsole";
|
|
homepage = "https://qtconsole.readthedocs.io/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|