depot/third_party/nixpkgs/pkgs/development/python-modules/jedi-language-server/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

56 lines
995 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.35.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "pappasam";
repo = pname;
rev = "v${version}";
sha256 = "sha256-+bhvWWiG0cA36oc2PFvgRTIvqnjIt5BUN82DY0tvuPo=";
};
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 ];
};
}