openapi-python-client: ruff is now a python library (#350733)

This commit is contained in:
Sandro
2024-10-26 14:08:22 +02:00
committed by GitHub
@@ -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