From 3273ce35e764db38d2c646ace377e69c15aa1f9c Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Mon, 10 Nov 2025 00:59:35 +0100 Subject: [PATCH] gnu: python-jsonplus: Update to 0.8.0-0.a4450ce. * gnu/packages/python-xyz.scm (python-jsonplus): Update to 0.8.0-0.a4450ce. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:tests?>: Keep them disabled for now. <#:phases>: Add phase 'chdir. [native-inputs]: Add python-setuptools. Change-Id: I200b09ff3b20f7a753407c9abe1fac02e52bfb23 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 039c2297acaf8c8b2124e98da622ed97337303fa..8d1e03a13858e719cb7e9239208304e5796a1e0c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29157,17 +29157,32 @@ services to what you expect in your tests.") (define-public python-jsonplus (package (name "python-jsonplus") - (version "0.8.0") (home-page "https://github.com/randomir/jsonplus") - (source (origin - (method url-fetch) - (uri (pypi-uri "jsonplus" version)) - (sha256 - (base32 - "05yv3dw813zwas9snz124k2hki49y268b3mx0gj9w7v1nrjmglq1")))) - (build-system python-build-system) - ;; XXX: No tests on PyPI, and the repository has no tags. - (arguments '(#:tests? #f)) + (properties '((commit . "a4450ce73a4464fcee9b08d96be3e13152b0cb3b") + (revision . "0"))) + (version (git-version "0.8.0" + (assoc-ref properties 'revision) + (assoc-ref properties 'commit))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (assoc-ref properties 'commit)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1n7rr7fgy2g972si6zhindia362w34d696xjdicx25f39n88jcvk")))) + (build-system pyproject-build-system) + (arguments + (list + ;; XXX: Tests require the additional package moneyed. + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "python")))))) + (native-inputs (list python-setuptools)) (propagated-inputs (list python-dateutil python-simplejson python-sortedcontainers)) (synopsis "Serialize Python types to/from JSON")