!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
5 Nov 2024
@spacekookie:fairydust.spacekookieAh okay. Yeah this project uses 0.7.1 so I guess I should do a PR to poetry2nix to update these?15:03:10
@spacekookie:fairydust.spacekookieI am getting that "unknown ruff version" warning :P Good to know where it comes from15:03:29
@k900:0upti.meK900Probably yes15:04:01
6 Nov 2024
@spacekookie:fairydust.spacekookie

I fixed the ruff problem (wip PR with not all the in-between versions added), now failing on the next hurdle: pydantic-xml fails to build because: No module named 'poetry'.

I read the edgecases.md and tried adding poetry to the build inputs of the package, but to no avail. Anything obviously wrong with this?

          pydantic-xml = super.pythonPackages.pydantic-xml.overridePythonAttrs
            (old: {
              buildInputs = (old.buildInputs or [ ]) ++ (pkgs.lib.traceVal [ super.poetry ]);
            });

(the trace is being printed as trace: [ «thunk» «thunk» ]

08:04:49
@spacekookie:fairydust.spacekookie *

I fixed the ruff problem (wip PR with not all the in-between versions added), now failing on the next hurdle: pydantic-xml fails to build because: No module named 'poetry'.

I read the edgecases.md and tried adding poetry to the build inputs of the package, but to no avail. Anything obviously wrong with this?

          pydantic-xml = super.pythonPackages.pydantic-xml.overridePythonAttrs
            (old: {
              buildInputs = (old.buildInputs or [ ]) ++ (pkgs.lib.traceVal [ super.poetry ]);
            });

(the trace is being printed as trace: [ «thunk» «thunk» ]

08:05:30
@k900:0upti.meK900 You probably want super.poetry-core 08:07:35
@k900:0upti.meK900Also, check build-systems.json08:07:41
@k900:0upti.meK900That's an easier way to do basically this08:07:45
@spacekookie:fairydust.spacekookieoh okay!08:10:44
@spacekookie:fairydust.spacekookieActually yeah I saw that earlier and forgot about it08:10:54
@spacekookie:fairydust.spacekookie Is there a way to include arbitrary extra files in the output path of the root mkPoetryApplication build? I tried adding the name of that package (builder-tools for me) to the overrides section but that doesn't seem to be evaluated 09:26:17
@spacekookie:fairydust.spacekookie * Is there a non-obvious/ not-document dway to include arbitrary extra files in the output path of the root mkPoetryApplication build? I tried adding the name of that package (builder-tools for me) to the overrides section but that doesn't seem to be evaluated 09:26:42
@spacekookie:fairydust.spacekookie * Is there a non-obvious/ not-document way to include arbitrary extra files in the output path of the root mkPoetryApplication build? I tried adding the name of that package (builder-tools for me) to the overrides section but that doesn't seem to be evaluated 09:28:11
@truh:matrix.orgtruhI think you can use the usual nix derivation hooks. postInstall maybe09:28:13
@spacekookie:fairydust.spacekookieI'll try that09:28:44
@spacekookie:fairydust.spacekookieNice :) that worked! Thanks09:29:41
@spacekookie:fairydust.spacekookieSorry for all my probably noob questions haha. I haven't done nix things in a while09:30:03
@k900:0upti.meK900You can also add those files to your pyproject.toml09:38:18
@k900:0upti.meK900So they're part of the actual built wheel09:38:25
@truh:matrix.orgtruhThat's a way better idea10:04:29
7 Nov 2024
@adis:blad.isadisbladis

This has been coming for some time. Poetry2nix is actively looking for new maintainers:

  • https://github.com/nix-community/poetry2nix/issues/1865
  • https://github.com/nix-community/poetry2nix/commit/a1925e0848c62ab542b0b93b1b22875ee6efcb3d
06:40:58
@vengmark2:matrix.orgl0b0
In reply to @adis:blad.is

This has been coming for some time. Poetry2nix is actively looking for new maintainers:

  • https://github.com/nix-community/poetry2nix/issues/1865
  • https://github.com/nix-community/poetry2nix/commit/a1925e0848c62ab542b0b93b1b22875ee6efcb3d
I would volunteer except I'm starting a new chapter very soon, and will probably be using uv2nix or just straight Nix for the foreseeable. Thank you so much for your work!
08:18:32
8 Nov 2024
@artur:glasgow.socialmoved to @amadaluzia:tchncs.de changed their display name from (artur 'manuel) to @amadaluzia:tchncs.de.14:28:54
@artur:glasgow.socialmoved to @amadaluzia:tchncs.de changed their display name from @amadaluzia:tchncs.de to moved to @amadaluzia:tchncs.de.14:30:16
15 Nov 2024
@lunarequest:greyseal.eu@lunarequest:greyseal.eu changed their display name from lunarequest ⚡️ to lunarequest 🏳️‍⚧️.07:26:37
19 Nov 2024
@imoimo:matrix.org@imoimo:matrix.org left the room.05:19:55
22 Nov 2024
@picog:matrix.orgPicoThis link is 404 :( https://nix-community.github.io/pyproject.nix/build.html 08:51:52
@adis:blad.isadisbladis
In reply to @picog:matrix.org
This link is 404 :( https://nix-community.github.io/pyproject.nix/build.html
It moved https://pyproject-nix.github.io/pyproject.nix/build.html
09:31:50
@picog:matrix.orgPicoAh, okay, several text links still point to the old one then. For example the text in this example flake.nix https://pyproject-nix.github.io/uv2nix/usage/hello-world.html09:34:18
@adis:blad.isadisbladis
In reply to @picog:matrix.org
Ah, okay, several text links still point to the old one then.
For example the text in this example flake.nix
https://pyproject-nix.github.io/uv2nix/usage/hello-world.html
Forgot some references. I've updated them.
09:39:44

Show newer messages


Back to Room ListRoom Version: 6