2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, makeDesktopItem
|
|
|
|
, atomicwrites
|
|
|
|
, chardet
|
|
|
|
, cloudpickle
|
|
|
|
, cookiecutter
|
|
|
|
, diff-match-patch
|
|
|
|
, flake8
|
|
|
|
, intervaltree
|
|
|
|
, jedi
|
|
|
|
, jellyfish
|
|
|
|
, keyring
|
|
|
|
, matplotlib
|
|
|
|
, mccabe
|
|
|
|
, nbconvert
|
|
|
|
, numpy
|
|
|
|
, numpydoc
|
|
|
|
, psutil
|
|
|
|
, pygments
|
|
|
|
, pylint
|
|
|
|
, pyls-spyder
|
|
|
|
, pyopengl
|
|
|
|
, pyqtwebengine
|
|
|
|
, python-lsp-black
|
|
|
|
, python-lsp-server
|
|
|
|
, pyxdg
|
|
|
|
, pyzmq
|
|
|
|
, pycodestyle
|
|
|
|
, qdarkstyle
|
|
|
|
, qstylizer
|
|
|
|
, qtawesome
|
|
|
|
, qtconsole
|
|
|
|
, qtpy
|
|
|
|
, rope
|
|
|
|
, Rtree
|
|
|
|
, scipy
|
|
|
|
, spyder-kernels
|
|
|
|
, textdistance
|
|
|
|
, three-merge
|
|
|
|
, watchdog
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spyder";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "5.3.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-KJkamNMXr4Mi9Y6B7aKExoiqWKoExCFlELChCrQL6mQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
atomicwrites
|
|
|
|
chardet
|
|
|
|
cloudpickle
|
|
|
|
cookiecutter
|
|
|
|
diff-match-patch
|
|
|
|
flake8
|
|
|
|
intervaltree
|
|
|
|
jedi
|
|
|
|
jellyfish
|
|
|
|
keyring
|
|
|
|
matplotlib
|
|
|
|
mccabe
|
|
|
|
nbconvert
|
|
|
|
numpy
|
|
|
|
numpydoc
|
|
|
|
psutil
|
|
|
|
pygments
|
|
|
|
pylint
|
|
|
|
pyls-spyder
|
|
|
|
pyopengl
|
|
|
|
pyqtwebengine
|
|
|
|
python-lsp-black
|
|
|
|
python-lsp-server
|
|
|
|
pyxdg
|
|
|
|
pyzmq
|
|
|
|
pycodestyle
|
|
|
|
qdarkstyle
|
|
|
|
qstylizer
|
|
|
|
qtawesome
|
|
|
|
qtconsole
|
|
|
|
qtpy
|
|
|
|
rope
|
|
|
|
Rtree
|
|
|
|
scipy
|
|
|
|
spyder-kernels
|
|
|
|
textdistance
|
|
|
|
three-merge
|
|
|
|
watchdog
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# There is no test for spyder
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "Spyder";
|
|
|
|
exec = "spyder";
|
|
|
|
icon = "spyder";
|
|
|
|
comment = "Scientific Python Development Environment";
|
|
|
|
desktopName = "Spyder";
|
|
|
|
genericName = "Python IDE";
|
2022-03-05 16:20:37 +00:00
|
|
|
categories = [ "Development" "IDE" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# remove dependency on pyqtwebengine
|
|
|
|
# this is still part of the pyqt 5.11 version we have in nixpkgs
|
|
|
|
sed -i /pyqtwebengine/d setup.py
|
2020-09-25 04:45:31 +00:00
|
|
|
substituteInPlace setup.py \
|
2022-05-18 14:49:53 +00:00
|
|
|
--replace "ipython>=7.31.1,<8.0.0" "ipython"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# add Python libs to env so Spyder subprocesses
|
|
|
|
# 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
|
|
|
|
|
|
|
# Create desktop item
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
cp spyder/images/spyder.svg $out/share/icons
|
|
|
|
cp -r $desktopItem/share/applications/ $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Scientific python development environment";
|
|
|
|
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";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|