fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cloudpickle,
|
|
fetchPypi,
|
|
ipykernel,
|
|
ipython,
|
|
jupyter-client,
|
|
packaging,
|
|
pythonOlder,
|
|
pyxdg,
|
|
pyzmq,
|
|
wurlitzer,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "spyder-kernels";
|
|
version = "2.5.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-BQQqP5eyXxfN+o11AR/Xmq8CdSM0ip3/8PWiC92wubA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cloudpickle
|
|
ipykernel
|
|
ipython
|
|
jupyter-client
|
|
packaging
|
|
pyxdg
|
|
pyzmq
|
|
wurlitzer
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "ipykernel>=6.16.1,<7" "ipykernel" \
|
|
--replace "ipython>=7.31.1,<8" "ipython"
|
|
'';
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "spyder_kernels" ];
|
|
|
|
meta = with lib; {
|
|
description = "Jupyter kernels for Spyder's console";
|
|
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/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ gebner ];
|
|
};
|
|
}
|