!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

316 Members
https://github.com/nix-community/poetry2nix59 Servers

Load older messages


SenderMessageTime
27 Oct 2023
@janik0:matrix.org@janik0:matrix.orgI have no idea how to pin them to use the same version since the semVersion numbers seem to be the same13:21:52
@k900:0upti.meK900 You want to use the pytestCheckHook from the poetry2nix-created packages set 13:22:12
@janik0:matrix.org@janik0:matrix.org
In reply to @k900:0upti.me
You want to use the pytestCheckHook from the poetry2nix-created packages set
how would I access that?
13:22:43
@k900:0upti.meK900That's... a good question, actually13:23:31
@k900:0upti.meK900I'm not sure we have a good way to actually get to that from inside the package itself13:23:43
@janik0:matrix.org@janik0:matrix.orgI can also switch to buildPythonPackage from nixpkgs since I'm reworking some parts of the project anyways like adding test and fixing the bug where it tags prs from people that just changed there github name key because of cause I made the mistake of using that instead of the id.. 13:28:02
@janik0:matrix.org@janik0:matrix.org * I can also just switch to buildPythonPackage from nixpkgs since I'm reworking some parts of the project anyways like adding test and fixing the bug where it tags prs from people that just changed there github name key because of cause I made the mistake of using that instead of the id.. 13:28:12
@petrichor:envs.net@petrichor:envs.net joined the room.18:24:47
28 Oct 2023
@adis:blad.isadisbladis

It's not exactly obvious... But I think you could do:

let
  drv = poetry2nix.mkPoetryApplication {
    nativeBuildInputs = [
      drv.passthru.python.pkgs.pytestCheckHook
    ];
  };
in drv
03:31:44
@adis:blad.isadisbladis
In reply to @janik0:matrix.org
how would I access that?
^
03:32:16
@pcloud:matrix.orgcpcloud Looks like pyproject.nix doesn't handle ^4 style constraints 09:44:40
@adis:blad.isadisbladis
In reply to @pcloud:matrix.org
Looks like pyproject.nix doesn't handle ^4 style constraints
It does: https://nix-community.github.io/pyproject.nix/lib/poetry.html#function-library-lib.poetry.parseVersionCond
10:01:13
@pcloud:matrix.orgcpcloudDoes it support it in markers?10:01:47
@pcloud:matrix.orgcpcloud like python = "^3.10" 10:01:54
@pcloud:matrix.orgcpcloudI'll put up a PR with a test10:02:44
@pcloud:matrix.orgcpcloudHere's an example failure https://github.com/ibis-project/ibis/actions/runs/6673382439/job/18138866562?pr=745510:03:11
@adis:blad.isadisbladisIt doesn't support them as a part of pep508 markers, but I don't think that's what we're talking about here.10:05:25
@adis:blad.isadisbladisThese are Python version constraints10:05:34
@adis:blad.isadisbladishttps://github.com/nix-community/poetry2nix/blob/master/mk-poetry-dep.nix#L151 needs to be swapped to the poetry specific one10:08:22
@adis:blad.isadisbladis cpcloud: https://github.com/nix-community/poetry2nix/pull/1381 10:12:17
@pcloud:matrix.orgcpcloudNice, thanks10:13:03
@pcloud:matrix.orgcpcloudI will add a test to that PR10:14:43
@adis:blad.isadisbladisGotta say I'm pretty happy about how that desugaring turned out10:14:45
@pcloud:matrix.orgcpcloud It does look much nicer 10:15:28
@adis:blad.isadisbladis
In reply to @pcloud:matrix.org
I will add a test to that PR
Sweet
10:15:31
@adis:blad.isadisbladisThanks everyone <3 I feel like we're in a much better shape that we've been in in a very long time10:17:40
@pcloud:matrix.orgcpcloud adisbladis: I added the test, it seems to fail in the same way 😕 10:23:28
@adis:blad.isadisbladis
In reply to @pcloud:matrix.org
adisbladis: I added the test, it seems to fail in the same way 😕
Pushed another commit that fixes it =)
10:26:43
@pcloud:matrix.orgcpcloudHeh, of course it needs a build-systems fix. Incoming ...10:28:47
@pcloud:matrix.orgcpcloud Ok, test succeeds locally. I set the PR to automerge! Thanks adisbladis 10:34:18

Show newer messages


Back to Room ListRoom Version: 6