From 926252ade9085113c8a03b77cd60cce656641ade Mon Sep 17 00:00:00 2001 From: Robert Schütz Date: Thu, 7 Apr 2022 02:10:49 +0000 Subject: python3Packages.yq: run upstream testsuite --- pkgs/development/python-modules/yq/default.nix | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/python-modules/yq/default.nix b/pkgs/development/python-modules/yq/default.nix index b5e133f8374df..4792f38d7ce17 100644 --- a/pkgs/development/python-modules/yq/default.nix +++ b/pkgs/development/python-modules/yq/default.nix @@ -4,6 +4,7 @@ , substituteAll , argcomplete , pyyaml +, toml , xmltodict , jq , setuptools-scm @@ -26,11 +27,6 @@ buildPythonPackage rec { }) ]; - postPatch = '' - substituteInPlace test/test.py \ - --replace "expect_exit_codes={0} if sys.stdin.isatty() else {2}" "expect_exit_codes={0}" - ''; - nativeBuildInputs = [ setuptools-scm ]; @@ -38,6 +34,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ pyyaml xmltodict + toml argcomplete ]; @@ -49,13 +46,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "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"; + description = "Command-line YAML/XML/TOML processor - jq wrapper for YAML, XML, TOML documents"; homepage = "https://github.com/kislyuk/yq"; license = licenses.asl20; maintainers = with maintainers; [ womfoo SuperSandro2000 ]; -- cgit 1.4.1