diff --git a/pkgs/by-name/op/openapi-python-client/package.nix b/pkgs/by-name/op/openapi-python-client/package.nix index a4445a6a5670..6c7a1f5f413f 100644 --- a/pkgs/by-name/op/openapi-python-client/package.nix +++ b/pkgs/by-name/op/openapi-python-client/package.nix @@ -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