!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

331 Members
https://github.com/nix-community/poetry2nix63 Servers

Load older messages


SenderMessageTime
20 Apr 2022
@FRidh:matrix.orgFRidh
In reply to @adis:blad.is
I think we in Nix are one of very few users to actually bootstrap Python environments in a sandbox
Maybe I misunderstood, but actually with pep 517/518 builds it is recommended also that front-ends create sandboxes. pip does this as well nowadays (though it's not very strict), and tools are specified in pyproject.toml. I'm surprised this isn't in the poetry lock files yet.
17:11:28
@ahsmha:matrix.orgrh joined the room.23:31:43
29 Apr 2022
@nazarewk:matrix.orgnazarewk joined the room.08:38:37
@nazarewk:matrix.orgnazarewkAny idea how do i install multiple poetry2nix apps (with executable scripts) into a single shell?08:39:30
@nazarewk:matrix.orgnazarewk * Any idea how do i install multiple poetry2nix apps (with executable scripts) in editable mode into a single shell?08:39:40
@nazarewk:matrix.orgnazarewk seems like mkPoetryEditablePackage does not add executables 08:39:53
@nazarewk:matrix.orgnazarewk I did use mkPoetryEnv with editablePackageSources, but the sources of my package still reside in /nix/store instead of current directory? 13:35:49
@nazarewk:matrix.orgnazarewkmaybe i did something really wrong, now it seems to work13:49:22
@nazarewk:matrix.orgnazarewkRedacted or Malformed Event13:49:48
2 May 2022
@jairo:recallstack.icuJairo Llopis
In reply to @nazarewk:matrix.org
I did use mkPoetryEnv with editablePackageSources, but the sources of my package still reside in /nix/store instead of current directory?
are you using flakes?
06:30:00
@adis:blad.isadisbladis
In reply to @jairo:recallstack.icu
are you using flakes?
I'm so annoyed by how flakes changes the semantics of paths...
06:32:59
@jairo:recallstack.icuJairo Llopis
In reply to @adis:blad.is
I'm so annoyed by how flakes changes the semantics of paths...
Yep, it's a bit annoying. However I love everything else of flakes. I'm using https://github.com/edolstra/flake-compat/pull/39 in some places to bridge the gap
06:35:28
@adis:blad.isadisbladis
In reply to @jairo:recallstack.icu
Yep, it's a bit annoying. However I love everything else of flakes. I'm using https://github.com/edolstra/flake-compat/pull/39 in some places to bridge the gap
At a previous client I used a modified version of that which doesn't do string interpolation of paths
06:41:43
@adis:blad.isadisbladisIt was kinda like that PR, but a bit more aggressive in not pulling things into the store06:43:24
@adis:blad.isadisbladisAnd I don't really think that lazily pulling things into the store is the solution here either06:44:31
4 May 2022
@nazarewk:matrix.orgnazarewkyes i am using flakes06:10:05
@nazarewk:matrix.orgnazarewkby the way i somehow managed to get the editable mode to work 08:07:09
5 May 2022
@silvio:booq.orgSilvio joined the room.23:08:01
6 May 2022
@a7p:matrix.orgAlbrecht joined the room.07:33:18
@a7p:matrix.orgAlbrechtGood morning - I'm trying to build "matrix-webhook" via poetry2nix, but I'm encounting infinite recursion in buildInputs and don't know how to debug it. I think I need to find out which dependency is the problem and then, may be replace it with a hopefully existing nixpkg-provided version of that package?07:36:50
@adis:blad.isadisbladis
In reply to @a7p:matrix.org
Good morning - I'm trying to build "matrix-webhook" via poetry2nix, but I'm encounting infinite recursion in buildInputs and don't know how to debug it. I think I need to find out which dependency is the problem and then, may be replace it with a hopefully existing nixpkg-provided version of that package?
You cannot replace it with an existing nixpkgs package. You'll have to figure it out and break the cycle somehow.
07:51:45
@a7p:matrix.orgAlbrechtis there any best practice on how to figure it out? I looked at a commit fixing scm-tools, but did not learn how to do it from it.08:01:17
@adis:blad.isadisbladis --show-trace and stare at the output a bit 08:04:22
@a7p:matrix.orgAlbrecht:/ I'm currently working in nix repl and could not find anything on how to enable traces there.08:05:11
@adis:blad.isadisbladis
In reply to @a7p:matrix.org
:/ I'm currently working in nix repl and could not find anything on how to enable traces there.
Are you talking about https://github.com/nim65s/matrix-webhook
08:11:21
@adis:blad.isadisbladisI cloned it and built it just fine08:13:03
@a7p:matrix.orgAlbrecht
In reply to @adis:blad.is
Are you talking about https://github.com/nim65s/matrix-webhook
Exactly - till now I used mach-nix to install if from pypi, but now I need to patch it a bit, since influxdb send's webhook-messages formated in the wrong way.
08:13:09
@a7p:matrix.orgAlbrecht
In reply to @adis:blad.is
I cloned it and built it just fine
Oh! Then I'm messing up on a more general level :/.
08:13:53
@a7p:matrix.orgAlbrecht so just to be clear, poetry2nix.mkPoetryApplication { projectDir = ./.; } builds for you? 08:14:45
@adis:blad.isadisbladisYes08:14:59

Show newer messages


Back to Room ListRoom Version: 6