Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Dependency conflicts

Uv exposes internally generated package markers(1), therefore uv2nix support for conflicts is limited and may have incorrect marker(2) evaluation results.

Uv has support for creating mutually exclusive groups of conflicting dependencies.

To use conflicting dependencies with uv2nix you have to tell it which conflict resolution to take when creating the package overlay:

workspace.mkPyprojectOverlay {
  sourcePreference = "wheel";
  dependencies = {
    hello-world = [ "extra1" ];
  };
}
  1. Uv pull request #4339
  2. PEP-508 environment markers