2016-02-19 13:12:11 +01:00
|
|
|
{ stdenv, fetchurl, unzip, buildPythonApplication, makeDesktopItem
|
2013-05-05 14:38:31 +02: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 13:13:45 +02:00
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
buildPythonApplication rec {
|
2015-08-08 22:02:12 +02:00
|
|
|
name = "spyder-${version}";
|
2015-12-01 17:43:53 +01:00
|
|
|
version = "2.3.8";
|
2013-05-05 13:13:45 +02:00
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-04-26 14:38:03 +02:00
|
|
|
url = "mirror://pypi/s/spyder/${name}.zip";
|
2015-12-01 17:43:53 +01:00
|
|
|
sha256 = "99fdae2cea325c0f2842c77bd67dd22db19fef3d9c0dde1545b1a2650eae517e";
|
2013-05-05 13:13:45 +02:00
|
|
|
};
|
|
|
|
|
2015-11-19 13:09:12 +01:00
|
|
|
# NOTE: sphinx makes the build fail with: ValueError: ZIP does not support timestamps before 1980
|
2013-05-05 14:38:31 +02:00
|
|
|
propagatedBuildInputs =
|
2015-11-19 13:09:12 +01:00
|
|
|
[ pyside pyflakes rope numpy scipy matplotlib ipython pylint pep8 ];
|
2013-05-05 13:13:45 +02:00
|
|
|
|
|
|
|
# There is no test for spyder
|
|
|
|
doCheck = false;
|
|
|
|
|
2013-05-05 13:27:28 +02: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 = ''
|
2015-11-19 13:09:12 +01:00
|
|
|
mkdir -p $out/share/{applications,icons}
|
|
|
|
cp $desktopItem/share/applications/* $out/share/applications/
|
|
|
|
cp spyderlib/images/spyder.svg $out/share/icons/
|
2013-05-05 13:27:28 +02:00
|
|
|
'';
|
|
|
|
|
2013-05-20 19:33:18 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Scientific python development environment";
|
2013-05-05 13:13:45 +02: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.
|
|
|
|
'';
|
2015-08-08 22:02:12 +02:00
|
|
|
homepage = https://github.com/spyder-ide/spyder/;
|
2013-05-20 19:33:18 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2013-05-05 13:13:45 +02:00
|
|
|
};
|
|
|
|
}
|