mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
60 lines
1.8 KiB
Nix
60 lines
1.8 KiB
Nix
{ 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 }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "spyder";
|
|
version = "3.3.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1fa5yhw0sjk5qydydp76scyxd8lvyciknq0vajnq0mxhhvfig3ra";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring
|
|
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels
|
|
pygments qtpy pyzmq chardet
|
|
];
|
|
|
|
# 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
|
|
'';
|
|
|
|
# Create desktop item
|
|
postInstall = ''
|
|
mkdir -p $out/share/icons
|
|
cp spyder/images/spyder.svg $out/share/icons
|
|
cp -r $desktopItem/share/applications/ $out/share
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|