about summary refs log tree commit diff
path: root/pkgs/development/python-modules/yq
diff options
context:
space:
mode:
authorPatrick Hilhorst <git@hilhorst.be>2021-10-28 14:06:05 +0200
committerPatrick Hilhorst <git@hilhorst.be>2021-10-28 17:31:03 +0200
commit4dc3596fd172c26ed418c1eac64044a28679d21e (patch)
tree279d496d90a6494f2019c5be5150760aefdfc02e /pkgs/development/python-modules/yq
parente29cb6cb57fd0fe293d4678c4010d5e26928c5f3 (diff)
nixosTests.yq: remove, move to yq package
Diffstat (limited to 'pkgs/development/python-modules/yq')
-rw-r--r--pkgs/development/python-modules/yq/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/yq/default.nix b/pkgs/development/python-modules/yq/default.nix
index 922276e388949..a9225d435437a 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";