!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
27 Mar 2024
@k900:0upti.meK900poetry2nix doesn't really do stable releases anymore17:20:24
@k900:0upti.meK900Because we removed it from nixpkgs17:20:28
@truh:matrix.orgtruhThere are still newer tags on GitHub. Are they just created automatically after each merged PR?17:31:47
@truh:matrix.orgtruh* There are still newer tags on GitHub. Are they just created automatically after each merged PR? I guess that can't be it since non of the latest commits have tags.17:34:11
@tcarls:matrix.orgCharles Duffy
In reply to @truh:matrix.org
Does anyone use flakehub with poetry2nix? Didn't doesn't appear to really understand the versioning scheme used by poetry2nix. It advertises the v1.28.0 version tag from 2022 as latest release, which appears to have been created with the v prefix by accident.
As an active poetry2nix user, I use their master branch and periodically repin.
20:33:31
@tcarls:matrix.orgCharles Duffy(mind, some of my local overrides are probably duplicative with things upstream has fixed, but haven't made reviewing and correcting for that a part of my regular workflow).20:34:17
29 Mar 2024
@sebtm:lodere.esSebTM joined the room.05:40:05
@lunik1:lunik.one@lunik1:lunik.one left the room.22:06:41
31 Mar 2024
@technicus:matrix.orgMiles Dyson joined the room.23:08:36
2 Apr 2024
@dolcetriade:matrix.orgDolceTriadeHey, has anyone managed to get the later versions of the cryptography package working with poetry2nix. It seems some recent logic of moving stuff into the pyproject.toml has caused the rust hook to not trigger20:16:12
5 Apr 2024
@brokenpip3:matrix.org@brokenpip3:matrix.org

Hei there,
I was wondering: I have a python app that is both an application with a pyproject entry script but also it can be sourced as python library.
For instance, normally I can do both:

foobar mycommand

but also

python3
import foobar

how I can do both these 2 packages? I'm able to build the first one with mkPoetryApplication but after trying everything I'm not able to build both or build 2 separated package, one as command and another one as library.
Thanks!

11:13:17
@mbovo:matrix.orgManuel Bovo joined the room.12:25:44
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

Show newer messages


Back to Room ListRoom Version: 6