Poetry2nix | 322 Members | |
| https://github.com/nix-community/poetry2nix | 62 Servers |
| Sender | Message | Time |
|---|---|---|
| 20 Apr 2024 | ||
| there are now 15 failing tests, from 16 | 16:12:25 | |
| 21 Apr 2024 | ||
| And some other PRs too, let me know if there is any question | 07:42:36 | |
| 22 Apr 2024 | ||
| 06:20:57 | ||
| Ah i just found this dedicated room. At my company we are trying out Nix with our Python services and a few people are struggling with some areas of poetry2nix. That's why i decided to improve the documentation: K900 Do you who know i can ping for some documentation improvement MRs for poetry2nix like https://github.com/nix-community/poetry2nix/pull/1600 Maybe you? adisbladis seems to be busy, and i couldn't find any other listed maintainer. | 06:23:59 | |
| This should probably get a merge https://github.com/nix-community/poetry2nix/pull/1600 | 20:13:57 | |
| Actually, this code doesn't work in flakes. | 21:34:36 | |
| https://github.com/nix-community/poetry2nix/blob/master/vendor/pyproject.nix/fetchers/default.nix#L112-L116 | 21:34:50 | |
| 21:34:59 | |
netrc_file is always "" because nixPath is always [] in pure-eval | 21:35:17 | |
| 23:53:48 | ||
| 23 Apr 2024 | ||
| 07:52:33 | ||
| Does it need to be that strict in fixed output derivations? Private git repos work too. | 09:49:56 | |
In reply to @matthewcroughan:defenestrate.it Thanks for the feedback. The Nix flake variant indeed was missing in my PR. I added a few paragraphs how to add env vars to the nix-daemon (i think this is the only working way for flakes). Could you take a look again? btw, thanks for your awesome talks on Nix for Docker (the main reason my company is willing to try Nix) and for Riscv. | 19:55:13 | |
In reply to @truh:matrix.orgAccording to my current understanding the correct way is to not let code inside the sandbox fetch things with credentials (due to security concerns) but let nix do that outside of the sandbox. I think there are some special builtins.fetchers that can take care of that. I may take a look at this once our Python backend services run with poetry2nix and Docker. | 19:59:28 | |
In reply to @malteneuss:matrix.orgThanks! | 21:59:21 | |
No, I believe there is no way to pass the NETRC file in, even following your documentation, because poetry2nix has the above bug in it that makes stuff only work via -I which isn't available in pure-eval. | 21:59:48 | |
| I'm triple checking that here | 21:59:55 | |
| Yeah, fixed it here anyway https://github.com/nix-community/poetry2nix/pull/1612 | 22:44:03 | |
| 25 Apr 2024 | ||
| 14:44:15 | ||
| 17:41:30 | ||
| 26 Apr 2024 | ||
In reply to @k900:0upti.meIs it possible we could go over this again please? I'm really trying to understand it, and would like to understand this code you wrote a bit better https://github.com/nix-community/poetry2nix/blob/master/default.nix#L233-L285 | 13:11:23 | |
| https://github.com/NixOS/nixpkgs/blob/nixos-23.11/pkgs/development/python-modules/apsw/default.nix#L39 | 13:11:36 | |
apsw is a derivation that exists in nixpkgs. When poetry2nix encounters apsw in the pyproject.toml, does it use any information from nixpkgs that is already there, or is it making a completely unique derivation that doesn't re-use anything from nixpkgs? | 13:12:07 | |
| I'm about to submit a fix for apsw in the overrides.nix in poetry2nix, but want to understand it more first | 13:12:26 | |
When poetry2nix sees apsw uses the sources from pypi, which are wrong because they contain a setup.py which breaks the build, because it doesn't do the same thing as the setup.py from GitHub. | 13:13:00 | |
* When poetry2nix sees apsw uses the sources from pypi, which are wrong because they contain a setup.py which breaks the build, because it doesn't do the same thing as the setup.py from GitHub. | 13:13:09 | |
In addition sqlite is not in the buildInputs of the poetry2nix generated derivation, which implies nothing is added to poetry2nix by the pre-existing nixpkgs derivation | 13:14:04 | |
| Here's a minimal inputs = { outputs = { self, nixpkgs, flake-utils, poetry2nix }:
}
| 13:15:34 | |
| * Here's a minimal
| 13:15:56 | |
| and a pyproject.toml
| 13:16:11 | |