[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
192/276: gnu: python-orjson: Update to 3.9.7.
From: |
guix-commits |
Subject: |
192/276: gnu: python-orjson: Update to 3.9.7. |
Date: |
Wed, 18 Oct 2023 04:50:02 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit ab8a943b9a919f3230bf9cf86b6133eb3771287d
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 19352b41dc..34cfc07307 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)
@@ -3031,13 +3032,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
@@ -3048,47 +3049,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)
@@ -3101,17 +3065,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
- 167/276: gnu: rust-yansi-0.5: Update to 0.5.1., (continued)
- 167/276: gnu: rust-yansi-0.5: Update to 0.5.1., guix-commits, 2023/10/18
- 168/276: gnu: rav1e: Update to 0.6.6., guix-commits, 2023/10/18
- 171/276: gnu: Add rust-greetd-ipc-0.9., guix-commits, 2023/10/18
- 173/276: gnu: Add rust-clap-mangen-0.1., guix-commits, 2023/10/18
- 174/276: gnu: du-dust: Update to 0.8.6., guix-commits, 2023/10/18
- 175/276: gnu: du-dust: Install manpage, shell completions., guix-commits, 2023/10/18
- 176/276: gnu: rust-getrandom-0.2: Update to 0.2.10., guix-commits, 2023/10/18
- 188/276: gnu: Add rust-count-instructions-0.1., guix-commits, 2023/10/18
- 182/276: gnu: Add rust-page-size-0.6., guix-commits, 2023/10/18
- 187/276: gnu: b3sum: Update to 1.5.0., guix-commits, 2023/10/18
- 192/276: gnu: python-orjson: Update to 3.9.7.,
guix-commits <=
- 189/276: gnu: rust-oorandom-11: Rename from rust-oorandom-11.1., guix-commits, 2023/10/18
- 193/276: gnu: python-pyopenssl: Update to 23.2.0., guix-commits, 2023/10/18
- 191/276: gnu: rust-smallvec-1: Update to 1.11.1., guix-commits, 2023/10/18
- 181/276: gnu: Add rust-memmap2-0.7., guix-commits, 2023/10/18
- 194/276: gnu: rust-simdutf8-0.1: Update to 0.1.4., guix-commits, 2023/10/18
- 197/276: gnu: rust-actix-web-codegen-0.2: Fix inputs., guix-commits, 2023/10/18
- 195/276: build: cargo-build-system: Reset timestamps in crates., guix-commits, 2023/10/18
- 200/276: gnu: rust-afl-0.12: Remove check-for-pregenerated-files phase., guix-commits, 2023/10/18
- 196/276: build: cargo-build-system: Strip enough prefix in package., guix-commits, 2023/10/18
- 203/276: gnu: rust-autocompress-0.2: Skip build., guix-commits, 2023/10/18