| 15 Jun 2022 |
l0b0 | dotlambda: I'm installing ansible-lint through poetry2nix though. | 04:52:54 |
l0b0 | (So that non-Nix users can use the repo.) | 04:53:16 |
l0b0 | Scratch that. Turns out in this repo ansible-lint is installed with Nix and ansible itself is installed with Poetry. I'll fix that. Sorry for the noise. | 21:07:07 |
l0b0 | * Scratch that. Turns out in this repo pkgs.ansible-lint is installed with Nix and ansible itself is installed with Poetry. I'll fix that. Sorry for the noise. | 21:08:34 |
| 18 Jun 2022 |
| wiredhikari joined the room. | 10:03:40 |
| 20 Jun 2022 |
| dylanrjohnston-fz joined the room. | 07:10:36 |
| 21 Jun 2022 |
| b42 joined the room. | 11:57:00 |
b42 | Hello! I'm looking into replacing "poetry shell" with "nix-shell" in our repo and it seems to work great except the one package contained directly in the repo is not visible in the environment: https://github.com/trezor/trezor-firmware/blob/onvej-sl/poetry2nix/pyproject.toml#L10 Explicitly listing it under editablePackageSources doesn't help. I'm not very familiar with python packaging and probably overlooking something, any hints what to look for? | 13:28:41 |
b42 | Shell.nix in question: https://github.com/trezor/trezor-firmware/blob/onvej-sl/poetry2nix/ci/shell.nix#L57-L59 | 13:29:12 |
| 24 Jun 2022 |
| arpd joined the room. | 17:08:58 |
arpd | Is using poetry2nix purely for environment setup a reasonable use case? I couldn't find much in the docs to help, I'm not interested in building a poetry project, but rather I want to populate a python environment with packages, and if necessary fetch their dependencies and build them locally if cached versions are unavailable | 17:10:31 |
arpd | I don't mind having a poetry.lock file but after trying that and adding the result of mkApplication or whatever, I got an infinite recursion error when adding the result to buildinputs of mkShell | 17:11:39 |
K900 | Post your flake | 17:14:01 |
arpd | K900: Sorry for the wait, had to transcribe and edit sensitive bits: https://gist.github.com/arpd/cab98d74d45680988fa1dc4f0e2369b3 | 17:30:56 |
arpd | I also am fine with abandoning mach-nix, I can get all of my python dependencies set up in the poetry toml | 17:31:19 |
K900 | Yeah mixing the two is probably not the best idea | 17:31:39 |
arpd | It didn't make a difference though; | 17:32:09 |
K900 | Can you build a minimal reproducible example? | 17:32:54 |
arpd | Sure give me a moment | 17:33:41 |
arpd | K900: https://gist.github.com/arpd/cab98d74d45680988fa1dc4f0e2369b3 | 17:50:21 |
arpd | I think this accurately conveys my intentions.. | 17:50:35 |
K900 | And it doesn't work? | 17:51:23 |
arpd | Refresh, i've added a comment | 17:51:54 |
K900 | Oh | 17:51:55 |
arpd | It shows the error | 17:51:56 |
K900 | You want pkgs.python38 | 17:52:02 |
K900 | Not the string "python38" | 17:52:10 |
arpd | Huh.. I was sure I saw that in the readme | 17:52:17 |
arpd | If not then wow that's a big blunder | 17:52:26 |
arpd | Oh right, okay, that's a transcribe error on my part; Remember my mentioning infinite recursion? I've added another comment | 17:53:34 |