Merge pull request #120884 from eduardosm/spyder

spyder: fix build

authored by

Gabriel Ebner and committed by
GitHub
24063d06 681c2cb7

+40 -4
+7
pkgs/development/python-modules/python-language-server/default.nix
··· 30 30 sha256 = "07x6jr4z20jxn03bxblwc8vk0ywha492cgwfhj7q97nb5cm7kx0q"; 31 31 }; 32 32 33 + postPatch = '' 34 + # Reading the changelog I don't expect an API break in pycodestyle and pyflakes 35 + substituteInPlace setup.py \ 36 + --replace "pycodestyle>=2.6.0,<2.7.0" "pycodestyle>=2.6.0,<2.8.0" \ 37 + --replace "pyflakes>=2.2.0,<2.3.0" "pyflakes>=2.2.0,<2.4.0" 38 + ''; 39 + 33 40 propagatedBuildInputs = [ setuptools jedi pluggy future python-jsonrpc-server ujson ] 34 41 ++ lib.optional (withProvider "autopep8") autopep8 35 42 ++ lib.optional (withProvider "mccabe") mccabe
+8 -4
pkgs/development/python-modules/spyder/default.nix
··· 3 3 keyring, numpydoc, qtconsole, qtawesome, nbconvert, mccabe, pyopengl, 4 4 cloudpickle, pygments, spyder-kernels, qtpy, pyzmq, chardet, qdarkstyle, 5 5 watchdog, python-language-server, pyqtwebengine, atomicwrites, pyxdg, 6 - diff-match-patch, three-merge, pyls-black, pyls-spyder, flake8 6 + diff-match-patch, three-merge, pyls-black, pyls-spyder, flake8, textdistance 7 7 }: 8 8 9 9 buildPythonPackage rec { ··· 20 20 nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ]; 21 21 22 22 propagatedBuildInputs = [ 23 - intervaltree jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring 23 + intervaltree jedi pycodestyle psutil rope numpy scipy matplotlib pylint keyring 24 24 numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels 25 25 pygments qtpy pyzmq chardet pyqtwebengine qdarkstyle watchdog python-language-server 26 26 atomicwrites pyxdg diff-match-patch three-merge pyls-black pyls-spyder 27 - flake8 27 + flake8 textdistance 28 28 ]; 29 29 30 30 # There is no test for spyder ··· 44 44 # remove dependency on pyqtwebengine 45 45 # this is still part of the pyqt 5.11 version we have in nixpkgs 46 46 sed -i /pyqtwebengine/d setup.py 47 + # The major version bump in watchdog is due to changes in supported 48 + # platforms, not API break. 49 + # https://github.com/gorakhargosh/watchdog/issues/761#issuecomment-777001518 47 50 substituteInPlace setup.py \ 48 51 --replace "pyqt5<5.13" "pyqt5" \ 49 - --replace "parso==0.7.0" "parso" 52 + --replace "parso==0.7.0" "parso" \ 53 + --replace "watchdog>=0.10.3,<2.0.0" "watchdog>=0.10.3,<3.0.0" 50 54 ''; 51 55 52 56 postInstall = ''
+23
pkgs/development/python-modules/textdistance/default.nix
··· 1 + { lib, buildPythonPackage, fetchPypi }: 2 + 3 + buildPythonPackage rec { 4 + pname = "textdistance"; 5 + version = "4.2.1"; 6 + 7 + src = fetchPypi { 8 + inherit pname version; 9 + sha256 = "114j3ignw4y9yq1cp08p4bfw518vyr3p0h8ba2mikwy74qxxzy26"; 10 + }; 11 + 12 + # There aren't tests 13 + doCheck = false; 14 + 15 + pythonImportsCheck = [ "textdistance" ]; 16 + 17 + meta = with lib; { 18 + description = "Python library for comparing distance between two or more sequences"; 19 + homepage = "https://github.com/life4/textdistance"; 20 + license = licenses.mit; 21 + maintainers = with maintainers; [ eduardosm ]; 22 + }; 23 + }
+2
pkgs/top-level/python-packages.nix
··· 7962 7962 7963 7963 test-tube = callPackage ../development/python-modules/test-tube { }; 7964 7964 7965 + textdistance = callPackage ../development/python-modules/textdistance { }; 7966 + 7965 7967 textacy = callPackage ../development/python-modules/textacy { }; 7966 7968 7967 7969 texttable = callPackage ../development/python-modules/texttable { };