From 750ed01bb5b0390ffec06bf2efeda507065ce7b8 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Wed, 23 Oct 2024 08:15:38 -0700 Subject: [PATCH] openapi-python-client: ruff is now a python library https://github.com/NixOS/nixpkgs/pull/350654 --- .../op/openapi-python-client/package.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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