1{ lib, buildPythonPackage, fetchFromGitHub, jedi, pycodestyle,
2 psutil, pyflakes, rope, pylint, keyring, numpydoc,
3 qtconsole, qtawesome, nbconvert, mccabe, pyopengl, cloudpickle, pygments,
4 spyder-kernels_0_5, qtpy, pyzmq, chardet, pyqtwebengine
5}:
6
7buildPythonPackage rec {
8 pname = "spyder";
9 version = "3.3.6";
10
11 src = fetchFromGitHub {
12 owner = "spyder-ide";
13 repo = "spyder";
14 rev = "v3.3.6";
15 sha256 = "1sk9xajhzpklk5bcbdhpfhx3gxhyrahsmj9bv2m6kvbqxdlx6bq6";
16 };
17
18 propagatedBuildInputs = [
19 jedi pycodestyle psutil pyflakes rope pylint keyring numpydoc
20 qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels_0_5
21 pygments qtpy pyzmq chardet pyqtwebengine
22 ];
23
24 # tests fail with a segfault
25 doCheck = false;
26
27 postPatch = ''
28 # remove dependency on pyqtwebengine
29 # this is still part of the pyqt 5.13 version we have in nixpkgs
30 sed -i /pyqtwebengine/d setup.py
31 substituteInPlace setup.py --replace "pyqt5<5.13" "pyqt5"
32 '';
33
34 pythonImportsCheck = [ "spyder" ];
35
36 meta = with lib; {
37 description = "Library providing a scientific python development environment";
38 longDescription = ''
39 Spyder (previously known as Pydee) is a powerful interactive development
40 environment for the Python language with advanced editing, interactive
41 testing, debugging and introspection features.
42 '';
43 homepage = "https://github.com/spyder-ide/spyder/";
44 license = licenses.mit;
45 platforms = platforms.linux;
46 maintainers = with maintainers; [ gebner marcus7070 ];
47 };
48}