!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

337 Members
https://github.com/nix-community/poetry2nix68 Servers

Load older messages


SenderMessageTime
10 Apr 2024
@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
@k900:0upti.meK900 changed their display name from K9Ö0 to K900.17:21:55
@k900:0upti.meK900 17:21:55
@vengmark2:matrix.orgl0b0 How to fix an "unknown location" import error from cryptography.hazmat.bindings._rust.x509? 22:15:23
@vengmark2:matrix.orgl0b0 * How to fix an "unknown location" import error from cryptography.hazmat.bindings._rust.x509? Looks like it might be related to poetryPackages = poetry2nix.mkPoetryPackages {python = pkgs.python310; …}; poetryPackages.python.withPackages (ps: poetryPackages.poetryPackages) ending up with a cryptography library linked to Python 3.11. 22:18:54
@vengmark2:matrix.orgl0b0 Crap, looks like pkgs.awscli2 is overriding something. How can I avoid that? 22:30:53
@vengmark2:matrix.orgl0b0 Filed issue. 22:43:21
18 Apr 2024
@fractivore:cyberia.club@fractivore:cyberia.club left the room.02:25:46
19 Apr 2024
@nirudium:matrix.orgnirudiumHow could I use pypy with a poetry2nix flake? 23:32:38
20 Apr 2024
@rolandco:matrix.orgRoland Coeurjoly joined the room.14:50:15
@rolandco:matrix.orgRoland Coeurjoly
In reply to @vengmark2:matrix.org
  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.

Questions about buildSystem:

"urllib3": [
"setuptools",
{
"buildSystem": "flit-core",
"until": "2.0.2"
},
{
"buildSystem": "hatchling",
"from": "2.0.2"
}
],

15:22:51
@rolandco:matrix.orgRoland Coeurjoly
In reply to @vengmark2:matrix.org
  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.
* Questions about buildSystem:
Given the following:
"urllib3": [
"setuptools",
{
"buildSystem": "flit-core",
"until": "2.0.2"
},
{
"buildSystem": "hatchling",
"from": "2.0.2"
}
],
15:23:12

Show newer messages


Back to Room ListRoom Version: 6