awscli2: prevent propagating inputs

Prevents awscli2 from polluting the environment when using nix-shell
This commit is contained in:
Nils
2024-10-22 20:06:58 +00:00
parent 70e46c586f
commit a44b0f635e
+6
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"
];