diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-02-04 10:17:35 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-02-04 10:17:35 +0100 |
commit | aaa50d506e7170a1681efa0d567e058ccc084783 (patch) | |
tree | 5fcdb0be9212c5769411adf8ed14c685ccbbc95e /pkgs/applications/science | |
parent | be964d00ea05aeba33cb45ec29a6662d263cfd71 (diff) | |
download | nixlib-aaa50d506e7170a1681efa0d567e058ccc084783.tar nixlib-aaa50d506e7170a1681efa0d567e058ccc084783.tar.gz nixlib-aaa50d506e7170a1681efa0d567e058ccc084783.tar.bz2 nixlib-aaa50d506e7170a1681efa0d567e058ccc084783.tar.lz nixlib-aaa50d506e7170a1681efa0d567e058ccc084783.tar.xz nixlib-aaa50d506e7170a1681efa0d567e058ccc084783.tar.zst nixlib-aaa50d506e7170a1681efa0d567e058ccc084783.zip |
python.pkgs.spyder: fix expression
Note I still get ``` This application failed to start because it could not find or load the Qt platform plugin "xcb" in "". ``` but that may be because I run it from the store which is not support for Qt5 applications.
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r-- | pkgs/applications/science/spyder/default.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/applications/science/spyder/default.nix b/pkgs/applications/science/spyder/default.nix index 3163c7cb40f5..04a5def81e69 100644 --- a/pkgs/applications/science/spyder/default.nix +++ b/pkgs/applications/science/spyder/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchPypi, unzip, buildPythonApplication, makeDesktopItem # mandatory -, qtpy, numpydoc, qtconsole, qtawesome, jedi, pycodestyle, psutil -, pyflakes, rope, sphinx, nbconvert, mccabe +, numpydoc, qtconsole, qtawesome, jedi, pycodestyle, psutil +, pyflakes, rope, sphinx, nbconvert, mccabe, pyopengl, cloudpickle # optional , numpy ? null, scipy ? null, matplotlib ? null # optional @@ -11,16 +11,20 @@ buildPythonApplication rec { pname = "spyder"; version = "3.2.6"; - namePrefix = ""; src = fetchPypi { inherit pname version; sha256 = "87d6a4f5ee1aac4284461ee3584c3ade50cb53feb3fe35abebfdfb9be18c526a"; }; + # Somehow setuptools can't find pyqt5. Maybe because the dist-info folder is missing? + postPatch = '' + substituteInPlace setup.py --replace 'pyqt5;python_version>="3"' ' ' + ''; + propagatedBuildInputs = [ - jedi pycodestyle psutil qtpy pyflakes rope numpy scipy matplotlib pylint - numpydoc qtconsole qtawesome nbconvert mccabe + jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint + numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle ]; # There is no test for spyder |