GNU bug report logs - #51287
[PATCH] gnu: packages: Add python-ijson

Previous Next

Package: guix-patches;

Reported by: Raphaël Mélotte <raphael.melotte <at> mind.be>

Date: Tue, 19 Oct 2021 12:10:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51287 in the body.
You can then email your comments to 51287 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#51287; Package guix-patches. (Tue, 19 Oct 2021 12:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raphaël Mélotte <raphael.melotte <at> mind.be>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 19 Oct 2021 12:10:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Raphaël Mélotte <raphael.melotte <at> mind.be>
To: guix-patches <at> gnu.org
Cc: Raphaël Mélotte <raphael.melotte <at> mind.be>
Subject: [PATCH] gnu: packages: Add python-ijson
Date: Tue, 19 Oct 2021 14:08:52 +0200
* 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 <paumars <at> courrier.dev>
 ;;; Copyright © 2021 Felix Gruber <felgru <at> posteo.net>
 ;;; Copyright © 2021 Sébastien Lerique <sl <at> eauchat.org>
+;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte <at> mind.be>
 ;;;
 ;;; 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





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sat, 30 Oct 2021 15:13:01 GMT) Full text and rfc822 format available.

Notification sent to Raphaël Mélotte <raphael.melotte <at> mind.be>:
bug acknowledged by developer. (Sat, 30 Oct 2021 15:13:02 GMT) Full text and rfc822 format available.

Message #10 received at 51287-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Raphaël Mélotte <raphael.melotte <at> mind.be>
Cc: 51287-done <at> debbugs.gnu.org
Subject: Re: bug#51287: [PATCH] gnu: packages: Add python-ijson
Date: Sat, 30 Oct 2021 17:12:37 +0200
[Message part 1 (text/plain, inline)]
Hi,

Raphaël Mélotte <raphael.melotte <at> mind.be> 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’.

[Message part 2 (text/x-patch, inline)]
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)))

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 28 Nov 2021 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 121 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.