5 , docstring-to-markdown
32 buildPythonPackage rec {
33 pname = "python-lsp-server";
37 disabled = pythonOlder "3.7";
39 src = fetchFromGitHub {
42 rev = "refs/tags/v${version}";
43 sha256 = "sha256-1LV8FcwQqUg+FIkrorBYlxMl4F1PkrrOWjD5M0JSp3Q=";
46 SETUPTOOLS_SCM_PRETEND_VERSION = version;
49 substituteInPlace pyproject.toml \
50 --replace "--cov-report html --cov-report term --junitxml=pytest.xml" "" \
51 --replace "--cov pylsp --cov test" "" \
52 --replace "autopep8>=1.6.0,<1.7.0" "autopep8" \
53 --replace "flake8>=5.0.0,<5.1.0" "flake8" \
54 --replace "mccabe>=0.7.0,<0.8.0" "mccabe" \
55 --replace "pycodestyle>=2.9.0,<2.10.0" "pycodestyle" \
56 --replace "pyflakes>=2.5.0,<2.6.0" "pyflakes"
63 propagatedBuildInputs = [
68 setuptools # `pkg_resources`imported in pylsp/config/config.py
72 passthru.optional-dependencies = {
124 ] ++ passthru.optional-dependencies.all
125 # pyqt5 is broken on aarch64-darwin
126 ++ lib.optionals (!stdenv.isDarwin || !stdenv.isAarch64) [
131 # https://github.com/python-lsp/python-lsp-server/issues/243
132 "test_numpy_completions"
133 "test_workspace_loads_pycodestyle_config"
134 ] ++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) [
135 # pyqt5 is broken on aarch64-darwin
136 "test_pyqt_completion"
140 export HOME=$(mktemp -d);
143 pythonImportsCheck = [
149 description = "Python implementation of the Language Server Protocol";
150 homepage = "https://github.com/python-lsp/python-lsp-server";
151 license = licenses.mit;
152 maintainers = with maintainers; [ fab ];