Poetry2nix | 331 Members | |
| https://github.com/nix-community/poetry2nix | 63 Servers |
| Sender | Message | Time |
|---|---|---|
| 8 May 2022 | ||
| 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 | |
| 12 May 2022 | ||
| I've tried working around https://github.com/nix-community/poetry2nix/issues/624 by upgrading to latest poetry2nix, but now I'm running into a probably more serious issue: "ImportError: /nix/store/ybkkrhdwdj227kr20vk8qnzqnmj7a06x-glibc-2.34-115/lib/libpthread.so.0: version `GLIBC_PRIVATE' not found (required by /nix/store/9bh3986bpragfjmr32gay8p95k91q4gy-glibc-2.33-47/lib/librt.so.1)". Any tips for how to proceed with either poetry2nix version? | 01:30:30 | |
| The original code: https://github.com/linz/emergency-management-tools/pull/8 | 01:34:55 | |
| I'm trying to use poetry2nix with a project that uses pyqt5 and am getting some errors relating to linked libraries. Anyone else using pyqt5? | 06:27:52 | |
(Errors like error: auto-patchelf could not satisfy dependency libxkbcommon.so.0 wanted by /nix/store/365y9czw9gmk9q1lb63axfvd54ba3p8b-python3.9-pyqt5-qt5-5.15.2/lib/python3.9/site-packages/PyQt5/Qt5/plugins/xcbglintegrations/libqxcb-egl-integration.so) | 06:28:08 | |
| I've opened an issue for it here https://github.com/nix-community/poetry2nix/issues/631 | 06:53:03 | |
| l0b0: https://github.com/nix-community/poetry2nix/issues/628 is a "fun" one | 10:29:48 | |
| I had to bring out the BFG https://github.com/nix-community/poetry2nix/pull/634/files#diff-0f2ad087132a9d4858ae71477b3ba763c501f62ca3b529e5f1bf5d360d988c2d | 10:30:10 | |
| adisbladis: Thanks for fixing that! On a related note, how often are poetry2nix changes upstreamed to nixpkgs? | 21:07:34 | |