awscli: move nixos test to installCheckPhase
This commit is contained in:
parent
28405cad78
commit
948727d872
@ -32,7 +32,6 @@ in
|
|||||||
atop = handleTest ./atop.nix {};
|
atop = handleTest ./atop.nix {};
|
||||||
avahi = handleTest ./avahi.nix {};
|
avahi = handleTest ./avahi.nix {};
|
||||||
avahi-with-resolved = handleTest ./avahi.nix { networkd = true; };
|
avahi-with-resolved = handleTest ./avahi.nix { networkd = true; };
|
||||||
awscli = handleTest ./awscli.nix { };
|
|
||||||
babeld = handleTest ./babeld.nix {};
|
babeld = handleTest ./babeld.nix {};
|
||||||
bat = handleTest ./bat.nix {};
|
bat = handleTest ./bat.nix {};
|
||||||
bazarr = handleTest ./bazarr.nix {};
|
bazarr = handleTest ./bazarr.nix {};
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
||||||
name = "awscli";
|
|
||||||
meta = with pkgs.lib.maintainers; {
|
|
||||||
maintainers = [ nequissimus ];
|
|
||||||
};
|
|
||||||
|
|
||||||
machine = { pkgs, ... }:
|
|
||||||
{
|
|
||||||
environment.systemPackages = [ pkgs.awscli ];
|
|
||||||
};
|
|
||||||
|
|
||||||
testScript =
|
|
||||||
''
|
|
||||||
assert "${pkgs.python3Packages.botocore.version}" in machine.succeed("aws --version")
|
|
||||||
assert "${pkgs.awscli.version}" in machine.succeed("aws --version")
|
|
||||||
'';
|
|
||||||
})
|
|
@ -1,5 +1,4 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, nixosTests
|
|
||||||
, python3
|
, python3
|
||||||
, groff
|
, groff
|
||||||
, less
|
, less
|
||||||
@ -34,9 +33,6 @@ with py.pkgs; buildPythonApplication rec {
|
|||||||
--replace "docutils>=0.10,<0.16" "docutils>=0.10"
|
--replace "docutils>=0.10,<0.16" "docutils>=0.10"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# No tests included
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
botocore
|
botocore
|
||||||
bcdoc
|
bcdoc
|
||||||
@ -62,10 +58,18 @@ with py.pkgs; buildPythonApplication rec {
|
|||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
python = py; # for aws_shell
|
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; {
|
meta = with lib; {
|
||||||
homepage = "https://aws.amazon.com/cli/";
|
homepage = "https://aws.amazon.com/cli/";
|
||||||
description = "Unified tool to manage your AWS services";
|
description = "Unified tool to manage your AWS services";
|
||||||
|
Loading…
Reference in New Issue
Block a user