From 631c03a80a001b1d6095a18acc002fc0645765f4 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 21 Mar 2025 11:30:03 +0100 Subject: [PATCH] gnu: python-jsondiff: Update to 2.2.1. * gnu/packages/python-xyz.scm (python-jsondiff): Update to 2.2.1. [build-system]: Use pyproject-build-system. [arguments]: Add phase 'set-version. [propagated-inputs]: Add python-pyyaml. [native-inputs]: Add python-hypothesis, python-pytest, python-setuptools, python-setuptools-scm, and python-wheel; remove python-nose and python-nose-random. Change-Id: Ib3756e561e6f53353c950e472c8cf5275e055005 --- gnu/packages/python-xyz.scm | 50 ++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0b3ebd4e945c8ed26ab112a4cbb9d61ad51973b1..312ef2b1bcfa557391db433bead0302283a44519 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6727,24 +6727,38 @@ between Julian dates and Gregorian dates.") (define-public python-jsondiff (package - (name "python-jsondiff") - (version "1.2.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "jsondiff" version)) - (sha256 - (base32 - "00v3689175aqzdscrxpffm712ylp8jvcpqdg51ca22ni6721p51l")))) - (build-system python-build-system) - (native-inputs - (list python-nose python-nose-random)) - (home-page - "https://github.com/fzumstein/jsondiff") - (synopsis "Compare JSON and JSON-like structures in Python") - (description "@code{jsondiff} is a Python library which lets you -compare, diff, and patch JSON and JSON-like structures in Python.") - (license license:expat))) + (name "python-jsondiff") + (version "2.2.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "jsondiff" version)) + (sha256 + (base32 + "1zpp8l2ii9ic1sk6kdcqxk0v5q9pgdmdhg1h4vg8dfl6i8n1d3b5")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'set-version + (lambda _ + (substitute* "pyproject.toml" + (("^version_file.*") "") + (("dynamic = \\[\"version\"\\]") + (string-append "version = \"" #$version "\"")))))))) + (propagated-inputs (list python-pyyaml)) + (native-inputs + (list python-hypothesis + python-pytest + python-setuptools + python-setuptools-scm + python-wheel)) + (home-page "https://github.com/fzumstein/jsondiff") + (synopsis "Compare JSON and JSON-like structures in Python") + (description "@code{jsondiff} is a Python library which lets you compare, +diff, and patch JSON and JSON-like structures in Python.") + (license license:expat))) (define-public python-ddlparse (package