mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
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.
This commit is contained in:
parent
be964d00ea
commit
aaa50d506e
|
@ -1,7 +1,7 @@
|
||||||
{ stdenv, fetchPypi, unzip, buildPythonApplication, makeDesktopItem
|
{ stdenv, fetchPypi, unzip, buildPythonApplication, makeDesktopItem
|
||||||
# mandatory
|
# mandatory
|
||||||
, qtpy, numpydoc, qtconsole, qtawesome, jedi, pycodestyle, psutil
|
, numpydoc, qtconsole, qtawesome, jedi, pycodestyle, psutil
|
||||||
, pyflakes, rope, sphinx, nbconvert, mccabe
|
, pyflakes, rope, sphinx, nbconvert, mccabe, pyopengl, cloudpickle
|
||||||
# optional
|
# optional
|
||||||
, numpy ? null, scipy ? null, matplotlib ? null
|
, numpy ? null, scipy ? null, matplotlib ? null
|
||||||
# optional
|
# optional
|
||||||
|
@ -11,16 +11,20 @@
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "spyder";
|
pname = "spyder";
|
||||||
version = "3.2.6";
|
version = "3.2.6";
|
||||||
namePrefix = "";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "87d6a4f5ee1aac4284461ee3584c3ade50cb53feb3fe35abebfdfb9be18c526a";
|
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 = [
|
propagatedBuildInputs = [
|
||||||
jedi pycodestyle psutil qtpy pyflakes rope numpy scipy matplotlib pylint
|
jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint
|
||||||
numpydoc qtconsole qtawesome nbconvert mccabe
|
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle
|
||||||
];
|
];
|
||||||
|
|
||||||
# There is no test for spyder
|
# There is no test for spyder
|
||||||
|
|
Loading…
Reference in a new issue