!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
3 Dec 2024
@avianastra:beeper.comavianastraI looked for an issue like that, somehow didn't find it, thank you11:33:02
@avianastra:beeper.comavianastraOkay so I could get it working with preferWheels = true, just like they suggest in that issue, I will roll with that for now even though it doesn't actually solve the root problem, it just circumvents it. Thanks!11:48:28
4 Dec 2024
@mar.in:matrix.org@mar.in:matrix.org left the room.17:39:03
5 Dec 2024
@fpletz:lodere.esfpletz FYI if you are encountering build failures on latest unstable and 24.11 due to error: option --dist-info-dir not recognized https://github.com/NixOS/nixpkgs/pull/361930 01:46:10
6 Dec 2024
@nebucatnetzer13:matrix.orgnebucatnetzer13 joined the room.14:50:26
@nebucatnetzer13:matrix.orgnebucatnetzer13 Ah great thank you, I was completely lost on this one. 14:51:14
@nebucatnetzer13:matrix.orgnebucatnetzer13 Just out of curiosity (I can easily wait until the PR is through), how would an override for this look like? I naively added wheel with poetry add but that doesn't work even even when I add it as a build dependency to a package. 16:02:46
8 Dec 2024
@fpletz:lodere.esfpletz
In reply to @nebucatnetzer13:matrix.org
Just out of curiosity (I can easily wait until the PR is through), how would an override for this look like? I naively added wheel with poetry add but that doesn't work even even when I add it as a build dependency to a package.
I also linked that in the PR. Here is an example how to override it: https://github.com/fpletz/authentik-nix/commit/24907f67ee4850179e46c19ce89334568d2b05c6 Unfortunately not possible with the overrides attribute since wheel will be pulled in from nixpkgs.
12:01:05
@nebucatnetzer13:matrix.orgnebucatnetzer13
In reply to @fpletz:lodere.es
I also linked that in the PR. Here is an example how to override it: https://github.com/fpletz/authentik-nix/commit/24907f67ee4850179e46c19ce89334568d2b05c6 Unfortunately not possible with the overrides attribute since wheel will be pulled in from nixpkgs.
Ah sorry I missed that as I went straight to the diff and then tried to do it myself 🙈.
Thank you for the link👍
14:39:00
9 Dec 2024
@perchun:matrix.org@perchun:matrix.org joined the room.19:23:43
@perchun:matrix.org@perchun:matrix.org

hey, after recent update (I didnt update for a long time) I get this error

error:
       
 while evaluating the attribute 'drvPath'
         at /nix/store/avxvalb7xf8x4avmrbcvn1vr5yy46kxs-source/lib/customisation.nix:365:7:
          364|     in commonAttrs // {
          365|       drvPath = assert condition; drv.drvPath;
             |       ^
          366|       outPath = assert condition; drv.outPath;

       
 while evaluating 'strict' to select 'drvPath' on it
         at «internal»:1:552:
       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'optional-dependencies' missing
       at /nix/store/avxvalb7xf8x4avmrbcvn1vr5yy46kxs-source/pkgs/development/python-modules/fastapi-cli/default.nix:31:8:
           30|     uvicorn
           31|   ] ++ uvicorn.optional-dependencies.standard;
             |        ^
           32|

bisecting resulted into https://github.com/NixOS/nixpkgs/commit/03c1cedc3c6d9c95c834a8ddff2c03f82dd25ec2#diff-7283fe148b76f74489ff44bd0f7d731ddbffe539a51100b88824138867af1d15R31 which is not helpful at all

19:25:50
@perchun:matrix.org@perchun:matrix.orghow can I fix it?19:26:12
13 Dec 2024
@drawnwren:matrix.orgwren joined the room.23:33:56
14 Dec 2024
@drawnwren:matrix.orgwren yeah, we're getting this as well. I submitted a patch to nixpkgs that will hopefully fix this. 02:10:40
@perchun:matrix.org@perchun:matrix.org
In reply to @drawnwren:matrix.org
yeah, we're getting this as well. I submitted a patch to nixpkgs that will hopefully fix this.
Well, that PR doesn't answer the main question: why is it unbound (it won't be probably merged because without answering this. Also, this looks like a problem on poetry2nix side
02:41:20
15 Dec 2024
@adis:blad.isadisbladis
In reply to @perchun:matrix.org

hey, after recent update (I didnt update for a long time) I get this error

error:
       
 while evaluating the attribute 'drvPath'
         at /nix/store/avxvalb7xf8x4avmrbcvn1vr5yy46kxs-source/lib/customisation.nix:365:7:
          364|     in commonAttrs // {
          365|       drvPath = assert condition; drv.drvPath;
             |       ^
          366|       outPath = assert condition; drv.outPath;

       
 while evaluating 'strict' to select 'drvPath' on it
         at «internal»:1:552:
       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'optional-dependencies' missing
       at /nix/store/avxvalb7xf8x4avmrbcvn1vr5yy46kxs-source/pkgs/development/python-modules/fastapi-cli/default.nix:31:8:
           30|     uvicorn
           31|   ] ++ uvicorn.optional-dependencies.standard;
             |        ^
           32|

bisecting resulted into https://github.com/NixOS/nixpkgs/commit/03c1cedc3c6d9c95c834a8ddff2c03f82dd25ec2#diff-7283fe148b76f74489ff44bd0f7d731ddbffe539a51100b88824138867af1d15R31 which is not helpful at all

You have a uvicorn derivation created by poetry2nix & a fastapi-cli derivation from nixpkgs. Derivations generated by poetry2nix doesn't have passthru.optional-dependencies because poetry2nix predates it.
02:43:13
@perchun:matrix.org@perchun:matrix.organd how do i fix the issue?03:13:35
@perchun:matrix.org@perchun:matrix.org * and how do i fix the error?03:13:43
@adis:blad.isadisbladis

Possible workarounds:

  • Override uvicorn to add the expected attributes
  • Add fastapi-cli to your project
04:27:44
@adis:blad.isadisbladis changed the room topic to "https://github.com/nix-community/poetry2nix | Poetry2nix is unmaintained https://github.com/nix-community/poetry2nix/issues/1865" from "https://github.com/nix-community/poetry2nix".04:28:10
16 Dec 2024
@lenny:flipdot.org@lenny:flipdot.org left the room.19:38:55
19 Dec 2024
@collinarnett:matrix.org@collinarnett:matrix.org left the room.14:47:23
20 Dec 2024
@blaese:matrix.uni-marburg.deOliver BlÀse changed their display name from Oliver BlÀse to Oliver BlÀse (zwarimurlaubaberhatdie chatszustarkimaltagintigriert).12:51:30
@blaese:matrix.uni-marburg.deOliver BlÀse changed their display name from Oliver BlÀse (zwarimurlaubaberhatdie chatszustarkimaltagintigriert) to Oliver BlÀse (zwarimurlaubaberhatdie chatszustarkimaltagintegriert).13:24:02
@blaese:matrix.uni-marburg.deOliver BlÀse changed their display name from Oliver BlÀse (zwarimurlaubaberhatdie chatszustarkimaltagintegriert) to Oliver BlÀse (zwarimurlaubaberhatdiechatszustarkimaltagintegriert).13:29:33
21 Dec 2024
@elikoga:matrix.orgelikoga joined the room.17:08:39
@elikoga:matrix.orgelikoga
In reply to @adis:blad.is
You have a uvicorn derivation created by poetry2nix & a fastapi-cli derivation from nixpkgs. Derivations generated by poetry2nix doesn't have passthru.optional-dependencies because poetry2nix predates it.
Do I understand correctly that if we pass through optional-dependencies in poetry2nix it'd work?
17:09:51
@elikoga:matrix.orgelikoga
    overrides = poetry2nix.overrides.withDefaults (self: super: {
      fastapi-cli = python312.pkgs.fastapi-cli;
      bcrypt = python312.pkgs.bcrypt;
    });

Seems to work for me

17:21:13
23 Dec 2024
@adis:blad.isadisbladis It might work in your particular case, but is conceptually broken and will result in collisions because of dependency propagation 02:53:22
26 Dec 2024
@elikoga:matrix.orgelikoga changed their display name from elikoga to elikoga (@38c3 📞448{0,1}.15:21:51

Show newer messages


Back to Room ListRoom Version: 6