spyder: add recommended and optional dependencies

Spyder says about itself that it has

  ...the support of IPython (enhanced interactive Python interpreter) and
  popular Python libraries such as NumPy (linear algebra), SciPy (signal
  and image processing) or matplotlib (interactive 2D/3D plotting).

So I think having those available as default is a the right thing to to.
(We can easily make a stripped down spyder expression if needed later.)

I've added the list of recommended and optional dependencies as
described here:

  http://pythonhosted.org/spyder/installation.html#dependencies
This commit is contained in:
Bjørn Forsman 2013-05-05 14:38:31 +02:00
parent 9a08612286
commit 78169ec020
2 changed files with 13 additions and 4 deletions

View File

@ -1,4 +1,11 @@
{ stdenv, fetchurl, buildPythonPackage, unzip, sphinx, pyside }: { stdenv, fetchurl, unzip, buildPythonPackage
# mandatory
, pyside
# recommended
, pyflakes ? null, rope ? null, sphinx ? null, numpy ? null, scipy ? null, matplotlib ? null
# optional
, ipython ? null, pylint ? null, pep8 ? null
}:
buildPythonPackage rec { buildPythonPackage rec {
name = "spyder-2.1.13.1"; name = "spyder-2.1.13.1";
@ -9,8 +16,9 @@ buildPythonPackage rec {
sha256 = "1sg88shvw6k2v5428k13mah4pyqng43856rzr6ypz5qgwn0677ya"; sha256 = "1sg88shvw6k2v5428k13mah4pyqng43856rzr6ypz5qgwn0677ya";
}; };
buildInputs = [ unzip sphinx ]; buildInputs = [ unzip ];
propagatedBuildInputs = [ pyside ]; propagatedBuildInputs =
[ pyside pyflakes rope sphinx numpy scipy matplotlib ipython pylint pep8 ];
# There is no test for spyder # There is no test for spyder
doCheck = false; doCheck = false;

View File

@ -8721,7 +8721,8 @@ let
gravit = callPackage ../applications/science/astronomy/gravit { }; gravit = callPackage ../applications/science/astronomy/gravit { };
spyder = callPackage ../applications/science/spyder { spyder = callPackage ../applications/science/spyder {
inherit (pythonPackages) sphinx; inherit (pythonPackages) pyflakes rope sphinx numpy scipy matplotlib; # recommended
inherit (pythonPackages) ipython pylint pep8; # optional
}; };
stellarium = callPackage ../applications/science/astronomy/stellarium { }; stellarium = callPackage ../applications/science/astronomy/stellarium { };