0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pythonRelaxDepsHook
|
|
, docstring-to-markdown
|
|
, jedi
|
|
, pygls
|
|
, pytestCheckHook
|
|
, pyhamcrest
|
|
, python-jsonrpc-server
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jedi-language-server";
|
|
version = "0.40.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pappasam";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-+3VgONZzlobgs4wujCaGTTYpIgYrWgWwYgKQqirS7t8=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"pygls"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
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";
|
|
changelog = "https://github.com/pappasam/jedi-language-server/blob/${src.rev}/CHANGELOG.md";
|
|
description = "A Language Server for the latest version(s) of Jedi";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
};
|
|
}
|