mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-26 22:31:39 +03:00
fix(pip): fix namespace packages collision error
This commit is contained in:
parent
cfac73dbd1
commit
ad4cb86569
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user