2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fetchFromGitHub
|
2022-12-02 08:20:57 +00:00
|
|
|
, poetry-core
|
|
|
|
, pythonRelaxDepsHook
|
2021-12-06 16:07:01 +00:00
|
|
|
, docstring-to-markdown
|
|
|
|
, jedi
|
|
|
|
, pygls
|
|
|
|
, pytestCheckHook
|
|
|
|
, pyhamcrest
|
|
|
|
, python-jsonrpc-server
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jedi-language-server";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "0.39.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pappasam";
|
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "sha256-nra2Xvfo1cfMoZkY7sem7NIEDwDmODWbGVNCeefSuQY=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"pygls"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
2022-12-02 08:20:57 +00:00
|
|
|
poetry-core
|
|
|
|
pythonRelaxDepsHook
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
docstring-to-markdown
|
|
|
|
jedi
|
|
|
|
pygls
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pyhamcrest
|
|
|
|
python-jsonrpc-server
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
HOME="$(mktemp -d)"
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"jedi_language_server"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/pappasam/jedi-language-server";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/pappasam/jedi-language-server/blob/${src.rev}/CHANGELOG.md";
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "A Language Server for the latest version(s) of Jedi";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|