!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
26 Dec 2024
@elikoga:matrix.orgelikoga changed their display name from elikoga (@38c3 📞448{0,1} to elikoga (@38c3 📞448{0,1}).15:26:05
@elikoga:matrix.orgelikoga changed their display name from elikoga (@38c3 📞448{0,1}) to elikoga (@38c3 📞488{0,1}).15:26:47
@phaer:matrix.org@phaer:matrix.org changed their display name from phaer to phaer (8650 at 38c3).17:41:26
27 Dec 2024
@nazarewk:matrix.orgkdn changed their display name from nazarewk to kdn.12:37:21
28 Dec 2024
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan to matthewcroughan (DECT: 56490).19:53:36
29 Dec 2024
@elikoga:matrix.orgelikoga changed their display name from elikoga (@38c3 📞488{0,1}) to elikoga (@38c3 📞488{0,1,9}).11:03:14
@laauurraa:matrix.orglaauurraa joined the room.16:03:00
@laauurraa:matrix.orglaauurraaHI! <316:03:55
@laauurraa:matrix.orglaauurraa Is it possible to create a poetry application that picks a different starting script from tool.poetry.scripts in pyproject.toml? 16:04:34
@laauurraa:matrix.orglaauurraa

I'm not sure how the "right" script is chosen in the first place.

I have this now:

[tool.poetry.scripts]
remarks = 'remarks.main:main'
remarks-server = "server:main"

16:04:56
@laauurraa:matrix.orglaauurraa

And if I build with

poetryConfig = {
          projectDir = ./.;
          python = pkgs.python310;
          preferWheels = true;
          overrides = defaultPoetryOverrides.extend (final: prev: {
            click = prev.click.overridePythonAttrs (old: {
              buildInputs = (old.buildInputs or [ ]) ++ [ prev.flit-scm ];
            });
          });
          # Optional overrides if needed:
          # overrides = poetry2nix.overrides.withDefaults (final: prev: { });
        };

        remarksBin = mkPoetryApplication poetryConfig;
        remarksServer = mkPoetryApplication (poetryConfig // {
          extras = [ "server" ];
        });
16:05:25
@laauurraa:matrix.orglaauurraa I get the remarks script, but not the remarks-server 16:05:40
@laauurraa:matrix.orglaauurraa * I'm not sure how the "right" script is chosen in the first place. I have this now: [tool.poetry.scripts] remarks = 'remarks.__main__:main' remarks-server = "server:main" 16:06:02
@laauurraa:matrix.orglaauurraais it even possible to specify what entrypoint you want? Because I can't find it in the documentation16:06:17
@k900:0upti.meK900It should create all the entrypoints I'm pretty surey?16:06:47
@k900:0upti.meK900* It should create all the entrypoints I'm pretty sure?16:06:50
@laauurraa:matrix.orglaauurraaOh woah16:08:36
@laauurraa:matrix.orglaauurraaYou are absolutely right!16:10:44
30 Dec 2024
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan (DECT: 56490) to matthewcroughan.17:36:49
31 Dec 2024
@phaer:matrix.org@phaer:matrix.org changed their display name from phaer (8650 at 38c3) to phaer.19:23:45
1 Jan 2025
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.14:26:27
2 Jan 2025
@hashphoenix:matrix.orgOluwapelumi Adeosun joined the room.10:15:16
@error_pro:matrix.orgerror_pro joined the room.10:42:11
3 Jan 2025
@elikoga:matrix.orgelikoga changed their display name from elikoga (@38c3 📞488{0,1,9}) to elikoga.10:28:11
4 Jan 2025
@10leej:matrix.org@10leej:matrix.org left the room.01:14:46
@kranzes:matrix.org@kranzes:matrix.org left the room.15:30:55
6 Jan 2025
@tanvir:mozilla.org@tanvir:mozilla.org joined the room.20:23:30
@tanvir:tchncs.de@tanvir:tchncs.de joined the room.20:23:36
@tanvir:mozilla.org@tanvir:mozilla.org

What's the solution for this:

evaluation warning: Unknown ruff version: '0.8.5'. Please update getCargoHash.
evaluation warning: Unknown ruff version: '0.8.5'. Please update getRepoHash.
error:
       … while evaluating the attribute 'drvPath'
         at /nix/store/m6rqnw8hy8r6nv4avq0qzsi50crqh0q4-source/lib/customisation.nix:416:7:
          415|     // {
          416|       drvPath =
             |       ^
          417|         assert condition;

       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:34:12:
           33|
           34|   strict = derivationStrict drvAttrs;
             |            ^
           35|

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: hash mismatch in fixed-output derivation '/nix/store/h9ycnmcakyrsd2hqpqp83gk21a2dccpk-source.drv':
         specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
            got:    sha256-Y6J7hW+VYePhKH+5YXfuGuVB0WjYjUg8mM3kQBUnv/U=
20:32:56
@tanvir:mozilla.org@tanvir:mozilla.orgI see there's an issue https://github.com/nix-community/poetry2nix/pull/186320:33:13

Show newer messages


Back to Room ListRoom Version: 6