!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

312 Members
https://github.com/nix-community/poetry2nix58 Servers

Load older messages


SenderMessageTime
8 Nov 2023
@k900:0upti.meK900Are you packaging your thing for nixpkgs? 12:19:27
@k900:0upti.meK900Or for personal use? 12:19:32
@k900:0upti.meK900If you're building it with the intention of upstreaming into nixpkgs, you'll need to package your missing dependencies and your thing using nixpkgs tooling 12:20:01
@ryoschin:matrix.org@ryoschin:matrix.orgOh, personal use12:20:42
@k900:0upti.meK900Then you can use poetry2nix 12:21:06
@ryoschin:matrix.org@ryoschin:matrix.org
In reply to @ryoschin:matrix.org
Yay...
I apologize for this one, I didn't dig deep enough into your conversation
12:21:25
@ryoschin:matrix.org@ryoschin:matrix.org
In reply to @k900:0upti.me
Then you can use poetry2nix
Should I then paste my previous question here, or?
12:22:09
@k900:0upti.meK900Just use the example flake in the poetry2nix repo12:22:25
@ryoschin:matrix.org@ryoschin:matrix.org Using the flake section is too small for me to spot it.. I swear I thought there was only the shell example! Sorry for wasting your time 12:23:56
@ryoschin:matrix.org@ryoschin:matrix.org Is there a way to automatically call poetry shell? It seems like MyPy cannot automatically detect packages downloaded via poetry, however when used in poetry shell, it works. 14:51:51
@ryoschin:matrix.org@ryoschin:matrix.org * Is there a way to automatically call poetry shell? It seems like MyPy cannot automatically detect packages downloaded via poetry, however when used in poetry shell, it can. 14:52:03
@ryoschin:matrix.org@ryoschin:matrix.org * Is there a way to automatically call poetry shell? It seems like MyPy cannot automatically detect packages downloaded via poetry, however when installed with poetry add mypy and used in poetry shell, it can. 14:54:22
@k900:0upti.meK900You should not be installing stuff through poetry at all14:56:40
@k900:0upti.meK900You should just use the Nix shell14:56:44
@k900:0upti.meK900And mypy should respect PYTHONPATH from that14:56:49
@ryoschin:matrix.org@ryoschin:matrix.orgO-oh... So, I do not use pyproject.toml to specify the dependencies, and instead use flake.nix to specify the python311Packages.package?14:59:00
@k900:0upti.meK900No14:59:26
@k900:0upti.meK900You use pyproject.toml14:59:29
@k900:0upti.meK900Which poetry2nix translates to a Nix shell definition14:59:35
@k900:0upti.meK900(see the example)14:59:38
@k900:0upti.meK900Oh wait14:59:56
@k900:0upti.meK900Shit14:59:58
@k900:0upti.meK900The example is bad15:00:01
@k900:0upti.meK900/me makes a mental note to fix the example15:00:08
@ryoschin:matrix.org@ryoschin:matrix.org
In reply to @k900:0upti.me
Which poetry2nix translates to a Nix shell definition
I guess that does explain the point of poetry2nix
15:00:42
@ryoschin:matrix.org@ryoschin:matrix.orgSo I must start it with nix-shell? I cannot use flake.nix with direnv to automatically do it?15:03:04
@k900:0upti.meK900You can use flake.nix15:03:46
@k900:0upti.meK900You just need to change the flake a little bit15:03:52
@petrichor:envs.net@petrichor:envs.net confusingly, the corresponding nixs flakes command to nix-shell is nix develop 15:04:24
@petrichor:envs.net@petrichor:envs.net that should work with a flake that has a devshells.${your system}.default output 15:04:48

Show newer messages


Back to Room ListRoom Version: 6