python3Packages.spyder_3: remove broken application

Previously this had makeDesktopItem defined in it. Some recent tests
enabled for this option made it fail. It's no longer used as an
application (see the main spyder attribute for that), so all application
aspects have been removed.
This commit is contained in:
Marcus Boyd 2020-05-06 16:01:17 +09:30 committed by Frederik Rietdijk
parent 927e51066d
commit 026073e57e

View File

@ -1,62 +1,38 @@
{ stdenv, buildPythonPackage, fetchPypi, makeDesktopItem, jedi, pycodestyle, { stdenv, buildPythonPackage, fetchFromGitHub, jedi, pycodestyle,
psutil, pyflakes, rope, numpy, scipy, matplotlib, pylint, keyring, numpydoc, psutil, pyflakes, rope, pylint, keyring, numpydoc,
qtconsole, qtawesome, nbconvert, mccabe, pyopengl, cloudpickle, pygments, qtconsole, qtawesome, nbconvert, mccabe, pyopengl, cloudpickle, pygments,
spyder-kernels_0_5, qtpy, pyzmq, chardet spyder-kernels_0_5, qtpy, pyzmq, chardet, pyqtwebengine
, pyqtwebengine
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "spyder"; pname = "spyder";
version = "3.3.6"; version = "3.3.6";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "spyder-ide";
sha256 = "1z7qw1h3rhca12ycv8xrzw6z2gf81v0j6lfq9kpwh472w4vk75v1"; repo = "spyder";
rev = "v3.3.6";
sha256 = "1sk9xajhzpklk5bcbdhpfhx3gxhyrahsmj9bv2m6kvbqxdlx6bq6";
}; };
nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ];
propagatedBuildInputs = [ propagatedBuildInputs = [
jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring jedi pycodestyle psutil pyflakes rope pylint keyring numpydoc
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels_0_5 qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels_0_5
pygments qtpy pyzmq chardet pyqtwebengine pygments qtpy pyzmq chardet pyqtwebengine
]; ];
# There is no test for spyder # tests fail with a segfault
doCheck = false; doCheck = false;
desktopItem = makeDesktopItem {
name = "Spyder";
exec = "spyder";
icon = "spyder";
comment = "Scientific Python Development Environment";
desktopName = "Spyder";
genericName = "Python IDE";
categories = "Application;Development;Editor;IDE;";
};
postPatch = '' postPatch = ''
# remove dependency on pyqtwebengine # remove dependency on pyqtwebengine
# this is still part of the pyqt 5.11 version we have in nixpkgs # this is still part of the pyqt 5.13 version we have in nixpkgs
sed -i /pyqtwebengine/d setup.py sed -i /pyqtwebengine/d setup.py
substituteInPlace setup.py --replace "pyqt5<5.13" "pyqt5" substituteInPlace setup.py --replace "pyqt5<5.13" "pyqt5"
''; '';
# Create desktop item
postInstall = ''
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[@]}")
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Scientific python development environment"; description = "Library providing a scientific python development environment";
longDescription = '' longDescription = ''
Spyder (previously known as Pydee) is a powerful interactive development Spyder (previously known as Pydee) is a powerful interactive development
environment for the Python language with advanced editing, interactive environment for the Python language with advanced editing, interactive
@ -65,6 +41,6 @@ buildPythonPackage rec {
homepage = "https://github.com/spyder-ide/spyder/"; homepage = "https://github.com/spyder-ide/spyder/";
license = licenses.mit; license = licenses.mit;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ gebner ]; maintainers = with maintainers; [ gebner marcus7070 ];
}; };
} }