Commit 750ed01b authored by Arthur Gautier's avatar Arthur Gautier
Browse files

openapi-python-client: ruff is now a python library

parent 4c1b2a1f
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@
  python3Packages,
  fetchFromGitHub,
  installShellFiles,
  ruff,
  testers,
  openapi-python-client,
}:
@@ -35,22 +34,24 @@ python3Packages.buildPythonApplication rec {
    hatchling
  ];

  dependencies =
    (with python3Packages; [
  dependencies = (
    with python3Packages;
    [
      attrs
      httpx
      jinja2
      pydantic
      python-dateutil
      ruamel-yaml
      ruff
      shellingham
      typer
      typing-extensions
    ])
    ++ [ ruff ];

  # ruff is not packaged as a python module in nixpkgs
  pythonRemoveDeps = [ "ruff" ];
    ]
  );
  # openapi-python-client defines upper bounds to the dependencies, ruff python library is
  # just a simple wrapper to locate the binary. We'll remove the upper bound
  pythonRelaxDeps = [ "ruff" ];

  postInstall = ''
    # see: https://github.com/fastapi/typer/blob/5889cf82f4ed925f92e6b0750bf1b1ed9ee672f3/typer/completion.py#L54