From unknown Sun Jun 15 08:49:26 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#44079] [PATCH] gnu: Add python-yq. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Oct 2020 18:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44079 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44079@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160313209619803 (code B ref -1); Mon, 19 Oct 2020 18:29:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Oct 2020 18:28:16 +0000 Received: from localhost ([127.0.0.1]:42332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUZtI-00059L-2Z for submit@debbugs.gnu.org; Mon, 19 Oct 2020 14:28:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:53288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUZtG-000598-RC for submit@debbugs.gnu.org; Mon, 19 Oct 2020 14:28:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUZtF-0005aJ-2f for guix-patches@gnu.org; Mon, 19 Oct 2020 14:28:13 -0400 Received: from mira.cbaines.net ([212.71.252.8]:36436) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUZtB-0004ci-D8 for guix-patches@gnu.org; Mon, 19 Oct 2020 14:28:12 -0400 Received: from localhost (188.28.126.178.threembb.co.uk [188.28.126.178]) by mira.cbaines.net (Postfix) with ESMTPSA id 01BB727BBED for ; Mon, 19 Oct 2020 19:28:04 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id e6f66500 for ; Mon, 19 Oct 2020 18:28:02 +0000 (UTC) From: Christopher Baines Date: Mon, 19 Oct 2020 19:28:02 +0100 Message-Id: <20201019182802.23023-1-mail@cbaines.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/19 14:28:05 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/python-xyz.scm (python-yq): New variable. --- gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 575ce40ac8..f256b7e311 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -17347,6 +17347,47 @@ style guide, even if the original code didn't violate the style guide.") (define-public python2-yapf (package-with-python2 python-yapf)) +(define-public python-yq + (package + (name "python-yq") + (version "2.11.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "yq" version)) + (sha256 + (base32 + "1q4rky0a6n4izmq7slb91a54g8swry1xrbfqxwc8lkd3hhvlxxkl")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "yq/__init__.py" + (("Popen\\(\\[\"jq") + (string-append + "Popen([\"" + (assoc-ref inputs "jq") + "/bin/jq"))) + #t))))) + (inputs + `(("python-argcomplete" ,python-argcomplete) + ("python-pyyaml" ,python-pyyaml) + ("python-xmltodict" ,python-xmltodict) + ("jq" ,jq))) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-flake8" ,python-flake8) + ("python-wheel" ,python-wheel))) + (home-page "https://github.com/kislyuk/yq") + (synopsis "Command-line YAML/XML processor") + (description + "This package provides @command{yq} and @command{xq} for processing YAML +and XML respectively. The processing is done through @{jq}, @command{jq} +filters can be used to process the data as it passes through.") + (license license:asl2.0))) + (define-public python-gyp (let ((commit "5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f") (revision "0")) -- 2.28.0 From unknown Sun Jun 15 08:49:26 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#44079] [PATCH] gnu: Add python-yq. Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Oct 2020 09:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44079 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Cc: 44079@debbugs.gnu.org Received: via spool by 44079-submit@debbugs.gnu.org id=B44079.160353120522466 (code B ref 44079); Sat, 24 Oct 2020 09:21:03 +0000 Received: (at 44079) by debbugs.gnu.org; 24 Oct 2020 09:20:05 +0000 Received: from localhost ([127.0.0.1]:58995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWFiW-0005q4-7h for submit@debbugs.gnu.org; Sat, 24 Oct 2020 05:20:05 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:33806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWFiU-0005o8-5A for 44079@debbugs.gnu.org; Sat, 24 Oct 2020 05:20:03 -0400 Received: by mail-lj1-f193.google.com with SMTP id y16so4170909ljk.1 for <44079@debbugs.gnu.org>; Sat, 24 Oct 2020 02:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=WyPlVyHSRwhHOP+vXrYKmAt1teyds/eIhT3GvnuoEg8=; b=mlItR8s/xdZiCif48bnWakoBAeH4xwkbqvzOzoEUn+mU7IGbBxiJZD1jA7ysbKF434 frwCxmfcoLgovXGphW13wE+5uOm3KYGOGvtP9E2OoVr+oGtNnYtk5CiP00Y+A2GDSq+G RBqA8SlhjFmdbGywmxkDtoqGtyJbNE5qKAmQ8zqnmbkXMSryIUuqD0DPRKNnvF5g8K5r GdIu0Rsvm1BGlRju8VXR5K36KPUZURgG+gPMC3/Z8Fld/rI0wghVecfm0AMwC5KE2Ku/ jHBucSNg16kd61/QwhyVEhHDPFRMEnFcqg5a/Hlp2mgdfN2isXxvBKZVHxez91xrDNPx We9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=WyPlVyHSRwhHOP+vXrYKmAt1teyds/eIhT3GvnuoEg8=; b=KpL+WoPJ918o0GUj+pcSSPhZuoStL/sw+YiZcSf8aA6709GFF1qe/2X2UcrqngAeMb w1SQkScBfL6PbmKMu1Wu2VQqRktYb9gFf/vhZkUQNr1m6FYR7xixoEdGc0//WAFbCNBe /+dDAb05bqu+cSj3W7Tioj6MXMzxslLSdcxFDdVG8pw6ATdo1pYAZPkGzgKngML+Rxs/ nrDMViMDPqBwOGdNqFpI3iy8leaQ/fkhdBRwvPNv7b7XLYY+RH0HErcDMoLErievWdQJ UsqFRNl8yPzQgaxpp5sjli60WJ7pKEjs5RDTLjtxn4EHG7eGO1LP4tbkFYnxT/Ls6QIv vgoQ== X-Gm-Message-State: AOAM532fTwjvNvzDAwiOYEaGjvpWvaqXkSJ+B690HFvsA8BX9f3ZMU+Q 1txgvndFkSxIeNjpG1vnxt8OFwF7WRo= X-Google-Smtp-Source: ABdhPJx8fRHqXnBNRSUpBgKmCkCZ5h4JZuz+BS4s1eKQTZN4QBYj6/HLruIO8it7winhwalNiqDVZw== X-Received: by 2002:a2e:898c:: with SMTP id c12mr2553025lji.285.1603531196131; Sat, 24 Oct 2020 02:19:56 -0700 (PDT) Received: from guixsd ([178.71.226.25]) by smtp.gmail.com with ESMTPSA id o21sm380772lff.265.2020.10.24.02.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Oct 2020 02:19:55 -0700 (PDT) From: Oleg Pykhalov References: <20201019182802.23023-1-mail@cbaines.net> Date: Sat, 24 Oct 2020 12:19:51 +0300 In-Reply-To: <20201019182802.23023-1-mail@cbaines.net> (Christopher Baines's message of "Mon, 19 Oct 2020 19:28:02 +0100") Message-ID: <875z709e14.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, One of my favorites tools, thank you! :-) xq and yq work great. Should we name the package just =E2=80=9Cyq=E2=80=9D, because probably it's= used as end-user program more frequently than a library? Push in any case ;-) Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAl+T8bcUHGdvLndpZ3Vz dEBnbWFpbC5jb20ACgkQFn+OpQAa+pwPcw//cPfjAWLoArMH/DmRQq5ebC7nbmvY Dxkawk2nOr2uXBuipKUuxapZ/+U4BPAvuUlNoudq22GdMQwa62lrl6VcXOsiw4+H HM4iXvhRnm4FekP9ZeBNe3lqkddWd6wDK2GPN6Vg5CoutlozAuths0siRal08sIe vOBgLXZ3hbRJ70w/gHN9Ogxt4QOIHS1Q5wJxD1Ce6WQrGRdmlkfXhMaLXFXhZeNG K93SCBEytP3+HCO+qA8xUx6ca/sPF7uGYOe8UpuvMSsl2EGsw3zcBdZfoUtosJ33 fBDyF33F+XVdYnBScG0JiY+RxXmPAGvCjKUzj5d1gvTq2KfccHiIcfl3IWIu4rWu TH13+sC57P0ThN1veT0qrbKcXksaq94bIynnhocMh1vIPYsaDlxuL0LE6xwOyzKa KYfxcGZ4KC5cYZncfJIs0RisGDisxFs5OVvB6w0zzaPdJ83i9u0ChkRXO8f/1YYQ hoOuk4w2Co8cGR08sd33nEGDb//QVNUFMyqXB4ar2YVffwWCKkWrcAkA1nKgeoM9 5zFDDsq7TjUmvGENEKkteLv8wANXj32fmFvDLFlhgm2sZm5pxTuCbtNxalNT/NEN 9Hny1ZMQc4CG9e30wewQpDFWt3zeWNDxVfayLMU1ZxFQzetbnwXEbq3lpAuu9Hx0 iWD6XPvUxsKGCQ4= =LQqL -----END PGP SIGNATURE----- --=-=-=-- From unknown Sun Jun 15 08:49:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Christopher Baines Subject: bug#44079: closed (Re: [bug#44079] [PATCH] gnu: Add python-yq.) Message-ID: References: <87pn57bfaq.fsf@cbaines.net> <20201019182802.23023-1-mail@cbaines.net> X-Gnu-PR-Message: they-closed 44079 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 44079@debbugs.gnu.org Date: Sat, 24 Oct 2020 19:22:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1603567322-31145-1" This is a multi-part message in MIME format... ------------=_1603567322-31145-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #44079: [PATCH] gnu: Add python-yq. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 44079@debbugs.gnu.org. --=20 44079: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D44079 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1603567322-31145-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 44079-done) by debbugs.gnu.org; 24 Oct 2020 19:22:01 +0000 Received: from localhost ([127.0.0.1]:35123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWP73-000868-C4 for submit@debbugs.gnu.org; Sat, 24 Oct 2020 15:22:01 -0400 Received: from mira.cbaines.net ([212.71.252.8]:40322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWP6y-00085w-3C for 44079-done@debbugs.gnu.org; Sat, 24 Oct 2020 15:21:59 -0400 Received: from localhost (92.41.179.191.threembb.co.uk [92.41.179.191]) by mira.cbaines.net (Postfix) with ESMTPSA id 04CF427BBF0; Sat, 24 Oct 2020 20:21:54 +0100 (BST) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id de63963e; Sat, 24 Oct 2020 19:21:52 +0000 (UTC) References: <20201019182802.23023-1-mail@cbaines.net> <875z709e14.fsf@gmail.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines To: Oleg Pykhalov Subject: Re: [bug#44079] [PATCH] gnu: Add python-yq. In-reply-to: <875z709e14.fsf@gmail.com> Date: Sat, 24 Oct 2020 20:21:49 +0100 Message-ID: <87pn57bfaq.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 44079-done Cc: 44079-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Oleg Pykhalov writes: > Hi, > > One of my favorites tools, thank you! :-) > > > xq and yq work great. > > Should we name the package just =E2=80=9Cyq=E2=80=9D, because probably it= 's used as > end-user program more frequently than a library? Push in any case ;-) I though about the name, but there's also another incompatible yq tool [1], so I didn't want to set a precedent that just because this was packaged first, this gets the name. 1: https://mikefarah.gitbook.io/yq/ I've pushed as python-yq, mostly because I was undecided about renaming it. Thanks for your review! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl+Ufs1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XdNzA//VK58bL3L2Myk2IZUjqoRsEC5zI/yqKAI 1/7xf9aOSFJAt6PIqrsqu6OFI27eAx8lwdk/fVAD+HKieJb4Ms3XahAl4WbWgtIM WFvCq1e7gMfAuDjcs9reUnFLdkdiHJu7vo5EpNuqmHImBz+TA5JDUajdQU6B9oz9 vpioqrFHQGicMsUR0+9QTV1v3vgBBg2nY5SaKFSlVkz6zAiS2jMAgghyIXyqjEFj UmLn9xQ6aGNOQ6m8dH2TyJt0WIL7ebloMuj0JA3iefh7vDaOLHnEuFMuk+BExuWs b4IrGJSIZjf8PEVh1TwHk4equZc/WzMUIZ33hHbDs0SHHZwzEPwXM+Bbd+y9pqRB GiyC1ZmfJ/mCcnx56x7eH6qD2l/EQ3jb5nKK2/EzORH1vouUM1FKtMVKr6f6iIVs sEdSAdmXV4C4OW4e6zujwjXtm3bYsaGEtdFhnNKwdul2ZJMPrDDwhfikWZBflgQS drGEz22dbHfK7RTvegyKX7BFDnj41TVsLWmVed3lPlCANPy3KBBYwvmCX9gBRhNy 2ZuQdw2UOJFvQE0ai06lZXBDs2B/1BIqI9x4g47CLp51GBXwxF2QjER5GKNm4lQH jHSmojghjqJ/A2UYPjGw8SOi4NE1ou6f9CYKhvBELwVLTyytspbKmJPgggu13gc1 29qebqxNf0k= =JZvK -----END PGP SIGNATURE----- --=-=-=-- ------------=_1603567322-31145-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 19 Oct 2020 18:28:16 +0000 Received: from localhost ([127.0.0.1]:42332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUZtI-00059L-2Z for submit@debbugs.gnu.org; Mon, 19 Oct 2020 14:28:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:53288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUZtG-000598-RC for submit@debbugs.gnu.org; Mon, 19 Oct 2020 14:28:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUZtF-0005aJ-2f for guix-patches@gnu.org; Mon, 19 Oct 2020 14:28:13 -0400 Received: from mira.cbaines.net ([212.71.252.8]:36436) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUZtB-0004ci-D8 for guix-patches@gnu.org; Mon, 19 Oct 2020 14:28:12 -0400 Received: from localhost (188.28.126.178.threembb.co.uk [188.28.126.178]) by mira.cbaines.net (Postfix) with ESMTPSA id 01BB727BBED for ; Mon, 19 Oct 2020 19:28:04 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id e6f66500 for ; Mon, 19 Oct 2020 18:28:02 +0000 (UTC) From: Christopher Baines To: guix-patches@gnu.org Subject: [PATCH] gnu: Add python-yq. Date: Mon, 19 Oct 2020 19:28:02 +0100 Message-Id: <20201019182802.23023-1-mail@cbaines.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/19 14:28:05 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/python-xyz.scm (python-yq): New variable. --- gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 575ce40ac8..f256b7e311 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -17347,6 +17347,47 @@ style guide, even if the original code didn't violate the style guide.") (define-public python2-yapf (package-with-python2 python-yapf)) +(define-public python-yq + (package + (name "python-yq") + (version "2.11.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "yq" version)) + (sha256 + (base32 + "1q4rky0a6n4izmq7slb91a54g8swry1xrbfqxwc8lkd3hhvlxxkl")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "yq/__init__.py" + (("Popen\\(\\[\"jq") + (string-append + "Popen([\"" + (assoc-ref inputs "jq") + "/bin/jq"))) + #t))))) + (inputs + `(("python-argcomplete" ,python-argcomplete) + ("python-pyyaml" ,python-pyyaml) + ("python-xmltodict" ,python-xmltodict) + ("jq" ,jq))) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-flake8" ,python-flake8) + ("python-wheel" ,python-wheel))) + (home-page "https://github.com/kislyuk/yq") + (synopsis "Command-line YAML/XML processor") + (description + "This package provides @command{yq} and @command{xq} for processing YAML +and XML respectively. The processing is done through @{jq}, @command{jq} +filters can be used to process the data as it passes through.") + (license license:asl2.0))) + (define-public python-gyp (let ((commit "5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f") (revision "0")) -- 2.28.0 ------------=_1603567322-31145-1--