Merge pull request #507 from bjornfor/spyder
Spyder: add dependencies to make it more featured and make a desktop item
This commit is contained in:
commit
008308168f
@ -1,4 +1,11 @@
|
|||||||
{ stdenv, fetchurl, buildPythonPackage, unzip, sphinx, pyside }:
|
{ stdenv, fetchurl, unzip, buildPythonPackage, makeDesktopItem
|
||||||
|
# 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,12 +16,32 @@ 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;
|
||||||
|
|
||||||
|
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/
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Scientific PYthon Development EnviRonment (SPYDER)";
|
description = "Scientific PYthon Development EnviRonment (SPYDER)";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -8723,7 +8723,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 { };
|
||||||
|
Loading…
Reference in New Issue
Block a user