!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

318 Members
https://github.com/nix-community/poetry2nix63 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
7 Apr 2024
@fractivore:cyberia.club@fractivore:cyberia.club changed their display name from symys to symyƨ.07:58:58
@fractivore:cyberia.club@fractivore:cyberia.club changed their display name from symyƨ to sγmγƨ.08:01:39
@fractivore:cyberia.club@fractivore:cyberia.club changed their display name from sγmγƨ to SYMYƧ.08:09:19
8 Apr 2024
@j0xxx:nixbitcoin.orgwk joined the room.14:36:49
@j0xxx:nixbitcoin.orgwk 14:40:26
@j0xxx:nixbitcoin.orgwkHi, i seem to be running into the "infinite recursion" issue when trying to build a shell that includes adafruit-circuitpython-dht. Where do i even start to fix it?14:41:48
9 Apr 2024
@truh:matrix.orgtruh
In reply to @j0xxx:nixbitcoin.org
Hi, i seem to be running into the "infinite recursion" issue when trying to build a shell that includes adafruit-circuitpython-dht. Where do i even start to fix it?
For me this was sometimes solved by using a different poetry2nix or nixpkgs revision. In one of my projects I've pinned nixpkgs to what's pinned in poetry2nix (nixpkgs.follows = "poetry2nix/nixpkgs") to solve this. But it can also be something else, sometimes you can find a culprit by reading the error top to bottom.
10:21:07
@djacu:matrix.org@djacu:matrix.org changed their profile picture.23:22:59
10 Apr 2024
@j0xxx:nixbitcoin.orgwkhmm, if i do that, i get something about "attribute lib missing" in some anonymous derivation08:51:01
@truh:matrix.orgtruh
In reply to @j0xxx:nixbitcoin.org
hmm, if i do that, i get something about "attribute lib missing" in some anonymous derivation

Last time I had this it was because I tried to access nixpkgs.lib rather than nixpkgs.legacyPackages.${system}.lib.

Can you share the flake?

08:57:42
@j0xxx:nixbitcoin.orgwknvm that was my issue, i passed the wrong think into mkPoetry2Nix. The follows thing didn't help though in this case08:58:20
@j0xxx:nixbitcoin.orgwkthe problem seems to happen with the python package adafruit-circuitpython-dht, in case anyone feels like taking a look08:59:04
@j0xxx:nixbitcoin.orgwkswitching from mkPoetryEnv to mkPoetryApplication for some reason shows me a more readable trace, and i can see it go down the dependencies until we hit adafruit-circuitpython-typing which is the actual package causing the issue21:00:16
@j0xxx:nixbitcoin.orgwklooks like a circular dependency with Adafruit-Blinka21:02:03
@j0xxx:nixbitcoin.orgwkso can i use an override to remove one of the dependencies?21:03:56
@j0xxx:nixbitcoin.orgwkSeems to be working with a lot of overrides needed. Will try to create a ticket tomorrow just to have it documented23:45:05
11 Apr 2024
@truh:matrix.orgtruh
In reply to @j0xxx:nixbitcoin.org
so can i use an override to remove one of the dependencies?
Overriding buildInputs should work I think.
08:09:16
@j0xxx:nixbitcoin.orgwkOk, so it works now. Question is: Does it make sense to open a ticket like "i found these packages that need overrides"? Basically there were some dependency loops and a bunch of packages needing "setuptools" added.10:24:53
@vengmark2:matrix.orgl0b0
In reply to @j0xxx:nixbitcoin.org
Ok, so it works now. Question is: Does it make sense to open a ticket like "i found these packages that need overrides"? Basically there were some dependency loops and a bunch of packages needing "setuptools" added.
If you already have the overrides, it would be great if you could add them to the existing ones. But filing an issue also works if you don't have time.
22:50:45
12 Apr 2024
@declension:matrix.orgdeclension joined the room.09:47:11
15 Apr 2024
@rolandco:matrix.orgRoland CoeurjolyI'm working on a script to fix the overrides for some common problems. I created a recent PR for fixing a package called twisted. Three questions: 1) Would that be useful? So far I have identified thousands of commonly downloaded packages failing. 2) is the use of from and until in the build systems json preferred to list of dependencies? 3) I see some checks failing, unrelated to the package I'm fixing. Should I fix those?17:22:53
@vengmark2:matrix.orgl0b0
In reply to @rolandco:matrix.org
I'm working on a script to fix the overrides for some common problems. I created a recent PR for fixing a package called twisted. Three questions:
1) Would that be useful? So far I have identified thousands of commonly downloaded packages failing.
2) is the use of from and until in the build systems json preferred to list of dependencies?
3) I see some checks failing, unrelated to the package I'm fixing. Should I fix those?
  1. Absolutely. There are far too many packages for any individual to keep track of all the non-Python dependencies and missing dependencies.
  2. Generally, yes, but if that's too much work simply having the dependencies at all is better than not having them.
  3. If you can, that would be great. Splitting your work into multiple PRs would be appreciated, though, since the difficulty of reviewing scales by something like O(N²) for N lines.
20:53:48
@rolandco:matrix.orgRoland CoeurjolyThanks, I'll be working on it22:13:32
16 Apr 2024
@nirudium:matrix.orgnirudium joined the room.02:19:03
@nirudium:matrix.orgnirudiumAre there any examples of mkPoetryScriptsPackage I could use because I'm trying to set up a single python script and installing it via a flake but I haven't figured that out yet haha02:23:46
@truh:matrix.orgtruh
In reply to @nirudium:matrix.org
Are there any examples of mkPoetryScriptsPackage I could use because I'm trying to set up a single python script and installing it via a flake but I haven't figured that out yet haha
If your script has any dependencies I would use mkPoetryApplication instead.
09:20:30
@nirudium:matrix.orgnirudiumI see, how would I have the result end up in the path?09:21:10
@truh:matrix.orgtruh In my projects using mkPoetryApplication, there are scripts in result/bin for each of the scripts defined in pyproject.toml [tool.poetry.scripts] 09:22:28
17 Apr 2024
@k900:0upti.meK900 changed their display name from K900 ⚡️ to K9Ö0.17:16:44

Show newer messages


Back to Room ListRoom Version: 6