awscli2: use addBinToPathHook and writableTmpDirAsHomeHook

This commit is contained in:
Pol Dellaiera
2025-01-30 22:15:10 +01:00
parent 62d4ca6101
commit ce1e95c45f
+4 -5
View File
@@ -10,6 +10,8 @@
nix-update-script,
testers,
awscli2,
addBinToPathHook,
writableTmpDirAsHomeHook,
}:
let
@@ -121,9 +123,11 @@ py.pkgs.buildPythonApplication rec {
];
nativeCheckInputs = with py.pkgs; [
addBinToPathHook
jsonschema
mock
pytestCheckHook
writableTmpDirAsHomeHook
];
postInstall =
@@ -136,11 +140,6 @@ py.pkgs.buildPythonApplication rec {
rm $out/bin/aws.cmd
'';
preCheck = ''
export PATH=$PATH:$out/bin
export HOME=$(mktemp -d)
'';
# Propagating dependencies leaks them through $PYTHONPATH which causes issues
# when used in nix-shell.
postFixup = ''