diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-04-06 14:37:20 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:32 +0200 |
commit | 13a2c019c27f871eb8e801d48cf6a6a5596a3f32 (patch) | |
tree | b3c007aa2541ccc67bc67d9c36d28cecc5fbf48b | |
parent | 8d6d1dc6115b548c2cf715faa61eddf0b9b5f9bc (diff) | |
download | guix-13a2c019c27f871eb8e801d48cf6a6a5596a3f32.tar.gz guix-13a2c019c27f871eb8e801d48cf6a6a5596a3f32.zip |
gnu: python-ujson: Update to 5.10.0.
* gnu/packages/python-xyz.scm (python-ujson): Update to 5.10.0.
[build-system]: Switch to pyproject.
[native-inputs]: Add python-pytest, python-setuptools, python-wheel.
Change-Id: I73a0352677cfb4d1cd2c48560955415ce57fafbf
Signed-off-by: Steve George <steve@futurile.net>
-rw-r--r-- | gnu/packages/python-xyz.scm | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 629091f03e..b2224dada1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -32497,38 +32497,38 @@ register custom encoders and decoders.") (define-public python-ujson (package (name "python-ujson") - (version "5.7.0") + (version "5.10.0") (source (origin (method url-fetch) (uri (pypi-uri "ujson" version)) (sha256 (base32 - "08vvyfyg4qvjy2vxrvc0qix5zmd0j6wd0icvmhc633xfvkayb277")) + "1habmn3bmmv2ym4ldiijcavdkdzp8h28h60hgwjkhxwcbly8zkdk")) (modules '((guix build utils))) (snippet - '(begin (delete-file-recursively "deps") #t)))) - (build-system python-build-system) + #~(begin (delete-file-recursively "deps"))))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'link-to-system-double-conversion - (lambda* (#:key inputs #:allow-other-keys) - (let ((d-c (assoc-ref inputs "double-conversion"))) - (substitute* "setup.py" - (("./deps/double-conversion/double-conversion\"") - (string-append d-c "/include/double-conversion\"")) - (("-lstdc++" stdc) - (string-append "-L" d-c "/lib\"," - " \"-ldouble-conversion\"," - " \"" stdc))) - #t))) - (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (invoke "pytest")))))) - (native-inputs - (list double-conversion python-setuptools-scm python-pytest)) + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'link-to-system-double-conversion + (lambda* (#:key inputs #:allow-other-keys) + (let ((d-c (assoc-ref inputs "double-conversion"))) + (substitute* "setup.py" + (("./deps/double-conversion/double-conversion\"") + (string-append d-c "/include/double-conversion\"")) + (("-lstdc++" stdc) + (string-append "-L" d-c "/lib\"," + " \"-ldouble-conversion\"," + " \"" stdc))))))))) + (native-inputs + (list double-conversion + python-pytest + python-setuptools + python-setuptools-scm + python-wheel)) (home-page "https://github.com/ultrajson/ultrajson") (synopsis "Ultra fast JSON encoder and decoder for Python") (description |