Poetry2nix | 319 Members | |
| https://github.com/nix-community/poetry2nix | 60 Servers |
| Sender | Message | Time |
|---|---|---|
| 16 Mar 2022 | ||
| 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 | ||
| 20 Mar 2022 | ||
Looks like pip has a | 18:04:17 | |
I swapped hy = { git = "https://github.com/hylang/hy.git", python = ">=3.9,<3.11" } for hy = {version = "1.0a4", allow-prereleases = true, python = ">=3.9,<3.11"}, did a poetry update and now mkPoetryEnv returns Hy 1.04a, which is the latest pre-release. It would be nice to get the tip of the tip master branch but this works fine for my purposes now | 21:48:26 | |
| * I swapped `hy = { git = "https://github.com/hylang/hy.git", python = ">=3.9,<3.11" }` for `hy = {version = "1.0a4", allow-prereleases = true, python = ">=3.9,<3.11"}`, did a `poetry update` and now `mkPoetryEnv` returns Hy 1.04a, which is the latest pre-release. It would be nice to get the tip of the master branch but this works fine for my purposes now | 21:54:44 | |
| 21 Mar 2022 | ||
In reply to @worldofgeese:one.ems.hostThank you for sharing your solution. | 00:20:28 | |
| 22 Mar 2022 | ||
Is there a way to use the environment of a derivation to add more files to it right before the Python package is created? I’m creating a derivation for a Django project, and I’d like to collect static files to a directory that’s inside my package. I’m currently doing this by using mkPoetryApplication to create the package, and then have a second mkPoetryApplication with ${appWithoutStatic}/bin/django-admin collectstatic in configurePhase. This works but I was wondering if this is achievable without creating 2 derivations. | 15:06:07 | |
| 23:35:54 | ||
| 23 Mar 2022 | ||
| 13:36:58 | ||