mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
nixosTests.yq: remove, move to yq package
This commit is contained in:
parent
e29cb6cb57
commit
4dc3596fd1
|
@ -498,7 +498,6 @@ in
|
||||||
xterm = handleTest ./xterm.nix {};
|
xterm = handleTest ./xterm.nix {};
|
||||||
yabar = handleTest ./yabar.nix {};
|
yabar = handleTest ./yabar.nix {};
|
||||||
yggdrasil = handleTest ./yggdrasil.nix {};
|
yggdrasil = handleTest ./yggdrasil.nix {};
|
||||||
yq = handleTest ./yq.nix {};
|
|
||||||
zfs = handleTest ./zfs.nix {};
|
zfs = handleTest ./zfs.nix {};
|
||||||
zigbee2mqtt = handleTest ./zigbee2mqtt.nix {};
|
zigbee2mqtt = handleTest ./zigbee2mqtt.nix {};
|
||||||
zoneminder = handleTest ./zoneminder.nix {};
|
zoneminder = handleTest ./zoneminder.nix {};
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
||||||
name = "yq";
|
|
||||||
meta = with pkgs.lib.maintainers; { maintainers = [ nequissimus ]; };
|
|
||||||
|
|
||||||
nodes.yq = { pkgs, ... }: { environment.systemPackages = with pkgs; [ jq yq ]; };
|
|
||||||
|
|
||||||
testScript = ''
|
|
||||||
assert "hello:\n foo: bar\n" in yq.succeed(
|
|
||||||
'echo \'{"hello":{"foo":"bar"}}\' | yq -y .'
|
|
||||||
)
|
|
||||||
'';
|
|
||||||
})
|
|
|
@ -45,7 +45,10 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
pythonImportsCheck = [ "yq" ];
|
pythonImportsCheck = [ "yq" ];
|
||||||
|
|
||||||
passthru.tests = { inherit (nixosTests) yq; };
|
doInstallCheck = true;
|
||||||
|
installCheckPhase = ''
|
||||||
|
echo '{"hello":{"foo":"bar"}}' | $out/bin/yq -y . | grep 'foo: bar'
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Command-line YAML processor - jq wrapper for YAML documents";
|
description = "Command-line YAML processor - jq wrapper for YAML documents";
|
||||||
|
|
Loading…
Reference in a new issue