!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
22 May 2024
@k900:0upti.meK900You're looking at the drv file I think11:47:39
@x10an14:matrix.orgx10an14Hmm, okay. I guess a foray into learning nix-tree is next then, if I can afford the time.11:48:40
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:25:57
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:28:11
@elonsroadster:matrix.orgcolonelpanic changed their display name from elonsroadster to colonelpanic.20:10:20
@elonsroadster:matrix.orgcolonelpanicI feel like I'm probably missing something obvious, but I'm curious about what the easiest way to support a dependency that is not in nixpkgs or pypi is. Should I just use the built in nixpkgs tooling to define a nix build for that package and then add an override20:11:37
23 May 2024
@truh:matrix.orgtruh
In reply to @elonsroadster:matrix.org
I feel like I'm probably missing something obvious, but I'm curious about what the easiest way to support a dependency that is not in nixpkgs or pypi is. Should I just use the built in nixpkgs tooling to define a nix build for that package and then add an override
I have poetry git dependencies work fine with poetry2nix in my experience. Even with private repos.
08:20:58
@truh:matrix.orgtruh
In reply to @elonsroadster:matrix.org
I feel like I'm probably missing something obvious, but I'm curious about what the easiest way to support a dependency that is not in nixpkgs or pypi is. Should I just use the built in nixpkgs tooling to define a nix build for that package and then add an override
* poetry git dependencies work fine with poetry2nix in my experience. Even with private repos.
08:21:45
@j0xxx:nixbitcoin.orgwk changed their display name from j0xxx to wk.18:05:29
24 May 2024
@lambadada:matrix.orglambadada joined the room.18:52:13
27 May 2024
@jee_mj:matrix.orgmj joined the room.10:43:05
30 May 2024
@mosquitsch:matrix.orgMatthias Q joined the room.12:02:31
@mosquitsch:matrix.orgMatthias QRedacted or Malformed Event12:02:43
@mosquitsch:matrix.orgMatthias QHey Is it possible to have a check phase in mkPoetryApplication? I want to run unit tests there as well.12:03:37
@tcelferact:matrix.orgtcelferactRedacted or Malformed Event19:51:09
@tcelferact:matrix.orgtcelferact

Hi all,

I'm trying to build scikit-learn 1.5.0, and their changelog says they've switched to meson: https://scikit-learn.org/stable/whats_new/v1.5.html#version-1-5-0. When I add meson-python to nativeBuildInputs, metadata generation fails when running this file: https://github.com/scikit-learn/scikit-learn/blob/5491dc695dbe2c9bec3452be5f3c409706ff7ee7/sklearn/_build_utils/version.py

This seems like an opportunity to learn more about poetry2nix and submit a PR. Are there any good resources people can recommend on translating a meson build to a poetry2nix override?

Thanks!

20:18:15
7 Jun 2024
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)

I'm trying to patch the cython version used by a package:

peewee = super.peewee.overridePythonAttrs (old: let
            old_buildInputs = old.buildInputs or [];
            old_cython_filter = input: (builtins.substring 0 7 input.name) != "cython-";
          in {
            buildInputs =
              (builtins.filter old_cython_filter old_buildInputs);
              ++ [super.cython_0];
          });

But all I get is " error: value is a list while a set was expected" ...

Can anybody spot what I'm doing wrong?

12:11:44
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)or tell me if this is the wrong way to go about the problem in the first place12:12:01
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)ah, it's the input.name that's apperantly not an all entries of the list12:18:28
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)but it just ignores my filtered (native) buildInputs - I mean it filters them all right, I can trace that, but at the end cython 3.0 is back on the derivation.12:36:15
@k900:0upti.meK900It could be propagated12:37:39
@k900:0upti.meK900By something12:37:45
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)yeah by the buildSystem that's set in poetry2nix13:00:06
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)but I don't think I can override that downstream.13:00:14
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)So a fork & PR it is...13:00:23
8 Jun 2024
@else42:tchncs.deelse42 joined the room.07:51:31
@else42:tchncs.deelse42what's the standard way to ignore/skip some dependencies, that are included by default, but are not needed for productive use?07:56:27
@kritnich:kritni.ch@kritnich:kritni.ch joined the room.20:45:49
@kritnich:kritni.ch@kritnich:kritni.chHello, I'm having issues with building opencv using poetry2nix. It happens both for 4.9 and 4.10. https://dpaste.com/CWX5GZVEQ I found some issues on opencv related to this but those have been fixed in these two versions already so I'm not sure why it is happening again. The pure package in nixpkgs works fine.20:54:59
@kritnich:kritni.ch@kritnich:kritni.ch preferWheels = true fixes it for now 22:27:33

Show newer messages


Back to Room ListRoom Version: 6