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);
};
public.devShell = config.deps.mkShell {
inherit (config.mkDerivation) buildInputs nativeBuildInputs;
packages = [
(config.deps.python.withPackages
(ps: config.mkDerivation.propagatedBuildInputs))
];
};
public.devShell = let
pyEnv' = config.deps.python.withPackages (ps: config.mkDerivation.propagatedBuildInputs);
pyEnv = pyEnv'.override (old: {
# namespaced packages are triggering a collision error, but this can be
# safely ignored. They are still set up correctly and can be imported.
ignoreCollisions = true;
});
in
pyEnv.env;
};
}