2016-02-19 12:12:11 +00:00
|
|
|
{ stdenv, fetchurl, unzip, buildPythonApplication, 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
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
buildPythonApplication rec {
|
2015-08-08 21:02:12 +01:00
|
|
|
name = "spyder-${version}";
|
2015-12-01 16:43:53 +00:00
|
|
|
version = "2.3.8";
|
2013-05-05 12:13:45 +01:00
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-04-26 13:38:03 +01:00
|
|
|
url = "mirror://pypi/s/spyder/${name}.zip";
|
2015-12-01 16:43:53 +00:00
|
|
|
sha256 = "99fdae2cea325c0f2842c77bd67dd22db19fef3d9c0dde1545b1a2650eae517e";
|
2013-05-05 12:13:45 +01:00
|
|
|
};
|
|
|
|
|
2015-11-19 12:09:12 +00:00
|
|
|
# NOTE: sphinx makes the build fail with: ValueError: ZIP does not support timestamps before 1980
|
2013-05-05 13:38:31 +01:00
|
|
|
propagatedBuildInputs =
|
2015-11-19 12:09:12 +00:00
|
|
|
[ pyside pyflakes rope 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 = ''
|
2015-11-19 12:09:12 +00: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 12:27:28 +01:00
|
|
|
'';
|
|
|
|
|
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.
|
|
|
|
'';
|
2015-08-08 21:02:12 +01:00
|
|
|
homepage = https://github.com/spyder-ide/spyder/;
|
2013-05-20 18:33:18 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2015-09-09 14:25:49 +01:00
|
|
|
maintainers = with maintainers; [ bjornfor fridh ];
|
2013-05-05 12:13:45 +01:00
|
|
|
};
|
|
|
|
}
|