Change:
add spyder and nixos-rebuild, I got this error error: python-language-server-0.36.2 not supported for interpreter python3.9 (use '--show-trace' to show detailed location information)
We should probably migrate to the community fork (), especially considering the current version is from Palantir.
I don't think the issue is specific to NixOS, it looks like the repo hasn't been updated in a year (and probably doesn't support Python 3.9 upstream). The community fork is available at , maybe we should alias to that now that Plantir's version is completely broken on the latest version of Python?
file with import <nixpkgs{}; with pkgs.python3Packages; buildPythonPackage rec { name = "spyder_latest"; src = /gh/prehonor/gitproject/spyder; nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ]; propagatedBuildInputs = [ intervaltree jedi pycodestyle psutil rope numpy scipy matplotlib pylint keyring numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels pygments qtpy pyzmq chardet pyqtwebengine qdarkstyle watchdog atomicwrites pyxdg diff-match-patch three-merge pyls-black pyls-spyder flake8 textdistance ]; } nix-shell : I got python-language-server-0.36.2 not supported for interpreter python3.9,how to take python-lsp-server stead of python-language-server
I add spyder by myselfif someone need use it he can visit the url

Discussion:
<del> { lib, buildPythonPackage, fetchFromGitHub, pythonAtLeast, pythonOlder, isPy27 , backports_functools_lru_cache ? null, configparser ? null, futures ? null, future, jedi, pluggy, python-jsonrpc-server, flake8 , pytestCheckHook, mock, pytest-cov, coverage, setuptools, ujson, flaky , # Allow building a limited set of providers, e.g. ["pycodestyle"]. providers ? ["*"] # The following packages are optional and # can be overwritten with null as your liking. , autopep8 ? null , mccabe ? null , pycodestyle ? null , pydocstyle ? null , pyflakes ? null , pylint ? null , rope ? null , yapf ? null }: let withProvider = p: builtins.elem "*" providers || builtins.elem p providers; in buildPythonPackage rec { pname = "python-language-server"; version = "0.36.2"; # https://github.com/palantir/python-language-server/issues/896#issuecomment-752790868 disabled = pythonAtLeast "3.9"; src = fetchFromGitHub { owner = "palantir"; repo = "python-language-server"; rev = version; sha256 = "07x6jr4z20jxn03bxblwc8vk0ywha492cgwfhj7q97nb5cm7kx0q"; }; postPatch = '' # Reading the changelog I don't expect an API break in pycodestyle and pyflakes substituteInPlace setup.py  --replace "pycodestyle>=2.6.0,<2.7.0" "pycodestyle>=2.6.0,<2.8.0"  --replace "jedi>=0.17.2,<0.18.0" "jedi>=0.17.2,<0.19.0"  --replace "pyflakes>=2.2.0,<2.3.0" "pyflakes>=2.2.0,<2.4.0" ''; propagatedBuildInputs = [ setuptools jedi pluggy future python-jsonrpc-server ujson ] ++ lib.optional (withProvider "autopep8") autopep8 ++ lib.optional (withProvider "mccabe") mccabe ++ lib.optional (withProvider "pycodestyle") pycodestyle ++ lib.optional (withProvider "pydocstyle") pydocstyle ++ lib.optional (withProvider "pyflakes") pyflakes ++ lib.optional (withProvider "pylint") pylint ++ lib.optional (withProvider "rope") rope ++ lib.optional (withProvider "yapf") yapf ++ lib.optional isPy27 configparser ++ lib.optionals (pythonOlder "3.2") [ backports_functools_lru_cache futures ]; # The tests require all the providers, disable otherwise. doCheck = providers == ["*"]; checkInputs = [ pytestCheckHook mock pytest-cov coverage flaky # Do not propagate flake8 or it will enable pyflakes implicitly flake8 # rope is technically a dependency, but we don't add it by default since we # already have jedi, which is the preferred option rope ]; dontUseSetuptoolsCheck = true; preCheck = '' export HOME=$TEMPDIR ''; # Tests failed since update to 0.31.8 disabledTests = [ "test_pyqt_completion" "test_numpy_completions" "test_pandas_completions" "test_matplotlib_completions" "test_snippet_parsing" "test_numpy_hover" "test_symbols" ] ++ lib.optional isPy27 "test_flake8_lint"; meta = with lib; { homepage = "https://github.com/palantir/python-language-server"; description = "An implementation of the Language Server Protocol for Python"; license = licenses.mit; maintainers = [ ]; # no longer maintained # see https://github.com/palantir/python-language-server/pull/918#issuecomment-817361554 broken = true; }; } </del>

python-lz4 = lz4; # added 2018-06-01 python_magic = python-magic; # added 2022-05-07 python_mimeparse = python-mimeparse; # added 2021-10-31 <ins> python-language-server = throw "python-language-server is no longer maintained, use the python-lsp-server community fork instead."; # Added 2022-08-03 </ins> python-subunit = subunit; # added 2021-09-10 pytest_xdist = pytest-xdist; # added 2021-01-04 python_simple_hipchat = python-simple-hipchat; # added 2021-07-21

python_keyczar = callPackage ../development/python-modules/python_keyczar { }; <del> python-language-server = callPackage ../development/python-modules/python-language-server { }; </del> python-ldap-test = callPackage ../development/python-modules/python-ldap-test { }; python-Levenshtein = callPackage ../development/python-modules/python-levenshtein { };