mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
pre-commit: prevent propagating inputs
Fixes a bug where pre-commit would pollute the PYTHONPATH with its dependencies, potentially interfering with the user's dependencies.
This commit is contained in:
parent
2bfb2f045a
commit
8ebcb96e4a
@ -101,6 +101,12 @@ buildPythonApplication rec {
|
||||
deactivate
|
||||
'';
|
||||
|
||||
# Propagating dependencies leaks them through $PYTHONPATH which causes issues
|
||||
# when used in nix-shell.
|
||||
postFixup = ''
|
||||
rm $out/nix-support/propagated-build-inputs
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# ERROR: The install method you used for conda--probably either `pip install conda`
|
||||
# or `easy_install conda`--is not compatible with using conda as an application.
|
||||
|
Loading…
Reference in New Issue
Block a user