poetry2nix
poetry2nix copied to clipboard
No module hatchling trying to follow along the Tweag Video in the Poetry2nix documentation
Is this an issue in the style of "package "X fails to build"? Maybe yes - but nothing is mentioned about it in the introduction video from Tweag with Steve Purcell. Poetry2nix: Package and deploy Python apps faster with Poetry and Nix by Tweag.
Describe the issue
Following the steps of the video - everything goes well up until time 05:15 - nix-build command on the default.nix file.
The code has been added to a repo for easier access: https://github.com/henrik-ch/tweag-p2nix-video/
Additional context
As you can see on the branches of the repo - I tried various approaches to fix the issue - none of them successful.
- main branch following the given instructions as given in video - no modifications (following instructions to best abilities)
- Pinned nixpkgs to nixpkgs 22.11 - exact same result - no module named hatchling.
- Test flake used the flake init as described in the README.md - this nix build command fails with a pillow problem - see the error traceback on this branch.
- Edgecases override when opening the issue, I saw the notes in the edgecases.md file. I must admit that I don't yet understand what the override does - and I cargoculted something that is accepted as nix syntax, but I have no idea if/what effect it has. The nix-build command fails with the same error as the main branch.
I have seen in the backchat on poetry2nix Matrix channel that this module was discussed on April 19th 2023 - but I am not sure what was the outcome and action - and how to implement it on my example. https://github.com/henrik-ch/tweag-p2nix-video/blob/main/matrix-screenshot.png
Links to nix files
- main branch default.nix
- main branch shell.nix
- flake branch flake.nix
- main branch pyproject.toml file I didn't yet try changing it
- main branch poetry.lock file I didn't yet try changing it