2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cloudpickle
|
|
|
|
, fetchPypi
|
|
|
|
, ipykernel
|
|
|
|
, ipython
|
|
|
|
, jupyter-client
|
|
|
|
, packaging
|
|
|
|
, pythonOlder
|
|
|
|
, pyxdg
|
|
|
|
, pyzmq
|
|
|
|
, wurlitzer
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spyder-kernels";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "2.4.3";
|
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;
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-0aNkq4nacW2RZxup2J748ZZgaLug5HB5ekiWU4KcqvM=";
|
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;
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"spyder_kernels"
|
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
changelog = "https://github.com/spyder-ide/spyder-kernels/blob/master/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|