2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cloudpickle,
|
|
|
|
fetchPypi,
|
|
|
|
ipykernel,
|
|
|
|
ipython,
|
|
|
|
jupyter-client,
|
|
|
|
packaging,
|
|
|
|
pythonOlder,
|
|
|
|
pyxdg,
|
|
|
|
pyzmq,
|
|
|
|
wurlitzer,
|
2022-11-04 12:27:35 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spyder-kernels";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.5.1";
|
2022-11-04 12:27:35 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-BQQqP5eyXxfN+o11AR/Xmq8CdSM0ip3/8PWiC92wubA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cloudpickle
|
|
|
|
ipykernel
|
2022-11-04 12:27:35 +00:00
|
|
|
ipython
|
2021-10-28 06:52:43 +00:00
|
|
|
jupyter-client
|
2022-11-04 12:27:35 +00:00
|
|
|
packaging
|
|
|
|
pyxdg
|
2020-04-24 23:36:52 +00:00
|
|
|
pyzmq
|
2022-11-04 12:27:35 +00:00
|
|
|
wurlitzer
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
postPatch = ''
|
2022-11-04 12:27:35 +00:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "ipykernel>=6.16.1,<7" "ipykernel" \
|
|
|
|
--replace "ipython>=7.31.1,<8" "ipython"
|
2022-05-18 14:49:53 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "spyder_kernels" ];
|
2022-11-04 12:27:35 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Jupyter kernels for Spyder's console";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://docs.spyder-ide.org/current/ipythonconsole.html";
|
|
|
|
downloadPage = "https://github.com/spyder-ide/spyder-kernels/releases";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/spyder-ide/spyder-kernels/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|