depot/third_party/nixpkgs/pkgs/development/python-modules/qtconsole/default.nix

63 lines
1.1 KiB
Nix
Raw Normal View History

{
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 ];
};
}