Poetry2nix | 315 Members | |
| https://github.com/nix-community/poetry2nix | 60 Servers |
| Sender | Message | Time |
|---|---|---|
| 6 May 2022 | ||
| From poetry2nix master and a couple of days old nixos-unstable | 08:15:12 | |
| okay, I'll update both and retry - thank you very much | 08:20:15 | |
| adisbladis: thank you very much, it works fine with the poetry2nix version in unstable - should have tried that before wasting your time. | 08:28:37 | |
| :) | 08:33:40 | |
| Usually I'm trying to backport updates, but there were some pretty big scary changes so I stopped doing this for 21.11 | 08:34:31 | |
| Redacted or Malformed Event | 10:24:16 | |
| 8 May 2022 | ||
| 12:08:34 | ||
| i have a question on https://github.com/nix-community/poetry2nix/issues/561#issuecomment-1120383711= -- i have used the latest master of poetry2nix, but i still got the error "can't find file to patch at input line". i'm trying to install mypy 0.940 | 12:10:11 | |
| my default.nix:
| 12:10:29 | |
| 12:33:38 | ||
| Hi all! I'm working on a PR to fix this issue: https://github.com/nix-community/poetry2nix/issues/613. But I'm running into something I don't know how to solve. To address this ticket I need to adjust a SetupHook to format a TOML file. Since there don't seem to be standalone TOML formatters out there I am planning on using https://pypi.org/project/toml/ or https://github.com/sdispater/tomlkit. However, adding that library as a dependency to the SetupHook like so:
seems to result in | 12:33:42 | |
| Figured it out:
| 14:40:12 | |
| 9 May 2022 | ||
In reply to @landau:matrix.orgCould you point me to the repo this is in? | 08:11:25 | |
| i haven't committed anything to git (and github) yet | 08:26:17 | |
| but this is a snippet of my pyproject.toml:
| 08:27:11 | |
Right, the culprit here is a combination of preferWheels and the patch being applied regardless | 08:37:25 | |
| ok let me try without wheels | 08:37:43 | |
It takes a while to build mypy as it's doing some native compilation using mypyc | 08:38:42 | |
In reply to @landau:matrix.orgI've fixed it on poetry2nix master | 08:38:59 | |
| ok, let me try master instead | 08:39:13 | |
| So that we don't apply the patch in the case of a wheel | 08:39:26 | |
| appreciate the fix. this means a lot! | 08:39:31 | |
| it works! | 08:43:39 | |
| Great! | 08:44:00 | |
| 10 May 2022 | ||
| 07:00:37 | ||
I have a package that depends on platformdirs. This uses hatchling, which I could inject into platformdirs' buildInputs via overrideAttrs, however, it apparently also uses hatch-vcs. If I add self.hatch-vcs Nix tells me it doesn't know this. Do I have to package this separately? | 07:02:12 | |
Hm, platformdirs has requires = ["hatchling>=0.22.0", "hatch-vcs"] in the pyproject.toml | 07:57:22 | |
In reply to @plato:matrix.orgupdate poetry2nix to the latest version | 13:27:52 | |
| https://github.com/nix-community/poetry2nix/commit/8cfd980262181bd3ef15899708ceeb2e3f33958b | 13:27:55 | |
| probably fixed your issue | 13:28:02 | |