about summary refs log tree commit diff
path: root/pkgs/tools/admin
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-10-31 23:20:43 +0100
committerGitHub <noreply@github.com>2021-10-31 23:20:43 +0100
commitafa027591cf3c04ca99c9932669adc639b1ec94e (patch)
tree2e13c36738cb491d9db1f8101f27b28cace07d9b /pkgs/tools/admin
parent8713cfb52ad747fc6a3ff1d6a0e84d0ce56162f2 (diff)
parent948727d87270294c444ff6aff736b60a491d0298 (diff)
Merge pull request #143776 from iAmMrinal0/remove/awsCliTest
Diffstat (limited to 'pkgs/tools/admin')
-rw-r--r--pkgs/tools/admin/awscli/default.nix16
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/tools/admin/awscli/default.nix b/pkgs/tools/admin/awscli/default.nix
index d11ed86e088ca..0b9d6b4738316 100644
--- a/pkgs/tools/admin/awscli/default.nix
+++ b/pkgs/tools/admin/awscli/default.nix
@@ -1,5 +1,4 @@
 { lib
-, nixosTests
 , python3
 , groff
 , less
@@ -34,9 +33,6 @@ with py.pkgs; buildPythonApplication rec {
       --replace "docutils>=0.10,<0.16" "docutils>=0.10"
   '';
 
-  # No tests included
-  doCheck = false;
-
   propagatedBuildInputs = [
     botocore
     bcdoc
@@ -62,10 +58,18 @@ with py.pkgs; buildPythonApplication rec {
 
   passthru = {
     python = py; # for aws_shell
-
-    tests = { inherit (nixosTests) awscli; };
   };
 
+  doInstallCheck = true;
+  installCheckPhase = ''
+    runHook preInstallCheck
+
+    $out/bin/aws --version | grep "${py.pkgs.botocore.version}"
+    $out/bin/aws --version | grep "${version}"
+
+    runHook postInstallCheck
+  '';
+
   meta = with lib; {
     homepage = "https://aws.amazon.com/cli/";
     description = "Unified tool to manage your AWS services";