depot/third_party/nixpkgs/pkgs/development/python-modules/jedi-language-server/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

69 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, docstring-to-markdown
, fetchFromGitHub
, jedi
, lsprotocol
, poetry-core
, pygls
, pydantic
, pyhamcrest
, pytestCheckHook
, python-jsonrpc-server
, pythonOlder
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "jedi-language-server";
version = "0.40.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pappasam";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-+3VgONZzlobgs4wujCaGTTYpIgYrWgWwYgKQqirS7t8=";
};
pythonRelaxDeps = [
"pygls"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
docstring-to-markdown
jedi
lsprotocol
pydantic
pygls
];
nativeCheckInputs = [
pytestCheckHook
pyhamcrest
python-jsonrpc-server
];
preCheck = ''
HOME="$(mktemp -d)"
'';
pythonImportsCheck = [
"jedi_language_server"
];
meta = with lib; {
description = "A Language Server for the latest version(s) of Jedi";
homepage = "https://github.com/pappasam/jedi-language-server";
changelog = "https://github.com/pappasam/jedi-language-server/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ doronbehar ];
};
}