Poetry2nix | 321 Members | |
| https://github.com/nix-community/poetry2nix | 61 Servers |
| Sender | Message | Time |
|---|---|---|
| 10 Mar 2022 | ||
| * Thank you! I ended up with a similar approach after a bunch of experimenting:
This way the poetry2nix env and the Nix shell end up with the same Python environment, rather than the same Python interpreter in two different Nix store directories. | 19:41:53 | |
| * Thank you! I ended up with a similar approach after a bunch of experimenting:
This way the poetry2nix env and the Nix shell end up with the same Python environment, rather than the same Python interpreter in two different Nix store directories. | 19:42:18 | |
| 11 Mar 2022 | ||
| 09:54:59 | ||
| Hello, trying out poetry2nix for managing the python dependencies at our company. So far it seems to work great, except for fetching some packages from a private artifactory with credentials. Browsing through the issues, I found https://github.com/nix-community/poetry2nix/pull/390, but it uses the "old" nix-shell and not the new flake approach. Are there any docs on how to fetch a python package like this? | 11:04:50 | |
| 13 Mar 2022 | ||
| Has anyone tried including Hylang in their Poetry2nix projects? | 16:13:40 | |
| 16 Mar 2022 | ||
| 12:23:56 | ||
Hi! I can't build opencv using poetry2nix, I'm getting Exception: Not found: 'python/cv2/gapi/.*\.py'...I made a minimal reproduction: https://github.com/GuillaumeDesforges/bug-poetry2nix-opencv Any help would be most helpful 🙏 | 12:25:49 | |
| found the issue: opencv wants internet 🤦♂️ | 14:30:33 | |
| https://github.com/opencv/opencv/issues/21730 | 14:30:34 | |
| 14:31:29 | ||
| 17 Mar 2022 | ||
| 17:37:59 | ||
If I have to add an override to get connectorx to install, should I open a PR to add it in to the repo? | 18:20:48 | |
| basically the same as all the other
| 18:21:17 | |
^^ for clarity, that's my shell.nix | 18:27:04 | |
| 18 Mar 2022 | ||
Additional Q: is there a recommended way to keep poetry around in nix-shell? It feels weird to me that it's not available from mkPoetryEnv | 12:00:28 | |
| Just add it to your shell's `nativeBuildInputs | 12:06:01 | |
* Just add it to your shell's nativeBuildInputs | 12:06:02 | |
I apologize, I'm only a week in to learniing nix. I've looked around a bit, i feel like this should be trivial but i can't figure out where to update the shell's nativeBuildInputs | 12:56:35 | |
Just add nativeBuildInputs = [ pkgs.poetry ] to your mkShell call | 12:58:54 | |
| Took me a bit but got it
becomes
| 13:15:42 | |
So that poetry ends up disconnected from the app environment, i.e. i can run pytest but poetry run pytest fails | 13:19:00 | |
| That is normal | 13:20:34 | |
| poetry2nix doesn't actually create a Poetry environment | 13:20:50 | |
| It translates the lock file directly into Nix | 13:20:57 | |
| removing any x-y problem: I'm attempting to set up the dev flow. My understanding is we use Do you recommend sticking with a simpler shell.nix for that purpose, not using
| 13:28:28 | |
| If you want Poetry to be managing the environment, then yes, probably | 13:36:02 | |
| well not so much for managing the python virtual environment, but i still want to use poetry for dependency resolution and locking, right? | 13:41:18 | |
| Yes, you can do that with poetry2nix and something like direnv | 13:47:32 | |
| To automatically reload the shell when the dependencies change | 13:47:47 | |
| 22:17:56 | ||