mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 10:24:07 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
58 lines
930 B
Nix
58 lines
930 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, ipykernel
|
|
, jupyter-core
|
|
, jupyter-client
|
|
, pygments
|
|
, pyqt5
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyzmq
|
|
, qtpy
|
|
, traitlets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qtconsole";
|
|
version = "5.4.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-V3SOov0mMgoLd626IBMc+7E4GMfJbYP6/LEQ/1X1izU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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";
|
|
homepage = "https://qtconsole.readthedocs.io/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ fridh ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|