Merge pull request #258664 from figsoda/ruff-lsp

ruff-lsp: 0.0.39 -> 0.0.40
This commit is contained in:
Franz Pletz 2023-10-03 00:22:15 +02:00 committed by GitHub
commit 2e8f277e52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@
buildPythonPackage rec {
pname = "ruff-lsp";
version = "0.0.39";
version = "0.0.40";
pyproject = true;
disabled = pythonOlder "3.7";
@ -24,23 +24,9 @@ buildPythonPackage rec {
owner = "astral-sh";
repo = "ruff-lsp";
rev = "v${version}";
hash = "sha256-hbnSx59uSzXHeAhZPZnCzxl+mCZIdr29uUPfQCsm/Ww=";
hash = "sha256-CQ4SDIGhUTn7fdvoGag+XM7HcY+qJyp9McyzpoTQ0tM=";
};
patches = [
# update tests to fix compatibility with ruff 0.0.291
# https://github.com/astral-sh/ruff-lsp/pull/250
(fetchpatch {
name = "bump-ruff-version.patch";
url = "https://github.com/astral-sh/ruff-lsp/commit/35691407c4f489416a46fd2e88ef037b1204feb7.patch";
hash = "sha256-D6k2BWDUqN4GBhjspRwg84Idr7fvKMbmAAkG3I1YOH4=";
excludes = [
"requirements.txt"
"requirements-dev.txt"
];
})
];
postPatch = ''
# ruff binary added to PATH in wrapper so it's not needed
sed -i '/"ruff>=/d' pyproject.toml