about summary refs log tree commit diff
path: root/pkgs/by-name/ng/nginx-language-server/package.nix
blob: 891d6e4d5cb6153477636f3a8af66e85ae815740 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "nginx-language-server";
  version = "0.8.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pappasam";
    repo = "nginx-language-server";
    rev = "refs/tags/v${version}";
    hash = "sha256-AXWrNt4f3jkAbidE1goDgFicu4sSBv08f/Igyh2bRII=";
  };

  build-system = with python3.pkgs; [
    poetry-core
    pythonRelaxDepsHook
  ];

  pythonRelaxDeps = [
    "pydantic"
  ];

  dependencies = with python3.pkgs; [
    crossplane
    lsprotocol
    pydantic
    pygls
  ];

  pythonImportsCheck = [ "nginx_language_server" ];

  meta = with lib; {
    description = "Language server for nginx.conf";
    homepage = "https://github.com/pappasam/nginx-language-server";
    changelog = "https://github.com/pappasam/nginx-language-server/blob/${src.rev}/CHANGELOG.md";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ GaetanLepage ];
    mainProgram = "nginx-language-server";
  };
}