mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
openapi-python-client: ruff is now a python library
https://github.com/NixOS/nixpkgs/pull/350654
This commit is contained in:
parent
4c1b2a1f81
commit
750ed01bb5
@ -5,7 +5,6 @@
|
|||||||
python3Packages,
|
python3Packages,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
ruff,
|
|
||||||
testers,
|
testers,
|
||||||
openapi-python-client,
|
openapi-python-client,
|
||||||
}:
|
}:
|
||||||
@ -35,22 +34,24 @@ python3Packages.buildPythonApplication rec {
|
|||||||
hatchling
|
hatchling
|
||||||
];
|
];
|
||||||
|
|
||||||
dependencies =
|
dependencies = (
|
||||||
(with python3Packages; [
|
with python3Packages;
|
||||||
|
[
|
||||||
attrs
|
attrs
|
||||||
httpx
|
httpx
|
||||||
jinja2
|
jinja2
|
||||||
pydantic
|
pydantic
|
||||||
python-dateutil
|
python-dateutil
|
||||||
ruamel-yaml
|
ruamel-yaml
|
||||||
|
ruff
|
||||||
shellingham
|
shellingham
|
||||||
typer
|
typer
|
||||||
typing-extensions
|
typing-extensions
|
||||||
])
|
]
|
||||||
++ [ ruff ];
|
);
|
||||||
|
# openapi-python-client defines upper bounds to the dependencies, ruff python library is
|
||||||
# ruff is not packaged as a python module in nixpkgs
|
# just a simple wrapper to locate the binary. We'll remove the upper bound
|
||||||
pythonRemoveDeps = [ "ruff" ];
|
pythonRelaxDeps = [ "ruff" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# see: https://github.com/fastapi/typer/blob/5889cf82f4ed925f92e6b0750bf1b1ed9ee672f3/typer/completion.py#L54
|
# see: https://github.com/fastapi/typer/blob/5889cf82f4ed925f92e6b0750bf1b1ed9ee672f3/typer/completion.py#L54
|
||||||
|
Loading…
Reference in New Issue
Block a user