nix-community / poetry2nix

Convert poetry projects to nix automagically [maintainer=@adisbladis,@cpcloud]
MIT License
842 stars 439 forks source link

`fastapi-cli` is not installed with the new `"fastapi[standard]"` #1821

Open cospectrum opened 4 days ago

cospectrum commented 4 days ago

Describe the issue

I would expect fastapi cmd to work with mkPoetryEnv and the latest fastapi[standard], but it does not. poetry run fastapi does not find a command. I can see fastapi bin in the final poetryEnv derivation, but its broken and tells me to run pip install fastapi[standard] (still doesn't help). If I try to add fastapi-cli as a poetry dependency, the build will fail completely.

TyberiusPrime commented 1 day ago

uv2nix had a similary run in recently. 'bin/fastapi' is being supplied by both packages, but goes to the same entry point. Perhaps try to add an override for fastapi that deletes bin/fastapi after build, so that fastapi-cli can place it's version (or visa versa).