ruff-lsp: move to pkgs/by-name and use buildPythonApplication
This commit is contained in:
parent
54be01c656
commit
821467f51f
@ -1,24 +1,15 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, pythonOlder
|
, python3
|
||||||
, buildPythonPackage
|
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, ruff
|
, ruff
|
||||||
, pygls
|
|
||||||
, lsprotocol
|
|
||||||
, hatchling
|
|
||||||
, typing-extensions
|
|
||||||
, packaging
|
|
||||||
, pytestCheckHook
|
|
||||||
, python-lsp-jsonrpc
|
|
||||||
, pytest-asyncio
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "ruff-lsp";
|
pname = "ruff-lsp";
|
||||||
version = "0.0.54";
|
version = "0.0.54";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
disabled = pythonOlder "3.7";
|
disabled = python3.pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "astral-sh";
|
owner = "astral-sh";
|
||||||
@ -32,11 +23,11 @@ buildPythonPackage rec {
|
|||||||
sed -i '/"ruff>=/d' pyproject.toml
|
sed -i '/"ruff>=/d' pyproject.toml
|
||||||
'';
|
'';
|
||||||
|
|
||||||
build-system = [
|
build-system = with python3.pkgs; [
|
||||||
hatchling
|
hatchling
|
||||||
];
|
];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = with python3.pkgs; [
|
||||||
packaging
|
packaging
|
||||||
pygls
|
pygls
|
||||||
lsprotocol
|
lsprotocol
|
||||||
@ -46,7 +37,7 @@ buildPythonPackage rec {
|
|||||||
# fails in linux sandbox
|
# fails in linux sandbox
|
||||||
doCheck = stdenv.isDarwin;
|
doCheck = stdenv.isDarwin;
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = with python3.pkgs; [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
python-lsp-jsonrpc
|
python-lsp-jsonrpc
|
@ -17382,8 +17382,6 @@ with pkgs;
|
|||||||
|
|
||||||
postgres-lsp = callPackage ../development/tools/language-servers/postgres-lsp { };
|
postgres-lsp = callPackage ../development/tools/language-servers/postgres-lsp { };
|
||||||
|
|
||||||
ruff-lsp = python3Packages.callPackage ../development/tools/language-servers/ruff-lsp { };
|
|
||||||
|
|
||||||
rune-languageserver = callPackage ../development/tools/language-servers/rune-languageserver { };
|
rune-languageserver = callPackage ../development/tools/language-servers/rune-languageserver { };
|
||||||
|
|
||||||
svls = callPackage ../development/tools/language-servers/svls { };
|
svls = callPackage ../development/tools/language-servers/svls { };
|
||||||
|
Loading…
Reference in New Issue
Block a user