[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/06: gnu: Add python-ijson.
From: |
guix-commits |
Subject: |
03/06: gnu: Add python-ijson. |
Date: |
Sat, 30 Oct 2021 13:26:07 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit a239b1e678e0c6b21fa95105546e754e2eff8a5d
Author: Raphaël Mélotte <raphael.melotte@mind.be>
AuthorDate: Tue Oct 19 14:08:52 2021 +0200
gnu: Add python-ijson.
* gnu/packages/python-xyz.scm (python-ijson): New variable.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bd5a5c2..f12cca9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -110,6 +110,7 @@
;;; Copyright © 2021 Pradana Aumars <paumars@courrier.dev>
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2021 Sébastien Lerique <sl@eauchat.org>
+;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte@mind.be>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -27606,3 +27607,38 @@ and decorators library. It is useful when changing
behavior in existing
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* (#: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)))
+ (native-inputs
+ `(("python-pytest", python-pytest)))
+ (build-system python-build-system)
+ (home-page "https://github.com/ICRAR/ijson")
+ (synopsis "Iterative JSON parser with Python iterator interfaces")
+ (description
+ "Ijson is an iterative JSON parser with standard Python iterator
+interfaces.")
+ (license license:bsd-3)))
- branch master updated (d444956 -> 142344b), guix-commits, 2021/10/30
- 01/06: gnu: Add Random Identity Generator (rig), guix-commits, 2021/10/30
- 03/06: gnu: Add python-ijson.,
guix-commits <=
- 06/06: gnu: qemu: Add Guix support to QEMU guest agent., guix-commits, 2021/10/30
- 02/06: shell: Error out when an unauthorized guix.scm/manifest.scm is found., guix-commits, 2021/10/30
- 04/06: gnu: Add r-fasterize., guix-commits, 2021/10/30
- 05/06: gnu: Add r-bien., guix-commits, 2021/10/30