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

https://github.com/NixOS/nixpkgs/pull/350654
This commit is contained in:
Arthur Gautier 2024-10-23 08:15:38 -07:00
parent 4c1b2a1f81
commit 750ed01bb5

View File

@ -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