2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry
|
|
|
|
, docstring-to-markdown
|
|
|
|
, jedi
|
|
|
|
, pygls
|
|
|
|
, pytestCheckHook
|
|
|
|
, pyhamcrest
|
|
|
|
, python-jsonrpc-server
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jedi-language-server";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.37.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-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-5il12WDmUkdud9zTpzTaoSXEqOaK15Ut3/fUAX422fA=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry
|
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
|
|
|
description = "A Language Server for the latest version(s) of Jedi";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|