diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 9e5dbf1052bb..847c9b7e5672 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -498,7 +498,6 @@ in xterm = handleTest ./xterm.nix {}; yabar = handleTest ./yabar.nix {}; yggdrasil = handleTest ./yggdrasil.nix {}; - yq = handleTest ./yq.nix {}; zfs = handleTest ./zfs.nix {}; zigbee2mqtt = handleTest ./zigbee2mqtt.nix {}; zoneminder = handleTest ./zoneminder.nix {}; diff --git a/nixos/tests/yq.nix b/nixos/tests/yq.nix deleted file mode 100644 index cdcb3d6e2462..000000000000 --- a/nixos/tests/yq.nix +++ /dev/null @@ -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 .' - ) - ''; -}) diff --git a/pkgs/development/python-modules/yq/default.nix b/pkgs/development/python-modules/yq/default.nix index 922276e38894..a9225d435437 100644 --- a/pkgs/development/python-modules/yq/default.nix +++ b/pkgs/development/python-modules/yq/default.nix @@ -45,7 +45,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "yq" ]; - passthru.tests = { inherit (nixosTests) yq; }; + doInstallCheck = true; + installCheckPhase = '' + echo '{"hello":{"foo":"bar"}}' | $out/bin/yq -y . | grep 'foo: bar' + ''; meta = with lib; { description = "Command-line YAML processor - jq wrapper for YAML documents";