!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
29 Nov 2023
@benbot:matrix.orgBenBot let me try that overridePythonAttrs 16:07:47
@benbot:matrix.orgBenBot
In reply to @k900:0upti.me
It should have overridePythonAttrs
       at /nix/store/wzjdajqfi4v7agn3s8hszvg0z8lkbnpw-source/flake.nix:40:21:

           39|           };
           40|           default = nn.mkPoetryApplication ({
             |                     ^
           41|             buildInputs = [ self.packages.${system}.proto ];

       error: attribute 'overridePythonAttrs' missing

doesn't seem like it :(

16:09:45
@benbot:matrix.orgBenBot
          default = nn.mkPoetryApplication ({
            buildInputs = [ self.packages.${system}.proto ];
            projectDir = "${self.packages.${system}.proto}";
            preferWheels = true;
          }).overridePythonAttrs (old: { buildPhase = "asdf"; });

16:10:14
@k900:0upti.meK900 I'm pretty sure you're doing nn.mkPoetryApplication ({}).overrideAttrs 16:10:14
@k900:0upti.meK900Yes16:10:17
@benbot:matrix.orgBenBot:016:10:29
@k900:0upti.meK900 Where you want (nn.mkPoetryApplication {}).overrideAttrs 16:10:29
@benbot:matrix.orgBenBot:facepalm:16:11:35
@benbot:matrix.orgBenBot

overrideAttrs AND overridePythonAttrs both work now

I guess i'm still pretty fuzzy on the ( and ) semantics in nix

16:12:04
@k900:0upti.meK900Function application doesn't need spaces16:15:11
@k900:0upti.meK900 So you can do foo bar instead of foo(bar) 16:15:22
@k900:0upti.meK900 But foo (bar) is parsed as foo bar 16:15:37
@k900:0upti.meK900 So foo(bar).baz is parsed as foo (bar.baz), not foo(bar).baz 16:15:52
@benbot:matrix.orgBenBotahhh, that's what's tripping me up16:16:10
1 Dec 2023
@ilpianista:kde.org@ilpianista:kde.org joined the room.08:30:32
@ilpianista:kde.org@ilpianista:kde.org'morning, I just upgraded to 23.11 and now I got the error about poetry2nix not being anymore in nixpkgs. Does this means that I've to switch my project to flakes to use poetry2nix? because I don't get how to fix my default.nix file to keep it working without flakes (I'm not against them, but I haven't explored them yet). Thanks!08:31:20
@k900:0upti.meK900No08:50:54
@k900:0upti.meK900 You can just fetchTarball poetry2nix 08:51:05
@k900:0upti.meK900Or use something like niv that does input tracking without flakes08:51:14
@ilpianista:kde.org@ilpianista:kde.orgah, I see. That's great, thank you!08:52:03
2 Dec 2023
@mao_tse-tung:matrix.orgmao_tse-tung joined the room.04:20:46
@vengmark2:matrix.orgl0b0 This job runs fine locally. What could be going on? 22:00:36
@vengmark2:matrix.orgl0b0 * This job runs fine locally. What could be going on? Is poetry2nix incompatible with the nixos/nix:2.19.2 container? 22:13:26
@vengmark2:matrix.orgl0b0 * This job runs fine locally. What could be going on? Is poetry2nix incompatible with the nixos/nix:2.19.2 container (I'm using Nix 2.18.1 locally)? 22:13:53
3 Dec 2023
@rxzfn2:matrix.orgzf zhang joined the room.03:24:48
@rxzfn2:matrix.orgzf zhangHi, glad to find this great nix tool and find you all here. I have a quick question. I am following this blog https://www.tweag.io/blog/2020-08-12-poetry2nix/ and 03:27:49
@rxzfn2:matrix.orgzf zhang *

Hi, glad to find this great nix tool and find you all here. I have a quick question. I am following this blog https://www.tweag.io/blog/2020-08-12-poetry2nix/ and I enconter this error:

 error: poetry2nix is now maintained out-of-tree. Please use https://github.com/nix-community/poetry2nix/

What does this mean and how to avoid that? Thx!

03:28:52
@rxzfn2:matrix.orgzf zhang

This is my default.nix:

03:29:13
@rxzfn2:matrix.orgzf zhang *

This is my default.nix updated and it still doesn't work:

{ pkgs ? import <nixpkgs> {} }:
let
  poetry2nix = pkgs.poetry2nix.override {
    poetry2nix = pkgs.nix-community.poetry2nix;
  };
in
poetry2nix.mkPoetryApplication {
  projectDir = ./.;
}
03:30:07
@k900:0upti.meK900That's definitely not going to work07:24:38

Show newer messages


Back to Room ListRoom Version: 6