Skip to content

Commit d3c2018

Browse files
committed
python312Packages.jedi-language-server: modernise
- Don't use `with lib;` in `meta`. - Use modern dependencies arguments to `buildPythonPackage`. - Don't use `repo = pname` in `src`. - Use "pyproject = true;" instead of "format = pyproject". - Reorder inputs to the order they are used, and put them in sections.
1 parent 646347d commit d3c2018

File tree

1 file changed

+21
-13
lines changed
  • pkgs/development/python-modules/jedi-language-server

1 file changed

+21
-13
lines changed

pkgs/development/python-modules/jedi-language-server/default.nix

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,45 @@
11
{
22
lib,
3+
stdenv,
34
buildPythonPackage,
4-
docstring-to-markdown,
55
fetchFromGitHub,
6+
pythonOlder,
7+
8+
# build-system
9+
poetry-core,
10+
11+
# dependencies
12+
docstring-to-markdown,
613
jedi,
714
lsprotocol,
8-
poetry-core,
9-
pygls,
1015
pydantic,
11-
pyhamcrest,
16+
pygls,
17+
18+
# tests
1219
pytestCheckHook,
20+
pyhamcrest,
1321
python-lsp-jsonrpc,
14-
pythonOlder,
15-
stdenv,
1622
}:
1723

1824
buildPythonPackage rec {
1925
pname = "jedi-language-server";
2026
version = "0.42.0";
21-
format = "pyproject";
27+
pyproject = true;
2228

2329
disabled = pythonOlder "3.8";
2430

2531
src = fetchFromGitHub {
2632
owner = "pappasam";
27-
repo = pname;
33+
repo = "jedi-language-server";
2834
rev = "refs/tags/v${version}";
2935
hash = "sha256-KWkKIKiaRR26CctDFrHJAITM+nmRKGxLeC5HHwVZz4s=";
3036
};
3137

32-
nativeBuildInputs = [ poetry-core ];
38+
build-system = [
39+
poetry-core
40+
];
3341

34-
propagatedBuildInputs = [
42+
dependencies = [
3543
docstring-to-markdown
3644
jedi
3745
lsprotocol
@@ -57,12 +65,12 @@ buildPythonPackage rec {
5765

5866
pythonImportsCheck = [ "jedi_language_server" ];
5967

60-
meta = with lib; {
68+
meta = {
6169
description = "Language Server for the latest version(s) of Jedi";
6270
mainProgram = "jedi-language-server";
6371
homepage = "https://github.com/pappasam/jedi-language-server";
6472
changelog = "https://github.com/pappasam/jedi-language-server/blob/${version}/CHANGELOG.md";
65-
license = licenses.mit;
66-
maintainers = with maintainers; [ doronbehar ];
73+
license = lib.licenses.mit;
74+
maintainers = with lib.maintainers; [ doronbehar ];
6775
};
6876
}

0 commit comments

Comments
 (0)