fix(pip): fix namespace packages collision error

This commit is contained in:
DavHau 2023-09-11 22:21:54 +02:00
parent cfac73dbd1
commit ad4cb86569

View File

@ -147,12 +147,14 @@ in {
l.attrValues (l.mapAttrs (name: _: cfg.drvs.${name}.public.out) rootDeps); l.attrValues (l.mapAttrs (name: _: cfg.drvs.${name}.public.out) rootDeps);
}; };
public.devShell = config.deps.mkShell { public.devShell = let
inherit (config.mkDerivation) buildInputs nativeBuildInputs; pyEnv' = config.deps.python.withPackages (ps: config.mkDerivation.propagatedBuildInputs);
packages = [ pyEnv = pyEnv'.override (old: {
(config.deps.python.withPackages # namespaced packages are triggering a collision error, but this can be
(ps: config.mkDerivation.propagatedBuildInputs)) # safely ignored. They are still set up correctly and can be imported.
]; ignoreCollisions = true;
}; });
in
pyEnv.env;
}; };
} }