2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
docstring-to-markdown,
|
|
|
|
fetchFromGitHub,
|
|
|
|
jedi,
|
|
|
|
lsprotocol,
|
|
|
|
poetry-core,
|
|
|
|
pygls,
|
|
|
|
pydantic,
|
|
|
|
pyhamcrest,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-lsp-jsonrpc,
|
|
|
|
pythonOlder,
|
|
|
|
stdenv,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jedi-language-server";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.41.4";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pappasam";
|
|
|
|
repo = pname;
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-RDLwL9AZ3G8CzVwDtWqFFZNH/ulpHeFBhglbWNv/ZIk=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
docstring-to-markdown
|
|
|
|
jedi
|
2023-02-02 18:25:31 +00:00
|
|
|
lsprotocol
|
|
|
|
pydantic
|
2021-12-06 16:07:01 +00:00
|
|
|
pygls
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pyhamcrest
|
2023-11-16 04:20:00 +00:00
|
|
|
python-lsp-jsonrpc
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
HOME="$(mktemp -d)"
|
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
|
|
# https://github.com/pappasam/jedi-language-server/issues/313
|
|
|
|
"test_publish_diagnostics_on_change"
|
|
|
|
"test_publish_diagnostics_on_save"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "jedi_language_server" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Language Server for the latest version(s) of Jedi";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jedi-language-server";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://github.com/pappasam/jedi-language-server";
|
|
|
|
changelog = "https://github.com/pappasam/jedi-language-server/blob/${version}/CHANGELOG.md";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|