5 , docstring-to-markdown
36 buildPythonPackage rec {
37 pname = "python-lsp-server";
41 disabled = pythonOlder "3.8";
43 src = fetchFromGitHub {
46 rev = "refs/tags/v${version}";
47 hash = "sha256-9za0et/W+AwrjqUVoHwk8oqLXk4eqgRON8Z4F5GSKXM=";
51 substituteInPlace pyproject.toml \
52 --replace "--cov-report html --cov-report term --junitxml=pytest.xml" "" \
53 --replace "--cov pylsp --cov test" ""
56 env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
73 propagatedBuildInputs = [
78 setuptools # `pkg_resources`imported in pylsp/config/config.py
80 ] ++ lib.optionals (pythonOlder "3.10") [
84 passthru.optional-dependencies = {
131 nativeCheckInputs = [
137 ] ++ passthru.optional-dependencies.all
138 # pyqt5 is broken on aarch64-darwin
139 ++ lib.optionals (!stdenv.isDarwin || !stdenv.isAarch64) [
144 # Don't run lint tests
146 # https://github.com/python-lsp/python-lsp-server/issues/243
147 "test_numpy_completions"
148 "test_workspace_loads_pycodestyle_config"
149 ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
150 # pyqt5 is broken on aarch64-darwin
151 "test_pyqt_completion"
155 export HOME=$(mktemp -d);
158 pythonImportsCheck = [
164 description = "Python implementation of the Language Server Protocol";
165 homepage = "https://github.com/python-lsp/python-lsp-server";
166 changelog = "https://github.com/python-lsp/python-lsp-server/blob/v${version}/CHANGELOG.md";
167 license = licenses.mit;
168 maintainers = with maintainers; [ fab ];
169 mainProgram = "pylsp";