Poetry2nix | 329 Members | |
| https://github.com/nix-community/poetry2nix | 63 Servers |
| Sender | Message | Time |
|---|---|---|
| 8 Feb 2022 | ||
| hm it seems i have to better understand build closures better. i assumed a dependency like that would be "low" enough that it could be picked up from the store/nixpkgs. thanks though! how do people deal with the long resulting build times? push the result from mkPoetryEnv to a binary cache? | 06:02:07 | |
In reply to @graf_blutwurst:matrix.orgTypically, yes. | 06:02:46 | |
In reply to @adis:blad.isok then i was on the right track for that. do you happen to have any resources that'd help me understand what causes the recompile of pandas etc? mostly so i can predict when it happens since those take a significant chunk of time to crunch through | 06:06:31 | |
In reply to @graf_blutwurst:matrix.org When some of the build inputs changes, or some parameters are different. Practially this means that you will have to rebuild when:
| 06:08:37 | |
| that sounds sensible.thanks for your time! | 06:17:11 | |
| 12 Feb 2022 | ||
| 15:26:44 | ||
| Hello! I get this failure even for the Flask exaple from the Tweag blogpost and the video. I get the message about an infinite recursion and when I use the verbose switch it get to read that | 15:54:06 | |
| Octavio, could you provide details about your environment? Error message, pyproject.toml, your nix expression will help anyone to better identify root cause. | 18:45:31 | |
| 14 Feb 2022 | ||
| Download pyproject.toml | 02:09:18 | |
In reply to @mou_bugtracker:matrix.orgOff course! I didn't want to send the files without being asked to but if anybody can help that would be amazing. | 02:09:19 | |
| Download shell.nix | 02:09:28 | |
| Download default.nix | 02:09:37 | |
| This is the error. | 02:13:36 | |
| Download error.md | 02:13:46 | |
| Could I ask someone to test the Poetry2nix flake template with some trivial Python code and see if it works for them? I'm getting `error: flake 'git+file:///home/worldofgeese/projects/little-bits-of-buddha' does not provide attribute 'packages.x86_64-linux.defaultPackage.x86_64-linux', 'legacyPackages.x86_64-linux.defaultPackage.x86_64-linux' or 'defaultPackage.x86_64-linux'` | 22:36:56 | |
| I was able to solve by swapping for Serokell's Poetry2nix template | 22:37:20 | |
| Host system is Arch Linux | 22:37:26 | |
| 15 Feb 2022 | ||
| 11:46:48 | ||
hi! i'm a bit of a python newbie: how would i go about adding an output to my flake, where i run py.test? i can use mkPoetryEnv.env to get a shell with dev dependencies installed, but how do i also get tests to run? | 11:48:27 | |
i realized i can pass checkPhase = ... to mkPoetryApplication, but i cannot pass the same attrset to mkPoetryEnv, as mkPoetryEnv doesn't like having unuexpected attrs (and I'd like to not repeat myself, as I have to define overlays). i could filter out the checkPhase attribute from the attrset i pass to both function, but it seems a bit hacky. is there a better way? | 12:12:55 | |
| 12:15:13 | |
devShell.${system} = (pkgs.poetry2nix.mkPoetryEnv (pkgs.lib.filterAttrs (n: v: n != "checkPhase") poetryAttrs)).env; this is the workaround i've found | 12:21:18 | |
| ^ugly | 12:21:38 | |
| Do it the other way around? | 12:36:16 | |
Have the shared args in a variable, and pass sharedArgs // { checkPhase = "blah" } to mkPoetryApplication | 12:36:55 | |
| That's what I did anyway | 12:37:03 | |
| yeah, i just don't like having the main package definition be "incomplete" | 12:39:16 | |
| anyway, thx! | 12:39:19 | |
In reply to @octavioduarte:matrix.org I finally got time to look into your issue. TLDR; your project builds fine with latest version of poetry2nix. Long answer: many errors comes from outside, from python ecosystem, you can read short explanation in document. Latest version of poetry2nix contain myriad of overrides for many packages which allow to successfully build you project. I do not know why nixpkgs does not update potry2nix. But you can check amount of overrides in this files https://github.com/nix-community/poetry2nix/tree/master/overrides . To build your project i used flake with overlay over nixpkgs. I'm not experienced user of nix, but i believe you can use flake for poetry2nix with classic nix definitions. Here is flake.nix i used
| 19:41:08 | |
| 16 Feb 2022 | ||
| I am trying to use poetry2nix via flakes, but I need to downgrade poetry due to https://github.com/python-poetry/poetry/issues/4523 . Does anyone have an example of a flake that overrides the poetry version that poetry2nix uses? | 07:14:42 | |