You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to add python-lsp-ruff to extraPackages, but I get this error:
error: attribute 'ruff' missing
at /nix/store/lpqygnph8c5l7ajkmqr4rff0pvkfz1f6-source/overrides/default.nix:3229:9:
3228| in
3229| prev.ruff.overridePythonAttrs (old:
| ^
3230| let
Did you mean one of cruft, daff, ruffus, runs or tuf?
The issue seems to be that ruff isn't in python3Packages, but the overlay assumes it is. Usually an earlier overlay will add it, from poetry.lock.
I found a workaround which I've left commented out below. If it suits I can make a PR to remove ruff from the overlay if prev.ruff doesn't exist. Or maybe the overlay shouldn't be applied to extraPackages? An alternative would be add ruff to python3Packages in nixpkgs.
# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.package = []
[metadata]
lock-version = "2.0"python-versions = "^3.11"content-hash = "81b2fa642d7f2d1219cf80112ace12d689d053d81be7f7addb98144d56fc0fb2"
The text was updated successfully, but these errors were encountered:
Describe the issue
I'm attempting to add
python-lsp-ruff
toextraPackages
, but I get this error:The issue seems to be that
ruff
isn't inpython3Packages
, but the overlay assumes it is. Usually an earlier overlay will add it, frompoetry.lock
.I found a workaround which I've left commented out below. If it suits I can make a PR to remove
ruff
from the overlay ifprev.ruff
doesn't exist. Or maybe the overlay shouldn't be applied toextraPackages
? An alternative would be addruff
topython3Packages
in nixpkgs.Additional context
flake.nix
:pyproject.toml
:poetry.lock
:The text was updated successfully, but these errors were encountered: