From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aKQvLa+1bmEwEgEAgWs5BA (envelope-from ) for ; Tue, 19 Oct 2021 14:10:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iF3OKK+1bmEqMAAAbx9fmQ (envelope-from ) for ; Tue, 19 Oct 2021 12:10:23 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E8B81C978 for ; Tue, 19 Oct 2021 14:10:22 +0200 (CEST) Received: from localhost ([::1]:53658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcnwj-0000XU-Ij for larch@yhetil.org; Tue, 19 Oct 2021 08:10:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcnwQ-0000K4-Rk for guix-patches@gnu.org; Tue, 19 Oct 2021 08:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38204) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcnwQ-0004Sa-Go for guix-patches@gnu.org; Tue, 19 Oct 2021 08:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mcnwQ-00055U-B6 for guix-patches@gnu.org; Tue, 19 Oct 2021 08:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51287] [PATCH] gnu: packages: Add python-ijson Resent-From: =?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Oct 2021 12:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51287 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51287@debbugs.gnu.org Cc: =?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163464536919511 (code B ref -1); Tue, 19 Oct 2021 12:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Oct 2021 12:09:29 +0000 Received: from localhost ([127.0.0.1]:49750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcnvo-00054Y-4d for submit@debbugs.gnu.org; Tue, 19 Oct 2021 08:09:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:55436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcnvm-00054R-LV for submit@debbugs.gnu.org; Tue, 19 Oct 2021 08:09:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcnvm-0007pR-GC for guix-patches@gnu.org; Tue, 19 Oct 2021 08:09:22 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:41789) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcnvk-00019s-8u for guix-patches@gnu.org; Tue, 19 Oct 2021 08:09:22 -0400 Received: by mail-ed1-x52b.google.com with SMTP id a25so11952647edx.8 for ; Tue, 19 Oct 2021 05:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Pv+4/qRkyXbx0lDbZggPP1307TpMRa6JTFP2bnbzKcU=; b=ZrWxMqEQrZwjOsiB7bsx8PZzof4vVRONPsWbzZ0GbPGs0NK+uBJPo3i7ZZuCHl1agf z/mOvQxAYU2WHn4gZtDvVAW8KZr55he3LnjKV+26PONadKLWfqcd8QN4w/8MxS3IWwA6 efkw9mXc7EYAG7Dd+/8pkeevMGF8/v5WPsM89MPF7myyHtoPMf09r3yF0s2q9zZ0zC+E D6TfwcJnSjknJC22LthvL8SMK4G4mGCTG+/aB0mpQjlxhRuXrlydsUhQ0QUENgMhB+4+ Hm2net9dA+AOX6GnE2NMqEQqBQrgFfVPg5oEoxn93IhC9G6QonlZW3L0t7nhMPo7gMiM eOBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Pv+4/qRkyXbx0lDbZggPP1307TpMRa6JTFP2bnbzKcU=; b=AEXrzsrefZaW00+A/vYOO5fcUMByFGFg1wQLReBN2F4NlbfqOaA1K2JnG+j5O+fma5 cmr3L4Uuav35yIKM7h+cbT270IOnam4aTHPItRF2+dcLGlgcvuwTxiUWUWlrAGWqIYuD 3SdV4XCxSrn8opbquXu+jAcU9XK53bXK6tieFPC0YgzyDnyiD2DCUgNZFG67HOY5mQBu Df01NW/iKBDcF5c4HQx16aJLuk0K7YOYGi/nLcyLk+2VnTYlfP5eXsfC55zWPW1TFpTB 4uowRqa8xsvkEELIkTjwzjQBeOCblmzmPpYsdRsuWi9BI70ESNVfZoDzc4NN8WcVS2+Y 7wQA== X-Gm-Message-State: AOAM533uS77HLcKlYRWSYJvdYNlyaKl/pi4L5jckpUCfqpvYtVqIpFrX /xINz53BOJ5ZgDEIl0zPH/hdHOTOIGO80OxZgtE= X-Google-Smtp-Source: ABdhPJyz7v9nPRJFE2vCXE9S4ufb0cbOgj8xRM38KAyIE03PdSIl3QC/1MztJOI/CYIVtDwhTwUS/A== X-Received: by 2002:a50:8d51:: with SMTP id t17mr52492225edt.205.1634645356639; Tue, 19 Oct 2021 05:09:16 -0700 (PDT) Received: from localhost.localdomain ([109.130.26.5]) by smtp.gmail.com with ESMTPSA id zg6sm10139430ejb.102.2021.10.19.05.09.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 05:09:16 -0700 (PDT) From: =?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?= Date: Tue, 19 Oct 2021 14:08:52 +0200 Message-Id: <20211019120852.1009756-1-raphael.melotte@mind.be> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=raphael.melotte@essensium.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634645423; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Pv+4/qRkyXbx0lDbZggPP1307TpMRa6JTFP2bnbzKcU=; b=XSVOiUTQ9R3iF7U3EGPCxzDjtYbItbbFbD7v7u3HvrmpQZ2LbI1ie48k4MfEqwF3nCJVUS FGf1BuwxhjqVN7NUT//yyDfKm9nSuxzOoYhRN7K8CLji5KMTstNyDTy5kjut5uHPdTtOO5 gQ2xq+6BQTRi0a7GYH1i2SUC437eFQrwoelE6hVBRTeGGFu4c7DiDtNU2DB/q3nbiKauPf ph7Fv9UlLxNmMzfooY6JnReBwiXLYBqYJ2OScyMfCIpY+vJD+8l/ZWTkuiI+EXwzbBrVxI PxuvzwvtuWqZ23OoRdlMKfxCph1wSRw001SSNzIcZTquk60p8ZD9Q4D//RMMaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634645423; a=rsa-sha256; cv=none; b=uZWbFfMonrc2aWA47GOYMPyGzhKXUDJqobxFsBKiVXwo02sujUKtTGo0LIhZuOgt2xhG/w ihC9+JyFLmES7MdxDwr+fnkgd5UtCzju9h2yjr26531BS1T9ZHTI6BYtLBWO31wR5CHvwQ LuOSQ4VA2CPhewox1KthqHytyz5kzU79GO/DFyvmu9cSVGMW9ZU3jB4dZT94vH7WZGGxFu Stf0bbUhhCRrJo+VSXB2v85BSpkMaQlNGLoxqEk73CZE8o51Sqo1O+wzIkEiVbR2lHnU7Y NP3Br/0U+NTPL9faneJ2FyB1xXDLIm8MheeJgLFTJNwyTDINanqAa895949i4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mind.be header.s=google header.b=ZrWxMqEQ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mind.be header.s=google header.b=ZrWxMqEQ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: E8B81C978 X-Spam-Score: -0.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: bUBsk2WwMe3b * gnu/packages/python-xyz.scm (python-ijson): New variable. --- gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c335dea277..cc66134fcd 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -110,6 +110,7 @@ ;;; Copyright © 2021 Pradana Aumars ;;; Copyright © 2021 Felix Gruber ;;; Copyright © 2021 Sébastien Lerique +;;; Copyright © 2021 Raphaël Mélotte ;;; ;;; This file is part of GNU Guix. ;;; @@ -27604,3 +27605,34 @@ (define-public python-aspectlib code is desired. It includes tools for debugging and testing: simple mock/record and a complete capture/replay framework.") (license license:bsd-2))) + +(define-public python-ijson + (package + (name "python-ijson") + (version "3.1.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ijson" version)) + (sha256 + (base32 "1sp463ywj4jv5cp6hsv2qwiima30d09xsabxb2dyq5b17jp0640x")))) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; the tests run by the default setup.py require yajl 1.x, + ;; but we have 2.x. yajl 1.x support is going to be removed + ;; 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")))))) + (inputs + ;; libyajl is optional, but compiling with it makes faster + ;; backends available to ijson: + `(("libyajl", libyajl) + ("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") + (description + "Iterative JSON parser with standard Python iterator interfaces") + (license license:bsd-3))) -- 2.33.0