python3Packages.jupyter_console: 6.5.1 -> 6.6.1
This commit is contained in:
parent
5a34938973
commit
2d9735c925
@ -1,45 +1,75 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, jupyter-client
|
||||
, ipython
|
||||
, pythonOlder
|
||||
, substituteAll
|
||||
, hatchling
|
||||
, ipykernel
|
||||
, ipython
|
||||
, jupyter-client
|
||||
, jupyter-core
|
||||
, prompt-toolkit
|
||||
, pygments
|
||||
, pythonOlder
|
||||
, pyzmq
|
||||
, traitlets
|
||||
, flaky
|
||||
, pexpect
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jupyter_console";
|
||||
version = "6.5.1";
|
||||
disabled = pythonOlder "3.5";
|
||||
version = "6.6.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-a5G3tuinFQU7U22yCaL0sCQp17KNsnNzpWomsL69Ygs=";
|
||||
sha256 = "sha256-WTEhLVy8H5Vvb9YVdVteFfOJqOqmlyiNu+Q3cBdhXsw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jupyter-client
|
||||
ipython
|
||||
ipykernel
|
||||
prompt-toolkit
|
||||
pygments
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
nativeCheckInputs = [ nose ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "prompt_toolkit>=2.0.0,<2.1.0" "prompt_toolkit"
|
||||
# use wrapped executable in tests
|
||||
substituteInPlace jupyter_console/tests/test_console.py \
|
||||
--replace "args = ['-m', 'jupyter_console', '--colors=NoColor']" "args = ['--colors=NoColor']" \
|
||||
--replace "cmd = sys.executable" "cmd = '${placeholder "out"}/bin/jupyter-console'" \
|
||||
--replace "check_output([sys.executable, '-m', 'jupyter_console'," "check_output(['${placeholder "out"}/bin/jupyter-console',"
|
||||
'';
|
||||
|
||||
# ValueError: underlying buffer has been detached
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = [
|
||||
ipykernel
|
||||
ipython
|
||||
jupyter-client
|
||||
jupyter-core
|
||||
prompt-toolkit
|
||||
pygments
|
||||
pyzmq
|
||||
traitlets
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"jupyter_console"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
flaky
|
||||
pexpect
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Jupyter terminal console";
|
||||
homepage = "https://jupyter.org/";
|
||||
homepage = "https://github.com/jupyter/jupyter_console";
|
||||
changelog = "https://github.com/jupyter/jupyter_console/releases/tag/v${version}";
|
||||
license = lib.licenses.bsd3;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user