mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-27 06:37:01 +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);
|
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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user