!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

310 Members
https://github.com/nix-community/poetry2nix56 Servers

Load older messages


SenderMessageTime
15 Feb 2024
@xescure:matrix.orgxescure * 15:19:22
@djacu:matrix.org@djacu:matrix.orgI know it's not the same error message but does adding it as a build input in the overrides fix it? https://github.com/nix-community/poetry2nix/issues/60615:22:32
@djacu:matrix.org@djacu:matrix.orgAlso what's the context of this error? Which package is failing to build?15:22:48
@xescure:matrix.orgxescureI tried doing some process of elimination and every one I tried had the error15:24:05
@xescure:matrix.orgxescure
In reply to @djacu:matrix.org
I know it's not the same error message but does adding it as a build input in the overrides fix it?
https://github.com/nix-community/poetry2nix/issues/606
I'll try it
15:24:32
@djacu:matrix.org@djacu:matrix.orgIt's worth a try but the error doesn't lead me to believe that it is going to work. It looks like a package is using flit but didn't declare it. Also what's the context of this error? Which package is failing to build? Can you share more of the error message.15:27:59
@xescure:matrix.orgxescure

I'll try to isolate the problem and give more context, but for now I'm getting it for all packages. Which leads me to believe I'm messing something up

15:31:02
@xescure:matrix.orgxescureDownload nix-migration.tar.gz15:37:36
@xescure:matrix.orgxescureThis should have all the context15:38:05
@petrichor:envs.net@petrichor:envs.net left the room.15:52:24
@a-kenji:matrix.orgkenji joined the room.19:15:53
20 Feb 2024
@mihailmihov:matrix.orgMihail Mihov joined the room.05:47:13
@mihailmihov:matrix.orgMihail MihovHello can anyone help me with https://github.com/nix-community/poetry2nix/issues/555? I left the last two comments there explaining what my issue is.05:49:31
21 Feb 2024
@nazarewk:matrix.orgkdnis it possible to tell poetry which python version to use for it's commands it's mostly for initializing poetry2nix project with Python version different from nixpkgs default10:05:57
@nazarewk:matrix.orgkdn * is it possible to tell poetry which python interpreter binary to use for it's commands? it's mostly for initializing poetry2nix project with Python version different from nixpkgs default10:06:13
@nazarewk:matrix.orgkdn
In reply to @nazarewk:matrix.org
is it possible to tell poetry which python interpreter binary to use for it's commands? it's mostly for initializing poetry2nix project with Python version different from nixpkgs default
looks like i need poetry env use /path/to/python
10:28:08
@nazarewk:matrix.orgkdn second question: how do I install dependencies without extras? It seems to install cryptography with docs extras generating a conflict between sphinx and jinja versions 10:29:11
@jo.blade:matrix.org@jo.blade:matrix.org joined the room.10:45:35
@jo.blade:matrix.org@jo.blade:matrix.org Hello, I am trying to use poetry2nix with flakes but I have an issue. When I use nix run to build and run the project, some .py files are missing in ./result/…/lib/<project-name>/ 10:47:00
@jo.blade:matrix.org@jo.blade:matrix.orgI have no problem when I am using a default.nix with pretty similar content…10:47:42
@jo.blade:matrix.org@jo.blade:matrix.orgOk I just found that I have to put « projectDir = ./.; » instead of « projectDir = ./.; » as in the flake.nix example file10:53:36
@nazarewk:matrix.orgkdn
In reply to @nazarewk:matrix.org
second question: how do I install dependencies without extras? It seems to install cryptography with docs extras generating a conflict between sphinx and jinja versions
actually seems like it's env -> pynacl -> sphinx-hook... gotta dig more into it
11:26:40
@nazarewk:matrix.orgkdni'm not sure where the dependency comes from11:28:11
@nazarewk:matrix.orgkdn * i'm not sure where the dependency comes from, it's not in poetry.lock at all11:28:45
@nazarewk:matrix.orgkdnthis is the culprit: https://github.com/nix-community/poetry2nix/blob/403d923ea8e2e6cedce3a0f04a9394c4244cb806/overrides/default.nix#L187-L20511:39:50
@nazarewk:matrix.orgkdn seems like I need to set up pythonPackagesExtensions any idea how to do that?
https://discourse.nixos.org/t/how-to-override-disable-python-build-hooks/37374
12:24:38
@nazarewk:matrix.orgkdnseems to be an overlay? o.O https://github.com/NixOS/nixpkgs/blob/937261e3e0f40832e05125159531bd06bd625585/nixos/modules/config/no-x-libs.nix#L71-L7612:26:31
@nazarewk:matrix.orgkdn
In reply to @nazarewk:matrix.org
this is the culprit: https://github.com/nix-community/poetry2nix/blob/403d923ea8e2e6cedce3a0f04a9394c4244cb806/overrides/default.nix#L187-L205
FYI: https://matrix.to/#/!VjfUzaKsXokUdnQcvP:nixos.org/$iyPHRxjXSjj9LR_9Rh86G1Yba2iI389Pn_8rZ1bIa3Y?via=nixos.org&via=matrix.org&via=nixos.dev
13:39:17
@f44:matrix.orgf44 joined the room.19:51:00
23 Feb 2024
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus) changed their display name from TyberiusPrime to TyberiusPrime (possibly infected with highly specific brain worms).11:31:28

Show newer messages


Back to Room ListRoom Version: 6