awscli2: Prevent pollution from other Python packages/envs
Prevent awscli2 from being polluted by other packages/environments setting $PYTHONPATH or $NIX_PYTHONPATH. Solves https://github.com/NixOS/nixpkgs/issues/47900.
This commit is contained in:
committed by
Silvan Mosberger
parent
9d055d6a1f
commit
81c9d2f4be
@@ -119,6 +119,14 @@ py.pkgs.buildPythonApplication rec {
|
||||
less
|
||||
];
|
||||
|
||||
# Prevent breakage when running in a Python environment: https://github.com/NixOS/nixpkgs/issues/47900
|
||||
makeWrapperArgs = [
|
||||
"--unset"
|
||||
"NIX_PYTHONPATH"
|
||||
"--unset"
|
||||
"PYTHONPATH"
|
||||
];
|
||||
|
||||
nativeCheckInputs = with py.pkgs; [
|
||||
addBinToPathHook
|
||||
jsonschema
|
||||
|
||||
Reference in New Issue
Block a user