!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
15 Jun 2022
@vengmark2:matrix.orgl0b0 dotlambda: I'm installing ansible-lint through poetry2nix though. 04:52:54
@vengmark2:matrix.orgl0b0(So that non-Nix users can use the repo.)04:53:16
@vengmark2:matrix.orgl0b0Scratch 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
@vengmark2:matrix.orgl0b0 * 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
@atharvaamritkar:matrix.orgwiredhikari joined the room.10:03:40
20 Jun 2022
@dylanrjohnston-fz:matrix.orgdylanrjohnston-fz joined the room.07:10:36
21 Jun 2022
@b42:matrix.orgb42 joined the room.11:57:00
@b42:matrix.orgb42 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:matrix.orgb42Shell.nix in question: https://github.com/trezor/trezor-firmware/blob/onvej-sl/poetry2nix/ci/shell.nix#L57-L5913:29:12
24 Jun 2022
@arpd:matrix.orgarpd joined the room.17:08:58
@arpd:matrix.orgarpd 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:matrix.orgarpd 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:0upti.meK900Post your flake17:14:01
@arpd:matrix.orgarpd K900: Sorry for the wait, had to transcribe and edit sensitive bits: https://gist.github.com/arpd/cab98d74d45680988fa1dc4f0e2369b3 17:30:56
@arpd:matrix.orgarpdI also am fine with abandoning mach-nix, I can get all of my python dependencies set up in the poetry toml17:31:19
@k900:0upti.meK900Yeah mixing the two is probably not the best idea 17:31:39
@arpd:matrix.orgarpdIt didn't make a difference though;17:32:09
@k900:0upti.meK900Can you build a minimal reproducible example?17:32:54
@arpd:matrix.orgarpdSure give me a moment17:33:41
@arpd:matrix.orgarpd K900: https://gist.github.com/arpd/cab98d74d45680988fa1dc4f0e2369b3 17:50:21
@arpd:matrix.orgarpdI think this accurately conveys my intentions..17:50:35
@k900:0upti.meK900And it doesn't work? 17:51:23
@arpd:matrix.orgarpdRefresh, i've added a comment17:51:54
@k900:0upti.meK900Oh 17:51:55
@arpd:matrix.orgarpdIt shows the error17:51:56
@k900:0upti.meK900 You want pkgs.python38 17:52:02
@k900:0upti.meK900 Not the string "python38" 17:52:10
@arpd:matrix.orgarpdHuh.. I was sure I saw that in the readme17:52:17
@arpd:matrix.orgarpdIf not then wow that's a big blunder17:52:26
@arpd:matrix.orgarpdOh right, okay, that's a transcribe error on my part; Remember my mentioning infinite recursion? I've added another comment17:53:34

There are no newer messages yet.


Back to Room ListRoom Version: 6