spyder: convert to python modules

This commit is contained in:
Gabriel Ebner 2019-05-21 17:51:14 +02:00
parent f9b8ee3dd8
commit cca0aeeb68
4 changed files with 40 additions and 33 deletions

View file

@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchPypi, cloudpickle, ipykernel, wurlitzer }:
buildPythonPackage rec {
pname = "spyder-kernels";
version = "0.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "a13cefb569ef9f63814cb5fcf3d0db66e09d2d7e6cc68c703d5118b2d7ba062b";
};
propagatedBuildInputs = [
cloudpickle
ipykernel
wurlitzer
];
# No tests
doCheck = false;
meta = with stdenv.lib; {
description = "Jupyter kernels for Spyder's console";
homepage = "https://github.com/spyder-ide/spyder-kernels";
license = licenses.mit;
maintainers = with maintainers; [ gebner ];
};
}

View file

@ -1,42 +1,18 @@
{ stdenv, python3, makeDesktopItem }: { stdenv, buildPythonPackage, fetchPypi, makeDesktopItem, jedi, pycodestyle,
psutil, pyflakes, rope, numpy, scipy, matplotlib, pylint, keyring, numpydoc,
qtconsole, qtawesome, nbconvert, mccabe, pyopengl, cloudpickle,
spyder-kernels }:
let buildPythonPackage rec {
spyder-kernels = with python3.pkgs; buildPythonPackage rec {
pname = "spyder-kernels";
version = "0.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "a13cefb569ef9f63814cb5fcf3d0db66e09d2d7e6cc68c703d5118b2d7ba062b";
};
propagatedBuildInputs = [
cloudpickle
ipykernel
wurlitzer
];
# No tests
doCheck = false;
meta = {
description = "Jupyter kernels for Spyder's console";
homepage = https://github.com/spyder-ide/spyder-kernels;
license = stdenv.lib.licenses.mit;
};
};
in python3.pkgs.buildPythonApplication rec {
pname = "spyder"; pname = "spyder";
version = "3.3.3"; version = "3.3.3";
src = python3.pkgs.fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "ef31de03cf6f149077e64ed5736b8797dbd278e3c925e43f0bfc31bb55f6e5ba"; sha256 = "ef31de03cf6f149077e64ed5736b8797dbd278e3c925e43f0bfc31bb55f6e5ba";
}; };
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = [
jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels
]; ];
@ -68,8 +44,9 @@ in python3.pkgs.buildPythonApplication rec {
environment for the Python language with advanced editing, interactive environment for the Python language with advanced editing, interactive
testing, debugging and introspection features. testing, debugging and introspection features.
''; '';
homepage = https://github.com/spyder-ide/spyder/; homepage = "https://github.com/spyder-ide/spyder/";
license = licenses.mit; license = licenses.mit;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ gebner ];
}; };
} }

View file

@ -22869,7 +22869,7 @@ in
simgrid = callPackage ../applications/science/misc/simgrid { }; simgrid = callPackage ../applications/science/misc/simgrid { };
spyder = callPackage ../applications/science/spyder { }; spyder = with python3.pkgs; toPythonApplication spyder;
openspace = callPackage ../applications/science/astronomy/openspace { }; openspace = callPackage ../applications/science/astronomy/openspace { };

View file

@ -932,6 +932,9 @@ in {
sniffio = callPackage ../development/python-modules/sniffio { }; sniffio = callPackage ../development/python-modules/sniffio { };
spyder-kernels = callPackage ../development/python-modules/spyder-kernels {};
spyder = callPackage ../development/python-modules/spyder {};
tenacity = callPackage ../development/python-modules/tenacity { }; tenacity = callPackage ../development/python-modules/tenacity { };
tokenserver = callPackage ../development/python-modules/tokenserver {}; tokenserver = callPackage ../development/python-modules/tokenserver {};