!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
14 Jul 2022
@k900:0upti.meK900I think 20:42:02
@sephi:matrix.orgsephiIt looks like it’s still 1.1.12 https://github.com/NixOS/nixpkgs/blob/release-22.05/pkgs/development/python-modules/poetry/default.nix#L35 :/ I’ll use the one from master20:49:02
@sephi:matrix.orgsephiUsing 1.1.14 and clearing the cache worked, thanks!20:53:31
15 Jul 2022
@sephi:matrix.orgsephi

Now I’m getting a collision error:

error: builder for '/nix/store/hfsfhk6p3kp7cl7vrhc4a0ahnixsb5dv-python3-3.9.13-env.drv' failed with exit code 25;
       last 1 log lines:
       > error: collision between `/nix/store/fiyljlyywkmri69jvnwfkm8v8yfzpaw6-python3.9-django-3.0.14/bin/.django-admin-wrapped' and `/nix/store/9n0j67gwj13c2jfkplc524r8kqf4jnc4-python3.9-mysite-0.1.0/bin/.django-admin-wrapped'

My derivation is really basic:

  server = poetry2nix.mkPoetryApplication {
    projectDir = ./.;
    python = python39;
  };

As soon as I’m using server.dependencyEnv in a systemd unit I’m getting the collision error. Using just server works (I guess because it doesn’t include any binaries).

Is there a way to tell nix to not try to add the bin directory to the path?

09:22:57
@sephi:matrix.orgsephi I ended up using server.dependencyEnv.overrideAttrs (_: { pathsToLink = [ "/lib" ]; }) and it worked (I also tried pathsToLink = [ ] but the lib directory was missing in the environment, I’m not sure why) 10:55:34
16 Jul 2022
@adis:blad.isadisbladis
In reply to @k900:0upti.me
1.1.14 should be backported to 22.05
It was backported already
08:48:29
@worldofgeese:one.ems.hostworldofgeeseMaybe a dumb question but if you're using direnv for virtual environments and just using Poetry for the binary output of your program and not anything of the poetry run, shell "baggage" is the appropriate thing to do to put all your development dependencies into your devShell?11:08:13
@k900:0upti.meK900 You can use mkPoetryEnv as your devShell 11:08:53
@worldofgeese:one.ems.hostworldofgeeseOr what's best practice? Because I've found with direnv and then a poetry shell my terminal session turns into hieroglyphics11:08:59
@worldofgeese:one.ems.hostworldofgeese K900: and then just skip any of poetry's own commands, right? 11:10:25
@k900:0upti.meK900What commands?11:10:33
@worldofgeese:one.ems.hostworldofgeeseWell poetry run and shell11:10:41
@k900:0upti.meK900Yes11:10:46
@adis:blad.isadisbladis
In reply to @worldofgeese:one.ems.host
Or what's best practice? Because I've found with direnv and then a poetry shell my terminal session turns into hieroglyphics
You do not want to call poetry shell from direnv
11:19:30
@adis:blad.isadisbladis Either do what K900 is saying and use mkPoetryEnv or use some indirection in .envrc to activate the venv.
Iirc there is some thing for that on the direnv wiki.
11:21:25
@worldofgeese:one.ems.hostworldofgeeseWhat do y'all think of PDM?20:10:12
@k900:0upti.meK900I don't really see why I'd want to use it over Poetry20:12:44
@k900:0upti.meK900 Like, it's not bad, but it also doesn't really do anything Poetry doesn't already do, except the __pypackages__ thing I guess 20:14:50
@k900:0upti.meK900 And the __pypackages__ thing relies on a horrible hack and will remain that way until the PEP is accepted and implemented 20:17:01
@k900:0upti.meK900Which might not even happen20:17:12
17 Jul 2022
@slby:matrix.orgslby joined the room.20:08:28
18 Jul 2022
@trexd:matrix.orgtrexd joined the room.17:46:02
20 Jul 2022
@malwares:matrix.orgJoël Perras joined the room.15:42:02
21 Jul 2022
@dearrude:nitro.chatEbrahim joined the room.15:05:21
25 Jul 2022
@aljosa.mohorovic:matrix.orgAljoša Mohorović joined the room.15:23:47
@aljosa.mohorovic:matrix.orgAljoša Mohorovićwould it be possible to remove pyopenssl as a dependency on apple m1 arch?15:24:49
@k900:0upti.meK900A dependency of what?15:25:00
@aljosa.mohorovic:matrix.orgAljoša Mohorovićpoetry15:29:38
@k900:0upti.meK900I don't think so15:29:53
@k900:0upti.meK900At least it's definitely not trivial15:29:56

There are no newer messages yet.


Back to Room ListRoom Version: 6