Files
Tomasz Feliksik d4e6c3485e jedi-language-server: 0.46.0 -> 0.47.0
0.47.0 switched its build backend from poetry-core to hatchling; update
build-system to match. Upstream also relaxed the jedi bound to <0.21,
which nixpkgs' jedi 0.20.0 and pygls 2.1.1 satisfy.

Assisted-by: Claude Opus 4.8 (via Claude Code)
2026-07-15 02:46:09 +02:00

76 lines
1.5 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# dependencies
docstring-to-markdown,
jedi,
lsprotocol,
cattrs,
pygls,
# tests
pytestCheckHook,
pyhamcrest,
python-lsp-jsonrpc,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "jedi-language-server";
version = "0.47.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pappasam";
repo = "jedi-language-server";
tag = "v${version}";
hash = "sha256-UXFIVj2g/s669vgS9uLH+5qFjNFoIFhS5S6XDbzRYwU=";
};
build-system = [
hatchling
];
pythonRelaxDeps = [
"jedi"
];
dependencies = [
docstring-to-markdown
jedi
lsprotocol
cattrs
pygls
];
nativeCheckInputs = [
pytestCheckHook
pyhamcrest
python-lsp-jsonrpc
writableTmpDirAsHomeHook
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# https://github.com/pappasam/jedi-language-server/issues/313
"test_publish_diagnostics_on_change"
"test_publish_diagnostics_on_save"
];
pythonImportsCheck = [ "jedi_language_server" ];
meta = {
description = "Language Server for the latest version(s) of Jedi";
mainProgram = "jedi-language-server";
homepage = "https://github.com/pappasam/jedi-language-server";
changelog = "https://github.com/pappasam/jedi-language-server/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ doronbehar ];
};
}