From patchwork Sat Oct 30 15:12:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 34168 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4FB5227BBE3; Sat, 30 Oct 2021 16:13:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1390F27BBE1 for ; Sat, 30 Oct 2021 16:13:20 +0100 (BST) Received: from localhost ([::1]:38482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgq2o-0005DN-W6 for patchwork@mira.cbaines.net; Sat, 30 Oct 2021 11:13:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgq2Y-0005D6-Fz for guix-patches@gnu.org; Sat, 30 Oct 2021 11:13:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgq2Y-0006jI-7Q for guix-patches@gnu.org; Sat, 30 Oct 2021 11:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgq2Y-0004ag-1I for guix-patches@gnu.org; Sat, 30 Oct 2021 11:13:02 -0400 Subject: bug#51287: [PATCH] gnu: packages: Add python-ijson Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sat, 30 Oct 2021 15:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 51287 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= Cc: 51287-done@debbugs.gnu.org Mail-Followup-To: 51287@debbugs.gnu.org, ludo@gnu.org, raphael.melotte@mind.be Received: via spool by 51287-done@debbugs.gnu.org id=D51287.163560677917632 (code D ref 51287); Sat, 30 Oct 2021 15:13:01 +0000 Received: (at 51287-done) by debbugs.gnu.org; 30 Oct 2021 15:12:59 +0000 Received: from localhost ([127.0.0.1]:58155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgq2M-0004a9-3c for submit@debbugs.gnu.org; Sat, 30 Oct 2021 11:12:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgq2K-0004Zs-3u for 51287-done@debbugs.gnu.org; Sat, 30 Oct 2021 11:12:48 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgq2D-0005Ms-RR; Sat, 30 Oct 2021 11:12:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=a2bO45KQzfkgTn9aPhaFLLsbdLelnR7vna9TjgVM3w8=; b=njuJs4hGdYsegzck7C39 ROq59wy4xhBZ+zXdoCKbA9jVCVXb4d23un95H8Iy/GOjIYfPNwHjOHYEjIyuKj4LjZYzhS7Dzx0EH b+tcQc5Ip8nyIyHpp1SSofWlEmee35s/SrOZeWM5eKVVikn1E0+wrGwOwz7w+AV6V3lUnlukCPSqJ vlDDh03HdcOypvzKwrwF7r2ovRz2xtjetM5aY5hmHnpLYE/cecf4R5FUdR0B3UPk2/Iw84Y+zz4yG t1nN2XWcypo5vAzfvXANdyRVZ/GZNRYHFBMPYRSoHlr72gsKYRL+r7rB+cOmCD1O5boBoqJYedc4J faTSbLm4hl9S/Q==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:55490 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgq2B-0003ww-Ne; Sat, 30 Oct 2021 11:12:41 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= References: <20211019120852.1009756-1-raphael.melotte@mind.be> Date: Sat, 30 Oct 2021 17:12:37 +0200 In-Reply-To: <20211019120852.1009756-1-raphael.melotte@mind.be> (" =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= "'s message of "Tue, 19 Oct 2021 14:08:52 +0200") Message-ID: <87sfwisg0q.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi, Raphaël Mélotte skribis: > * gnu/packages/python-xyz.scm (python-ijson): New variable. Applied with the following changes to placate ‘guix lint’ and improve synopsis/description. Thanks, Ludo’. diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f4edc1e49f..f12cca9757 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -27626,15 +27626,19 @@ (define-public python-ijson ;; anyway, so use pytest to avoid running the yajl1-related ;; tests. See: https://github.com/ICRAR/ijson/issues/55 (replace 'check - (lambda _ (invoke "pytest" "-vv")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv"))))))) (inputs ;; libyajl is optional, but compiling with it makes faster ;; backends available to ijson: - `(("libyajl", libyajl) - ("python-pytest", python-pytest))) + `(("libyajl", libyajl))) + (native-inputs + `(("python-pytest", python-pytest))) (build-system python-build-system) (home-page "https://github.com/ICRAR/ijson") - (synopsis "Iterative JSON parser with standard Python iterator interfaces") + (synopsis "Iterative JSON parser with Python iterator interfaces") (description - "Iterative JSON parser with standard Python iterator interfaces") + "Ijson is an iterative JSON parser with standard Python iterator +interfaces.") (license license:bsd-3)))