Poetry2nix | 317 Members | |
| https://github.com/nix-community/poetry2nix | 61 Servers |
| Sender | Message | Time |
|---|---|---|
| 16 Nov 2023 | ||
| 10:11:10 | ||
| 17 Nov 2023 | ||
| The behaviour of editable together with flakes is kinda terrible.. | 00:46:33 | |
| This doesn't work:
because my-app resolves to a store path | 00:46:52 | |
So it has to be used with --impure | 00:47:20 | |
I don't know, it kind of makes sense to me that this use-case requires --impure: there's no reproducibility if you can edit one of the dependencies at any time and have those edits reflected immediately in the environment | 10:52:19 | |
It would be nice to be able to flip the default though, and declare directly in a flake.nix that some actions should be considered impure by default (with a warning message printed | 10:53:03 | |
* It would be nice to be able to flip the default though, and declare directly in a flake.nix that some actions should be considered impure by default (with a warning message printed) | 10:53:05 | |
| I was considering making it relative to an environment variable | 11:23:42 | |
| So you can use something like https://github.com/srid/flake-root | 11:24:24 | |
| 18 Nov 2023 | ||
Seems like the nixpkgs catch_conflicts.py script is now broken for Python 3.9 | 11:24:21 | |
| Ah, fixed in https://github.com/NixOS/nixpkgs/pull/267669 | 11:38:06 | |
| 19 Nov 2023 | ||
| 03:35:23 | ||
In reply to @adis:blad.isI think the really hard part about editable installs with flakes is that it doesn't fail in a predictable way. Maybe I should check for if a path is a nix store path when doing editable and fail on that, since it's clearly not the desired behaviour. | 06:28:11 | |
| 11:01:29 | ||
| 20:38:41 | ||
| How can I get dbus-python to build? | 21:59:31 | |
| 21:59:47 | |
| 20 Nov 2023 | ||
| looks like maybe a missing build-time dependency? https://github.com/nix-community/poetry2nix/blob/master/docs/edgecases.md#modulenotfounderror-no-module-named-packagename | 07:20:57 | |
| Hello! I'm having some odd problems with the cattrs package. To reproduce, I use `nix flake init --template github:nix-community/poetry2nix`, then `poetry add cattrs`. When I build, I get the `No module named 'hatchling'` error, so I add an override for cattrs with the hatchling package. When I try to build after this, I get this error: ``` hatchling.plugin.exceptions.UnknownPluginError: Unknown version source: vcs error: subprocess-exited-with-error ``` Have anyone had this, or a similar, issue before? | 17:44:00 | |
You need to also add hatch-vcs | 17:46:44 | |
| Probably | 17:46:45 | |
In reply to @gaivs:matrix.orgadd hatch-vcs to the override as well | 17:46:49 | |
| Perfect, thank you! | 17:48:11 | |
| 22:40:45 | ||
| It seems to me that poetry2nix doesn't properly support scripts at the top level? I'm wondering if that's known/reported/irrelevant/a bad idea/… Say I've got a project set up like this:
Then I can execute
and it'll print
That fails with | 23:23:11 | |
| 21 Nov 2023 | ||
| Looked around a bit in the source to find out what controls which .py files are included. Found mkPoetryScriptsPackage. Works as expected. :) | 06:55:03 | |
Or maybe it doesn't. Tried to apply mkPoetryScriptsPackage to a real thing, which needs overrides, which isn't supported. I also can't seem to mix scripts inside and outside of the package folder. :/ | 23:51:53 | |
| 22 Nov 2023 | ||
is it just me or does mkPoetryScriptsPackage not add the dependencies to the PYTHONPATH or whatever it's called | 00:53:04 | |
| mkPoetryApplication works but the binary in mkPoetryScriptsPackage with "No module named 'requests'" | 00:53:34 | |
I'm in the midst of fixing the "fallout" from removal of poetry2nix from nixpkgs for my xls2latex package, but I'm getting a bit confused (partly because of multi-layered flakes/shells). So now I have this flake, aiming to achieve the "sweet spot" of being compatible with non-flake usage (fetchFromGithub) and having the necessary flake outputs to do seamless development on it (repo devShell) and inclusion in user deployments, preferrably via overlay so the user can call it as a normal pkgs.xls2latex.Now I'm looking for advice:
| 14:32:25 | |