32 lines
870 B
Nix
32 lines
870 B
Nix
{ lib, python311Packages, fetchFromGitHub }:
|
|
|
|
python311Packages.buildPythonPackage rec {
|
|
pname = "nginx-language-server";
|
|
version = "0.8.0";
|
|
format = "pyproject";
|
|
src = fetchFromGitHub {
|
|
owner = "pappasam";
|
|
repo = "nginx-language-server";
|
|
rev = "v${version}";
|
|
sha256 = "AXWrNt4f3jkAbidE1goDgFicu4sSBv08f/Igyh2bRII=";
|
|
};
|
|
nativeBuildInputs = with python311Packages; [
|
|
setuptools
|
|
poetry-core
|
|
];
|
|
propagatedBuildInputs = with python311Packages; [
|
|
pygls
|
|
crossplane
|
|
pydantic
|
|
lsprotocol
|
|
];
|
|
pythonImportsCheck = [ "nginx_language_server" ];
|
|
doCheck = false;
|
|
meta = with lib; {
|
|
description = "A language server for nginx";
|
|
homepage = "https://github.com/pappasam/nginx-language-server";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ "Cobray" ];
|
|
};
|
|
}
|