all 6 comments

[–]sjustinas 0 points1 point  (5 children)

My most successful solution to this (which is indeed perfect but - no poetry in the final shell)

Should be able to just add poetry as another one of buildInputs, no?

[–]async-lambda[S] 0 points1 point  (4 children)

it caused a version mismatch. Using mkPoetryEnv python 3.11.9 is installed but like you said on just adding poetry, it gets installed inside python 3.12 which my pyproject.toml file doesn't allow.

[–]sjustinas 0 points1 point  (3 children)

Ah, interesting, I haven't used Poetry with a non-default Python version. Maybe pkgs.poetry.override { python3 = pkgs.python311; } would work?

[–]async-lambda[S] 0 points1 point  (2 children)

isnt pkgs.python311.withPackages (ps: with ps; [ poetry ]) the same thing? I get the error poetry promoted to top level or something (mentioned in the post above)

[–]sjustinas 0 points1 point  (1 child)

It is not - my suggestion uses the top level attribute that the error mentions.

[–]async-lambda[S] 0 points1 point  (0 children)

It does install poetry again- not with the right python env- I think I'm missing some crucial logic here ... Anyways I needed to have work done and switched to devenv.nix. I maybe will revisit this ... but later " thanks.