!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

315 Members
https://github.com/nix-community/poetry2nix60 Servers

Load older messages


SenderMessageTime
7 Nov 2023
@k900:0upti.meK900I dunno20:51:46
@k900:0upti.meK900Run it?20:51:49
@k900:0upti.meK900Whatever you were trying to do in the first place20:51:56
@fractivore:cyberia.club@fractivore:cyberia.clubShould I contribute it to nixpkgs or something? poetry2nix said something about pushing changes upstream20:52:49
@fractivore:cyberia.club@fractivore:cyberia.clubI'm pretty new to making open source contributions20:52:57
@k900:0upti.meK900You should contribute the overrides that worked for you20:54:51
@k900:0upti.meK900But putting the whole thing into nixpkgs will require a different build process20:55:03
@k900:0upti.meK900The current policy with Python packages in nixpkgs is to not use tools like poetry2nix, but use nixpkgs packages directly20:55:32
@fractivore:cyberia.club@fractivore:cyberia.clubOh, okay, I guess I'll just pull the build-systems.json file where it says to put the overrides in the edgecases.md file20:57:15
8 Nov 2023
@adis:blad.isadisbladis
In reply to @k900:0upti.me
The current policy with Python packages in nixpkgs is to not use tools like poetry2nix, but use nixpkgs packages directly
I always found it funny how that is very strict but with languages like Rust and Go we're basically "yolo"
02:34:49
@reckenrode:matrix.org@reckenrode:matrix.orgRedacted or Malformed Event03:04:08
@adis:blad.isadisbladis I'm thinking about an alternative to preferWheel/preferWheels that's less opaque.
I think it's currently a bit hard to understand when/why it's not providing you with wheels https://github.com/nix-community/poetry2nix/issues/1403#issuecomment-1797861008
09:01:39
@adis:blad.isadisbladis Maybe preferWheel (the singular option) should be removed in favour of a requireWheel or similar that hard-fails when it can't be selected 09:02:16
@adis:blad.isadisbladisThe hard-fail could provide an error message that explains common failure modes, and maybe dump some platform information so you can understand what's going on09:03:01
@ryoschin:matrix.org@ryoschin:matrix.org joined the room.12:18:01
@ryoschin:matrix.org@ryoschin:matrix.org
In reply to @k900:0upti.me
The current policy with Python packages in nixpkgs is to not use tools like poetry2nix, but use nixpkgs packages directly
Yay...
12:19:10
@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

Show newer messages


Back to Room ListRoom Version: 6