a6d62be0d1
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
56 lines
997 B
Nix
56 lines
997 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fetchFromGitHub
|
|
, poetry
|
|
, docstring-to-markdown
|
|
, jedi
|
|
, pygls
|
|
, pytestCheckHook
|
|
, pyhamcrest
|
|
, python-jsonrpc-server
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jedi-language-server";
|
|
version = "0.34.11";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pappasam";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0gxpq93mfyzhjz5yvjwv2jjda1djpf20x38893ngswsm7lrh62x5";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|