2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
atomicwrites,
|
|
|
|
chardet,
|
|
|
|
cloudpickle,
|
|
|
|
cookiecutter,
|
|
|
|
diff-match-patch,
|
|
|
|
intervaltree,
|
|
|
|
jedi,
|
|
|
|
jellyfish,
|
|
|
|
keyring,
|
|
|
|
matplotlib,
|
|
|
|
nbconvert,
|
|
|
|
numpy,
|
|
|
|
numpydoc,
|
|
|
|
pickleshare,
|
|
|
|
psutil,
|
|
|
|
pygments,
|
|
|
|
pylint-venv,
|
|
|
|
pyls-spyder,
|
|
|
|
pyopengl,
|
|
|
|
pyqtwebengine,
|
|
|
|
python-lsp-black,
|
|
|
|
python-lsp-server,
|
|
|
|
pyxdg,
|
|
|
|
pyzmq,
|
|
|
|
qdarkstyle,
|
|
|
|
qstylizer,
|
|
|
|
qtawesome,
|
|
|
|
qtconsole,
|
|
|
|
qtpy,
|
|
|
|
rope,
|
|
|
|
rtree,
|
|
|
|
scipy,
|
|
|
|
setuptools,
|
|
|
|
spyder-kernels,
|
|
|
|
textdistance,
|
|
|
|
three-merge,
|
|
|
|
watchdog,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spyder";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "5.5.5";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-Y+JZO/LfWi1QzoSSV1uDI4zxLcte0HwVMNmBK0aXgd4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
patches = [ ./dont-clear-pythonpath.patch ];
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2022-11-02 22:02:43 +00:00
|
|
|
pyqtwebengine.wrapQtAppsHook
|
2024-05-15 15:35:15 +00:00
|
|
|
setuptools
|
2022-11-02 22:02:43 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-05-18 14:49:53 +00:00
|
|
|
atomicwrites
|
|
|
|
chardet
|
|
|
|
cloudpickle
|
|
|
|
cookiecutter
|
|
|
|
diff-match-patch
|
|
|
|
intervaltree
|
|
|
|
jedi
|
|
|
|
jellyfish
|
|
|
|
keyring
|
|
|
|
matplotlib
|
|
|
|
nbconvert
|
|
|
|
numpy
|
|
|
|
numpydoc
|
2024-05-15 15:35:15 +00:00
|
|
|
pickleshare
|
2022-05-18 14:49:53 +00:00
|
|
|
psutil
|
|
|
|
pygments
|
2022-11-04 12:27:35 +00:00
|
|
|
pylint-venv
|
2022-05-18 14:49:53 +00:00
|
|
|
pyls-spyder
|
|
|
|
pyopengl
|
|
|
|
pyqtwebengine
|
|
|
|
python-lsp-black
|
|
|
|
python-lsp-server
|
|
|
|
pyxdg
|
|
|
|
pyzmq
|
|
|
|
qdarkstyle
|
|
|
|
qstylizer
|
|
|
|
qtawesome
|
|
|
|
qtconsole
|
|
|
|
qtpy
|
|
|
|
rope
|
2023-03-15 16:39:30 +00:00
|
|
|
rtree
|
2022-05-18 14:49:53 +00:00
|
|
|
scipy
|
|
|
|
spyder-kernels
|
|
|
|
textdistance
|
|
|
|
three-merge
|
|
|
|
watchdog
|
2022-11-02 22:02:43 +00:00
|
|
|
] ++ python-lsp-server.optional-dependencies.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# There is no test for spyder
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
2022-11-02 22:02:43 +00:00
|
|
|
# Add Python libs to env so Spyder subprocesses
|
2020-04-24 23:36:52 +00:00
|
|
|
# created to run compute kernels don't fail with ImportErrors
|
2021-01-15 22:18:51 +00:00
|
|
|
wrapProgram $out/bin/spyder --prefix PYTHONPATH : "$PYTHONPATH"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Scientific python development environment";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "spyder";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Spyder (previously known as Pydee) is a powerful interactive development
|
|
|
|
environment for the Python language with advanced editing, interactive
|
|
|
|
testing, debugging and introspection features.
|
|
|
|
'';
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://www.spyder-ide.org/";
|
|
|
|
downloadPage = "https://github.com/spyder-ide/spyder/releases";
|
|
|
|
changelog = "https://github.com/spyder-ide/spyder/blob/master/CHANGELOG.md";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ gebner ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|