!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
12 May 2022
@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
@k900:0upti.meK900Looks like missing deps in both cases19:42:27
@m1cr0man:m1cr0man.comm1cr0manOh? Ok interesting. I remember using node2nix in the past that there was a way to override/augment dependency's dependencies. Is there a similar mechanism here where I can add those missing deps, or is this actually an upstream issue for the respective packages?19:45:41
@k900:0upti.meK900For the first case, yes and no19:46:38
@k900:0upti.meK900It declares a build system but Poetry doesn't track those correctly yet 19:46:55
@k900:0upti.meK900It's being worked on but for now poetry2nix has a list of overrides19:47:08
@m1cr0man:m1cr0man.comm1cr0manoh I see.. these? https://github.com/nix-community/poetry2nix/blob/master/overrides/default.nix#L8619:48:17
@k900:0upti.meK900For the second one, it could be an upstream bug or it could be another build-dep issue19:48:35
@k900:0upti.meK900https://github.com/nix-community/poetry2nix/blob/master/overrides/build-systems.json19:48:47
@k900:0upti.meK900 These. 19:48:49
@k900:0upti.meK900Well, these if it's just a missing dep, and the other ones if you need something fancier19:49:06
@m1cr0man:m1cr0man.comm1cr0manRight I see. In terms of augmenting this in those examples I made, I can just put these overrides as overlays in my pkgs right?19:50:48
@k900:0upti.meK900Yeah 19:51:22
@k900:0upti.meK900Also I looked up flake8-mutable and it's just really old and uses setup-requires19:51:39
@k900:0upti.meK900Which I'm pretty sure has been deprecated multiple times by now but generally falls under the "poetry doesn't track build deps correctly" umbrella 19:52:08
@m1cr0man:m1cr0man.comm1cr0manI'm half tempted to drop these two deps but they are actually quite useful 😅 I wonder if there's newer alternatives though19:52:52
@k900:0upti.meK900mypy? 19:54:40
@k900:0upti.meK900 Assuming flake8-annotations does what I think it does 19:54:52

Show newer messages


Back to Room ListRoom Version: 6