!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

315 Members
https://github.com/nix-community/poetry2nix | Poetry2nix is unmaintained https://github.com/nix-community/poetry2nix/issues/186561 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
20 Jun 2024
@eightysteele:matrix.orgAaron Steele

here's my default.nix

{ pkgs ? import <nixpkgs> { } }:
let
  poetry2nix = pkgs.callPackage (builtins.fetchTarball
    "https://github.com/nix-community/poetry2nix/archive/master.tar.gz") { };
  python312 = pkgs.python312;
  keyrings = pkgs.python312Packages.keyrings-google-artifactregistry-auth;
  gexEnv = poetry2nix.mkPoetryEnv {
    projectDir = ./.;
    editablePackageSources = { gex = ./gex; };
    python = python312;
    pyproject = ./pyproject.toml;
    poetrylock = ./poetry.lock;
    preferWheels = true;
  };
in pkgs.mkShell {
  buildInputs = [ gexEnv pkgs.google-cloud-sdk keyrings ];
  shellHook = ''
    # keyrings are available here and I'm authenticated in google cloud
  '';
}
17:16:02
21 Jun 2024
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)
In reply to @elonsroadster:matrix.org
Does anyone have any what is going on with libcst?

seems like its not extracting a tar archive that it should be:

error: opening file '/nix/store/201zc10pdd4ls1gmpsmbl710lm0q6ai7-libcst-1.1.0.tar.gz/native/Cargo.lock': Not a directory

that looks like the override is broken. I encountered something similar recently trying to wrap polaris.

But the nixpkgs libcst module - at least in master - uses fetchFromGitHub, so it really shouldn't have a tarball. And I don't see an override in poetry2nix Hm.

06:12:24
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)does poetry2nix at all try to detect the build system? or is it all manual overrides?06:12:38
@elonsroadster:matrix.orgcolonelpanicI think it might be the cargo tarball?06:24:00
@janik0:matrix.org@janik0:matrix.org left the room.09:14:53
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)I think it's the source tarball, where it's trying to get the Cargo.lock from?12:33:56
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)you got a minimal reproducing example?12:37:03
@linus:schreibt.jetzt@linus:schreibt.jetzt left the room.14:03:29
25 Jun 2024
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯ How much of a sin is overrides = defaultPoetryOverrides.extend (_: _: pkgs.python311Packages);? 01:50:45
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)
In reply to @julius:mtx.liftm.de
How much of a sin is overrides = defaultPoetryOverrides.extend (_: _: pkgs.python311Packages);?
that sounds like a good way to get 'weird' problems ;).
13:12:19
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)no later then when your pyproject.toml says 3.12 and you forgot to adjust this ^^13:12:38
26 Jun 2024
@elonsroadster:matrix.orgcolonelpanic

I'm getting

➜ LD_LIBRARY_PATH='' nix build '.?submodules=1#railbird-api' --dry-run --impure --show-trace
warning: Git tree '/home/imalison/Projects/railbird' is dirty
trace: warning: pythonForBuild (from python*) has been renamed to pythonOnBuildForHost
trace: warning: pythonForBuild (from python*) has been renamed to pythonOnBuildForHost
trace: warning: pythonForBuild (from python*) has been renamed to pythonOnBuildForHost
evaluating derivation 'git+file:///home/imalison/Projects/railbird#railbird-api'error: stack overflow (possible infinite recursion)

after updating the nixpkgs and poetry2nix versions in my flake.

sort of at a loss as to how to try to even ascertain which package is causing this because why depends and dry run are failing with the same issue.

the only thing I can think of is to start putting traces in the poetry2nix code itself. Does anyone have any idea how I can debug this?

00:00:10
28 Jun 2024
@howird:matrix.orgHoward Nguyen-Huu joined the room.02:44:28
30 Jun 2024
@elonsroadster:matrix.orgcolonelpanicturns out that my nixpkgs was too out of date for the newer poetry2nix that I was using04:22:56
1 Jul 2024
@olaf_freund:matrix.orgOlaf Krasicki Freund joined the room.21:57:20
4 Jul 2024
@adis:blad.isadisbladis
In reply to @tyberius_prime:matrix.org
adisbladis: Hi, are you still working on poetry2nix?

For various reasons I haven't worked on anything Nix related for a bit.

The reasons are many-fold:

  • Personal (I don't want to get into details here, not relevant to the overall community regardless)

  • I don't exactly enjoy the maintenance aspect
    Overrides et al was something I always saw as a stop gap, but now takes up the brunt of maintenance time. This is not what I enjoy working on.

  • Ongoing political conflicts in Nix
    I have extremely low patience for social BS at the best of times, this is too much to handle.

I have some pretty large changes that I want to do to how Nixpkgs deals with Python in general that would break things drastically for some people. Dealing with any sort of social fallout in this climate is something I see as untenable.

  • I barely even use Python myself any more

  • Companies make money off poetry2nix, I make none
    This reality makes me question how much unpaid time I should put into the project.

00:14:25
@adis:blad.isadisbladis
In reply to @tyberius_prime:matrix.org
adisbladis: Hi, are you still working on poetry2nix?
*

For various reasons I haven't worked on anything Nix related for a bit.

The reasons are many-fold:

  • Personal (I don't want to get into details here, not relevant to the overall community regardless)
  • I don't exactly enjoy the maintenance aspect
    Overrides et al was something I always saw as a stop gap, but now takes up the brunt of maintenance time. This is not what I enjoy working on. I want to work on fundamentals, not what I consider to be a "software janitor".
  • Ongoing political conflicts in Nix
    I have extremely low patience for social BS at the best of times, this is too much to handle.

I have some pretty large changes that I want to do to how Nixpkgs deals with Python in general that would break things drastically for some people. Dealing with any sort of social fallout in this climate is something I see as untenable.

  • I barely even use Python myself any more
  • Companies make money off poetry2nix, I make none
    This reality makes me question how much unpaid time I should put into the project.
00:15:19
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus) adisbladis: Thanks for the explanation. Glad to hear you haven't been run over by a bus or something, I do tend to worry. 05:08:05
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)(and I do think all you reasons are perfectly valid!).05:08:56
5 Jul 2024
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)So, I'm 98% certain that preferWheels just doesn't work.12:34:55
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)but I sure have trouble tracing the code and finding out why.12:49:32
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)correction, it works for some packages and does not for others ?!14:22:16
@ma27:nicht-so.sexyma27 joined the room.18:32:39
@sliedes:hacklab.fiSami Liedes joined the room.23:02:15
8 Jul 2024
@axgxpxyxix:matrix.orgaxgxpxyxix joined the room.13:34:35
9 Jul 2024
@FRidh:matrix.orgFRidhIt would be great if this PR could be merged adding a cargo hash https://github.com/nix-community/poetry2nix/pull/172609:10:13
@truh:matrix.orgtruhI'm trying to investigate why opencv is no longer building (probably the same as https://github.com/nix-community/poetry2nix/issues/1715). Do the opencv packages in poetry2nix rely on the instructions from https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/opencv/4.x.nix ?10:37:52
10 Jul 2024
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)
In reply to @FRidh:matrix.org
It would be great if this PR could be merged adding a cargo hash https://github.com/nix-community/poetry2nix/pull/1726
my work in progress giant PR should fix that 'en passant'
10:02:48
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)
In reply to @truh:matrix.org
I'm trying to investigate why opencv is no longer building (probably the same as https://github.com/nix-community/poetry2nix/issues/1715).

Do the opencv packages in poetry2nix rely on the instructions from https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/opencv/4.x.nix ?
I don't think they do, reading the source.
10:04:08
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)and once again, my mega-PR fixes that as well.10:04:39

Show newer messages


Back to Room ListRoom Version: 6