2013-05-05 12:27:28 +01:00
|
|
|
{ stdenv, fetchurl, unzip, buildPythonPackage, makeDesktopItem
|
2013-05-05 13:38:31 +01:00
|
|
|
# mandatory
|
|
|
|
, pyside
|
|
|
|
# recommended
|
|
|
|
, pyflakes ? null, rope ? null, sphinx ? null, numpy ? null, scipy ? null, matplotlib ? null
|
|
|
|
# optional
|
|
|
|
, ipython ? null, pylint ? null, pep8 ? null
|
|
|
|
}:
|
2013-05-05 12:13:45 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2013-11-22 22:56:17 +00:00
|
|
|
name = "spyder-2.2.5";
|
2013-05-05 12:13:45 +01:00
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://spyderlib.googlecode.com/files/${name}.zip";
|
2013-11-22 22:56:17 +00:00
|
|
|
sha256 = "1bxc5qs2bqc21s6kxljsfxnmwgrgnyjfr9mkwzg9njpqsran3bp2";
|
2013-05-05 12:13:45 +01:00
|
|
|
};
|
|
|
|
|
2013-05-05 13:38:31 +01:00
|
|
|
buildInputs = [ unzip ];
|
|
|
|
propagatedBuildInputs =
|
|
|
|
[ pyside pyflakes rope sphinx numpy scipy matplotlib ipython pylint pep8 ];
|
2013-05-05 12:13:45 +01:00
|
|
|
|
|
|
|
# There is no test for spyder
|
|
|
|
doCheck = false;
|
|
|
|
|
2013-05-05 12:27:28 +01:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "Spyder";
|
|
|
|
exec = "spyder";
|
|
|
|
icon = "spyder";
|
|
|
|
comment = "Scientific Python Development Environment";
|
|
|
|
desktopName = "Spyder";
|
|
|
|
genericName = "Python IDE";
|
|
|
|
categories = "Application;Development;Editor;IDE;";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Create desktop item
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp $desktopItem/share/applications/* $out/share/applications/
|
|
|
|
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
cp spyderlib/images/spyder.svg $out/share/icons/
|
|
|
|
'';
|
|
|
|
|
2013-05-20 18:33:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Scientific python development environment";
|
2013-05-05 12:13:45 +01: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.
|
|
|
|
'';
|
|
|
|
homepage = https://code.google.com/p/spyderlib/;
|
2013-05-20 18:33:18 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2014-01-02 16:53:57 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-05-05 12:13:45 +01:00
|
|
|
};
|
|
|
|
}
|