!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

330 Members
https://github.com/nix-community/poetry2nix62 Servers

Load older messages


SenderMessageTime
9 May 2022
@adis:blad.isadisbladis It takes a while to build mypy as it's doing some native compilation using mypyc 08:38:42
@adis:blad.isadisbladis
In reply to @landau:matrix.org
ok let me try without wheels
I've fixed it on poetry2nix master
08:38:59
@landau:matrix.orgrhtok, let me try master instead08:39:13
@adis:blad.isadisbladisSo that we don't apply the patch in the case of a wheel08:39:26
@landau:matrix.orgrhtappreciate the fix. this means a lot!08:39:31
@landau:matrix.orgrhtit works!08:43:39
@adis:blad.isadisbladisGreat!08:44:00
10 May 2022
@plato:matrix.orgplato joined the room.07:00:37
@plato:matrix.orgplato 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
@plato:matrix.orgplato Hm, platformdirs has requires = ["hatchling>=0.22.0", "hatch-vcs"] in the pyproject.toml 07:57:22
@artturin:matrix.orgArtturin
In reply to @plato:matrix.org
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?
update poetry2nix to the latest version
13:27:52
@artturin:matrix.orgArtturinhttps://github.com/nix-community/poetry2nix/commit/8cfd980262181bd3ef15899708ceeb2e3f33958b13:27:55
@artturin:matrix.orgArtturinprobably fixed your issue13:28:02
12 May 2022
@vengmark2:matrix.orgl0b0I'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
@vengmark2:matrix.orgl0b0The original code: https://github.com/linz/emergency-management-tools/pull/801:34:55
@plato:matrix.orgplatoI'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
@plato:matrix.orgplato (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
@plato:matrix.orgplatoI've opened an issue for it here https://github.com/nix-community/poetry2nix/issues/63106:53:03
@adis:blad.isadisbladis l0b0: https://github.com/nix-community/poetry2nix/issues/628 is a "fun" one 10:29:48
@adis:blad.isadisbladisI had to bring out the BFG https://github.com/nix-community/poetry2nix/pull/634/files#diff-0f2ad087132a9d4858ae71477b3ba763c501f62ca3b529e5f1bf5d360d988c2d10:30:10
@vengmark2:matrix.orgl0b0 adisbladis: Thanks for fixing that! On a related note, how often are poetry2nix changes upstreamed to nixpkgs? 21:07:34
@vengmark2:matrix.orgl0b0 Re. https://github.com/nix-community/poetry2nix/issues/624, I've tried a few different things now (using mkShell and adding cc.lib to propagatedBuildInputs, using self.gdal and pkgs.gdal_2 instead of pkgs.gdal), and all fail in inscrutable ways. Not sure what I'm doing wrong, and whether any of these should be reported as bugs. 21:17:27
13 May 2022
@adis:blad.isadisbladis
In reply to @vengmark2:matrix.org
adisbladis: Thanks for fixing that! On a related note, how often are poetry2nix changes upstreamed to nixpkgs?
I cut a release when I feel like it's time, and then send a PR to nixpkgs
04:22:45
@adis:blad.isadisbladisMost of the time I'll also backport it to whatever is stable at the time, but there were some fairly big changes during this cycle so I've opted not to backport any more to 21.1104:23:19
16 May 2022
@cgroves:matrix.orgcgroves left the room.13:19:37
17 May 2022
@battle-chicken:matrix.orgbattle-chicken joined the room.23:02:06
18 May 2022
@m1cr0man:m1cr0man.comm1cr0man joined the room.22:28:37
19 May 2022
@jcapucho:matrix.orgjcapucho joined the room.14:33:56
@jcapucho:matrix.orgjcapucho

Hi everyone! I'm currently trying to use poetry2nix on a project and I'm stuck when compiling pyglet, I created a reproduction example

[tool.poetry]
name = "poetry-pyglet"
version = "0.1.0"
description = ""
authors = ["João Capucho <jcapucho7@gmail.com>"]

[tool.poetry.dependencies]
python = "^3.9"
pyglet = "^1.5.24"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

I have also made a pastebin with the build log: https://pastebin.com/TAw1m4Tc
I would be grateful if anyone could help me or point me in the right direction, I've already searched in the repo issues and googled a bit but could not find anything remotely similar to the problem I'm facing.

14:49:25
@m1cr0man:m1cr0man.comm1cr0man Hey folks. I have been trying to give poetry2nix a whirl on my system. I was having an almost seamless experience but then I ran into an issue with the package building for two of my dev dependencies 😅 The errors are vastly different for both. I figured the best way to ask for assistance would be to build some example "test cases", so I did: https://github.com/m1cr0man/p2n-test
Both subfolders contain one of the broken packages each + the log output. Both were built simply by doing poetry init, adding my package, nix flake init --template github:nix-community/poetry2nix, and then trying nix run Would anyone be able to shed some light on these? Are they worth opening a github issue?
19:40:27

Show newer messages


Back to Room ListRoom Version: 6