Open Ma27 opened 6 months ago
Sorry. I am not maintaining this package and it feels like @adisbladis has dropped the ball. I think, I will give out the commit bit to someone else, if we don't hear soon back from him.
This is really a nixpkgs Python infrastructure issue inherited by poetry2nix. See https://github.com/NixOS/nixpkgs/issues/272178.
Describe the issue
Consider the following scenario:
The problem is IMHO that build-dependencies (a.k.a
nativeBuildInputs
- such as hatchling & setuptools) are modified by the overlay that defines the runtime-inputs (a.k.apropagatedBuildInputs
).My first question is, is there any particular reason for this? I'm in a rather early stage of checking if poetry2nix is useful for $project, so I'm not sure if I'm missing something here or if this was just sufficient for the use-cases you've had before.
I hacked together a small patch that appears to solve the issue for the reproducer below and the test-setup I've been experimenting with:
I think it's a little hacky to do this via
pkgs.${python.pythonAttr}
, but I didn't manage to construct__unpatched
with justsuper
because (1) I got an infinite recursion when using all ofsuper
and (2) when just copying build-tools into__unpatched
, it wasn't sufficient, because the packages take their dependencies (pluggy
in this case) from the fixpoint and not fromsuper
, so this was essentially a no-op.Will need to find a few more test-cases for this, but I'm curious what your stance is on the entire topic.
cc @Mic92 @adisbladis
Additional context
Minimal reproducer: https://gist.github.com/Ma27/3ba79121c92458f4dbd1eb58cb967cea Please don't forget to
mkdir minimal_reproducer && touch minimal_reproducer/__init__.py
, gists don't allow folders apparently :(