[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
192/194: gnu: python-orjson: Update to 3.9.7.
From: |
guix-commits |
Subject: |
192/194: gnu: python-orjson: Update to 3.9.7. |
Date: |
Tue, 3 Oct 2023 14:58:17 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 7015a33f2e08e2aacfdd3270ba8150b46fa061d8
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 3 17:31:40 2023 +0300
gnu: python-orjson: Update to 3.9.7.
* gnu/packages/python-xyz.scm (python-orjson): Update to 3.9.7.
[arguments]: Remove 'prepare-python-module, 'install-python-library
phases.
[cargo-inputs]: Replace rust-pyo3-ffi-0.18 with 0.19. Add rust-cc-1,
rust-pyo3-build-config-0.19, rust-version-check-0.9.
[inputs]: Add maturin.
[native-inputs]: Remove python-pypa-build, python-wheel.
---
gnu/packages/python-xyz.scm | 57 ++++++++++-----------------------------------
1 file changed, 12 insertions(+), 45 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 25027b45fc..6ea17675a0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -246,6 +246,7 @@
#:use-module (gnu packages rdf)
#:use-module (gnu packages readline)
#:use-module (gnu packages regex)
+ #:use-module (gnu packages rust-apps)
#:use-module (gnu packages scanner)
#:use-module (gnu packages sdl)
#:use-module (gnu packages search)
@@ -3007,13 +3008,13 @@ help formatter.")
(define-public python-orjson
(package
(name "python-orjson")
- (version "3.8.8")
+ (version "3.9.7")
(source (origin
(method url-fetch)
(uri (pypi-uri "orjson" version))
(sha256
(base32
- "1nn617pzn8smjkf7j593ybq16qfnj53bla52qjwzzrms4fjxg5n0"))))
+ "0hh1j7akxgx1nvsnwx1p4f4h4pkgr7v9aqr99l2pwbwfyyc93qw5"))))
(build-system cargo-build-system)
(arguments
(list
@@ -3024,47 +3025,10 @@ help formatter.")
(guix build utils))
#:phases
#~(modify-phases %standard-phases
- (add-after 'install 'prepare-python-module
- (lambda _
- ;; We don't use maturin.
- (delete-file "pyproject.toml")
- (call-with-output-file "pyproject.toml"
- (lambda (port)
- (format port "\
-[build-system]
-build-backend = 'setuptools.build_meta'
-requires = ['setuptools']
-")))
- (call-with-output-file "setup.cfg"
- (lambda (port)
- (format port "\
-[metadata]
-name = orjson
-version = ~a
-
-[options]
-packages = find:
-
-[options.packages.find]
-exclude =
- src
- integration
- test
- Cargo.toml
-" #$version)))))
(add-after 'prepare-python-module 'build-python-module
(assoc-ref py:%standard-phases 'build))
(add-after 'build-python-module 'install-python-module
- (assoc-ref py:%standard-phases 'install))
- (add-after 'install-python-module 'install-python-library
- (lambda _
- (let ((site (string-append #$output "/lib/python"
- #$(version-major+minor
- (package-version python))
- "/site-packages")))
- (mkdir-p site)
- (copy-file "target/release/liborjson.so"
- (string-append site "/orjson.so"))))))
+ (assoc-ref py:%standard-phases 'install)))
#:cargo-inputs
`(("rust-ahash" ,rust-ahash-0.8)
("rust-arrayvec" ,rust-arrayvec-0.7)
@@ -3077,17 +3041,20 @@ exclude =
("rust-itoa" ,rust-itoa-1)
("rust-itoap" ,rust-itoap-1)
("rust-once-cell" ,rust-once-cell-1)
- ("rust-pyo3-ffi" ,rust-pyo3-ffi-0.18)
+ ("rust-pyo3-ffi" ,rust-pyo3-ffi-0.19)
("rust-ryu" ,rust-ryu-1)
("rust-serde" ,rust-serde-1)
("rust-serde-json" ,rust-serde-json-1)
("rust-simdutf8" ,rust-simdutf8-0.1)
- ("rust-smallvec" ,rust-smallvec-1))
+ ("rust-smallvec" ,rust-smallvec-1)
+ ("rust-cc" ,rust-cc-1)
+ ("rust-pyo3-build-config" ,rust-pyo3-build-config-0.19)
+ ("rust-version-check" ,rust-version-check-0.9))
#:install-source? #false))
+ (inputs
+ (list maturin))
(native-inputs
- (list python-wrapper
- python-pypa-build
- python-wheel))
+ (list python-wrapper))
(home-page "https://github.com/ijl/orjson")
(synopsis "Python JSON library supporting dataclasses, datetimes, and
numpy")
(description "Orjson is a fast, correct JSON library for Python. It
- 145/194: gnu: Add rust-serde-wasm-bindgen-0.3., (continued)
- 145/194: gnu: Add rust-serde-wasm-bindgen-0.3., guix-commits, 2023/10/03
- 138/194: gnu: Add rust-napi-build-1., guix-commits, 2023/10/03
- 151/194: gnu: Add rust-normpath-0.2., guix-commits, 2023/10/03
- 152/194: gnu: Add rust-magic-string-0.3., guix-commits, 2023/10/03
- 159/194: gnu: Add rust-auto-impl-0.4., guix-commits, 2023/10/03
- 158/194: gnu: Add rust-browserslist-rs-0.6., guix-commits, 2023/10/03
- 162/194: gnu: rust-assert-cmd-2: Update to 2.0.12., guix-commits, 2023/10/03
- 156/194: gnu: Add rust-debug-unreachable-0.1., guix-commits, 2023/10/03
- 157/194: gnu: Add rust-core-extensions-0.1., guix-commits, 2023/10/03
- 163/194: gnu: Add rust-itertools-0.11., guix-commits, 2023/10/03
- 192/194: gnu: python-orjson: Update to 3.9.7.,
guix-commits <=
- 187/194: gnu: b3sum: Update to 1.5.0., guix-commits, 2023/10/03
- 172/194: gnu: wlgreet: Update to 0.4.1., guix-commits, 2023/10/03
- 175/194: gnu: du-dust: Install manpage, shell completions., guix-commits, 2023/10/03
- 171/194: gnu: Add rust-greetd-ipc-0.9., guix-commits, 2023/10/03
- 189/194: gnu: rust-oorandom-11: Rename from rust-oorandom-11.1., guix-commits, 2023/10/03
- 180/194: gnu: Add rust-criterion-0.5., guix-commits, 2023/10/03
- 183/194: gnu: rust-serde-json-1: Update to 1.0.107., guix-commits, 2023/10/03
- 193/194: gnu: python-pyopenssl: Update to 23.2.0., guix-commits, 2023/10/03
- 177/194: gnu: rust-minisign: Update to 0.7.5., guix-commits, 2023/10/03
- 191/194: gnu: rust-smallvec-1: Update to 1.11.1., guix-commits, 2023/10/03