2022-11-06 18:32:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cloudpickle
|
|
|
|
, fetchPypi
|
|
|
|
, ipykernel
|
|
|
|
, ipython
|
|
|
|
, jupyter-client
|
|
|
|
, packaging
|
|
|
|
, pythonOlder
|
|
|
|
, pyxdg
|
|
|
|
, pyzmq
|
|
|
|
, wurlitzer
|
|
|
|
}:
|
2019-05-21 15:51:14 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spyder-kernels";
|
2023-04-09 18:21:38 +00:00
|
|
|
version = "2.4.3";
|
2022-11-06 18:32:38 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-05-21 15:51:14 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-09 18:21:38 +00:00
|
|
|
hash = "sha256-0aNkq4nacW2RZxup2J748ZZgaLug5HB5ekiWU4KcqvM=";
|
2019-05-21 15:51:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cloudpickle
|
|
|
|
ipykernel
|
2022-11-06 18:32:38 +00:00
|
|
|
ipython
|
2021-10-15 10:33:48 +00:00
|
|
|
jupyter-client
|
2022-11-06 18:32:38 +00:00
|
|
|
packaging
|
|
|
|
pyxdg
|
2019-05-21 15:57:25 +00:00
|
|
|
pyzmq
|
2022-11-06 18:32:38 +00:00
|
|
|
wurlitzer
|
2019-05-21 15:51:14 +00:00
|
|
|
];
|
|
|
|
|
2022-05-05 19:32:52 +00:00
|
|
|
postPatch = ''
|
2022-11-06 18:32:38 +00:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "ipykernel>=6.16.1,<7" "ipykernel" \
|
|
|
|
--replace "ipython>=7.31.1,<8" "ipython"
|
2022-05-05 19:32:52 +00:00
|
|
|
'';
|
|
|
|
|
2019-05-21 15:51:14 +00:00
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-11-06 18:32:38 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"spyder_kernels"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-21 15:51:14 +00:00
|
|
|
description = "Jupyter kernels for Spyder's console";
|
2020-09-21 03:22:21 +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";
|
2019-05-21 15:51:14 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|