!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

316 Members
https://github.com/nix-community/poetry2nix59 Servers

Load older messages


SenderMessageTime
22 Oct 2023
@pcloud:matrix.orgcpcloud *

Ok, I'm down to 14 tests that won't evaluate, all with the same error:

❯ nix build -f tests pendulum
error:
       … while evaluating the attribute 'drvPath'

         at /nix/store/pk047z3yr0bhjsvbahgl21v2kqnz531p-source/lib/customisation.nix:222:7:

          221|     in commonAttrs // {
          222|       drvPath = assert condition; drv.drvPath;
             |       ^
          223|       outPath = assert condition; drv.outPath;

       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: installer should use `buildPythonPackage` or `toPythonModule` if it is to be part of the Python packages set.
14:42:17
@ppenguin:matrix.orgppenguin set a profile picture.15:19:33
@seirl:matrix.orgseirl joined the room.17:48:37
@seirl:matrix.orgseirlhello, i have a package generated with poetry2nix.mkPoetryApplication and i'd like to override its dependencyEnv so that it contains one additional package, does anyone know how i can achieve that?17:50:37
@seirl:matrix.orgseirlI tried many things, pkg.overrideAttrs, pkg.dependencyEnv.overrideAttrs, pkg.overridePythonAttrs...17:51:10
23 Oct 2023
@globin:toznenetl.chatglobin joined the room.09:03:33
@pcloud:matrix.orgcpcloudOk, down to 9 test that can't evaluate due to either an immediate evaluation recursion error, or a stack overflow (due to infinite recursion)11:40:39
@pcloud:matrix.orgcpcloud * Ok, down to 9 tests that can't evaluate due to either an immediate evaluation recursion error, or a stack overflow (due to infinite recursion) while working on supporting the new bootstrapping process in nixpkgs11:41:03
@pcloud:matrix.orgcpcloudOk, I've now got everything evaluating13:47:43
@pcloud:matrix.orgcpcloud There are a few stragglers for which I need to make some more fixes to build-systems.json and then about 2 tests are failing at build time complaining about missing a poetry (not poetry-core) dependeny 13:49:06
@pcloud:matrix.orgcpcloud * There are a few stragglers for which I need to make some more fixes to build-systems.json and then about 2 tests are failing at build time complaining about missing a poetry (not poetry-core) dependency 13:49:08
@pcloud:matrix.orgcpcloud The fix has basically been to vendor the packages that are at the root of the dependency graph. That's installer, build, 'flit-core, packaging, tomli, pyproject-hooksandwheel` 13:50:22
@pcloud:matrix.orgcpcloud * The fix has basically been to vendor the packages that are at the root of the dependency graph. That's installer, build, flit-core, packaging, tomli, pyproject-hooksandwheel 13:50:37
@pcloud:matrix.orgcpcloud * The fix has basically been to vendor the packages that are at the root of the dependency graph. That's installer, build, flit-core, packaging, tomli, pyproject-hooks 13:50:59
@k900:0upti.meK900Technically the packages that require poetry should be able to work with just poetry in inputs 14:02:48
@k900:0upti.meK900If you can get poetry itself to eval14:03:05
@globin:toznenetl.chatglobin set a profile picture.14:27:37
@pcloud:matrix.orgcpcloudDebugging these leaf packages takes a very very long time. Each change often requires rebuilding everything15:02:04
@pcloud:matrix.orgcpcloud
In reply to @k900:0upti.me
Technically the packages that require poetry should be able to work with just poetry in inputs
It seems like poetry is being discarded from the inputs somewhere
15:07:39
@pcloud:matrix.orgcpcloud Ok, it looks like using pipBuildHook instead of the pypaBuildHook is the fix for that issue 15:47:04
@k900:0upti.meK900
In reply to @pcloud:matrix.org
Ok, it looks like using pipBuildHook instead of the pypaBuildHook is the fix for that issue
Wait, what
18:46:08
@pcloud:matrix.orgcpcloudActually, it doesn't19:27:52
@pcloud:matrix.orgcpcloudWell, some of the remaining failures started passing with it, but two tests with the same problem still fail19:28:40
@pcloud:matrix.orgcpcloud I don't understand why those are different other than that pip machinery and installer + flit stuff is probably different 19:29:10
@pcloud:matrix.orgcpcloudI'll pick it up again tomorrow, I'm close19:29:39
@pcloud:matrix.orgcpcloud pypaBuildHook doesn't work with AFAICT 19:34:39
@pcloud:matrix.orgcpcloud * pypaBuildHook doesn't work with poetry AFAICT 19:34:43
@pcloud:matrix.orgcpcloudBut pip can definitely install poetry projects19:35:40
@k900:0upti.meK900Do you have a WIP branch somewhere?19:35:44
@pcloud:matrix.orgcpcloudLemme push it up19:35:53

Show newer messages


Back to Room ListRoom Version: 6