From 68d7bd6ed1f1262c2786fba6c8cf5663a2c75adf Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Sun, 12 Oct 2025 19:38:44 +0200 Subject: [PATCH] gnu: python-ajsonrpc: Fix version. * gnu/packages/python-web.scm (python-ajsonrpc)[arguments] <#:phases>{set-version}: New phase. [native-inputs]: Remove python-wheel. Change-Id: If28164fcb53e91698c947d764efdc42391bc65f0 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-web.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index fea2ee66db657cb81794a2dfab3be3b194664c1d..ceb876ef380a29e8f10decb8218eb0a48261f9eb 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -11411,7 +11411,18 @@ standard library and supported by default in Quart.") (sha256 (base32 "0c7jxfkv5q2m95j54dn650gcvdbpag2qcki7phvmrwsgb36w09kd")))) (build-system pyproject-build-system) - (native-inputs (list python-pytest python-setuptools python-wheel)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-version + (lambda _ + (substitute* "ajsonrpc/__init__.py" + (("^__version__ = .*") + (string-append "__version__ = \"" #$version "\"\n")))))))) + (native-inputs + (list python-pytest + python-setuptools)) (propagated-inputs (list python-quart python-sanic