awscli2: prevent propagating inputs

Prevents awscli2 from polluting the environment when using nix-shell
This commit is contained in:
Nils 2024-03-30 00:50:37 -07:00
parent 70e46c586f
commit a44b0f635e

View File

@ -141,6 +141,12 @@ py.pkgs.buildPythonApplication rec {
export HOME=$(mktemp -d)
'';
# Propagating dependencies leaks them through $PYTHONPATH which causes issues
# when used in nix-shell.
postFixup = ''
rm $out/nix-support/propagated-build-inputs
'';
pytestFlagsArray = [
"-Wignore::DeprecationWarning"
];