spyder: fix build

Add missing dependencies, update disable
main
Drew Risinger 2 years ago committed by Jonathan Ringer
parent 334143a57e
commit b4fd88d9fa
  1. 102
      pkgs/development/python-modules/spyder/default.nix

@ -1,16 +1,54 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, makeDesktopItem, intervaltree, { lib
jedi, pycodestyle, psutil, rope, numpy, scipy, matplotlib, pylint, , buildPythonPackage
keyring, numpydoc, qtconsole, qtawesome, nbconvert, mccabe, pyopengl, , fetchPypi
cloudpickle, pygments, spyder-kernels, qtpy, pyzmq, chardet, qdarkstyle, , pythonOlder
watchdog, python-language-server, pyqtwebengine, atomicwrites, pyxdg, , makeDesktopItem
diff-match-patch, three-merge, pyls-black, pyls-spyder, flake8, textdistance , atomicwrites
, chardet
, cloudpickle
, cookiecutter
, diff-match-patch
, flake8
, intervaltree
, jedi
, jellyfish
, keyring
, matplotlib
, mccabe
, nbconvert
, numpy
, numpydoc
, psutil
, pygments
, pylint
, pyls-spyder
, pyopengl
, pyqtwebengine
, python-lsp-black
, python-lsp-server
, pyxdg
, pyzmq
, pycodestyle
, qdarkstyle
, qstylizer
, qtawesome
, qtconsole
, qtpy
, rope
, Rtree
, scipy
, spyder-kernels
, textdistance
, three-merge
, watchdog
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "spyder"; pname = "spyder";
version = "5.3.0"; version = "5.3.0";
disabled = isPy27; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -20,11 +58,44 @@ buildPythonPackage rec {
nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ]; nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ];
propagatedBuildInputs = [ propagatedBuildInputs = [
intervaltree jedi pycodestyle psutil rope numpy scipy matplotlib pylint keyring atomicwrites
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels chardet
pygments qtpy pyzmq chardet pyqtwebengine qdarkstyle watchdog python-language-server cloudpickle
atomicwrites pyxdg diff-match-patch three-merge pyls-black pyls-spyder cookiecutter
flake8 textdistance diff-match-patch
flake8
intervaltree
jedi
jellyfish
keyring
matplotlib
mccabe
nbconvert
numpy
numpydoc
psutil
pygments
pylint
pyls-spyder
pyopengl
pyqtwebengine
python-lsp-black
python-lsp-server
pyxdg
pyzmq
pycodestyle
qdarkstyle
qstylizer
qtawesome
qtconsole
qtpy
rope
Rtree
scipy
spyder-kernels
textdistance
three-merge
watchdog
]; ];
# There is no test for spyder # There is no test for spyder
@ -44,13 +115,8 @@ buildPythonPackage rec {
# remove dependency on pyqtwebengine # remove dependency on pyqtwebengine
# this is still part of the pyqt 5.11 version we have in nixpkgs # this is still part of the pyqt 5.11 version we have in nixpkgs
sed -i /pyqtwebengine/d setup.py sed -i /pyqtwebengine/d setup.py
# The major version bump in watchdog is due to changes in supported
# platforms, not API break.
# https://github.com/gorakhargosh/watchdog/issues/761#issuecomment-777001518
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "pyqt5<5.13" "pyqt5" \ --replace "ipython>=7.31.1,<8.0.0" "ipython"
--replace "parso==0.7.0" "parso" \
--replace "watchdog>=0.10.3,<2.0.0" "watchdog>=0.10.3,<3.0.0"
''; '';
postInstall = '' postInstall = ''

Loading…
Cancel
Save