python2Packages.spyder: fix build
This commit is contained in:
parent
9d304bd60b
commit
3ff3e2ce1f
2 changed files with 73 additions and 0 deletions
70
pkgs/development/python-modules/spyder/2.nix
Normal file
70
pkgs/development/python-modules/spyder/2.nix
Normal file
|
@ -0,0 +1,70 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, makeDesktopItem, jedi, pycodestyle,
|
||||
psutil, pyflakes, rope, numpy, scipy, matplotlib, pylint, keyring, numpydoc,
|
||||
qtconsole, qtawesome, nbconvert, mccabe, pyopengl, cloudpickle, pygments,
|
||||
spyder-kernels, qtpy, pyzmq, chardet
|
||||
, pyqtwebengine
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spyder";
|
||||
version = "3.3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1z7qw1h3rhca12ycv8xrzw6z2gf81v0j6lfq9kpwh472w4vk75v1";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring
|
||||
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels
|
||||
pygments qtpy pyzmq chardet pyqtwebengine
|
||||
];
|
||||
|
||||
# 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";
|
||||
categories = "Application;Development;Editor;IDE;";
|
||||
};
|
||||
|
||||
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
|
||||
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; {
|
||||
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.
|
||||
'';
|
||||
homepage = "https://github.com/spyder-ide/spyder/";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ gebner ];
|
||||
};
|
||||
}
|
|
@ -1462,6 +1462,9 @@ in {
|
|||
spyder-kernels = if isPy3k then callPackage ../development/python-modules/spyder-kernels {}
|
||||
else callPackage ../development/python-modules/spyder-kernels/2.nix {};
|
||||
|
||||
spyder = if isPy3k then callPackage ../development/python-modules/spyder {}
|
||||
else callPackage ../development/python-modules/spyder/2.nix {};
|
||||
|
||||
tenacity = callPackage ../development/python-modules/tenacity { };
|
||||
|
||||
tokenserver = callPackage ../development/python-modules/tokenserver {};
|
||||
|
|
Loading…
Reference in a new issue