From da56bde6df486477c10389a98a00251d457bc7db Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 18 Oct 2025 14:39:33 +0200 Subject: [PATCH] gnu: python-q: Update to 2.7-0.cbad740. * gnu/packages/python-xyz.scm (python-q): Update to 2.7-0.cbad740. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Run tests with the help of <#:test-backend, #:test-flags, #:phases>. [native-inputs]: Add python-setuptools. Change-Id: I9da12c1c266a0c68d06dbad4d8f61e2658c4ad53 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b5680bef041ed780c252a1b8f5417d4a46d66dc4..c7f6c3d9df275905cf300c4249fd49bf845116e7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -15984,15 +15984,33 @@ as possible in order to be comprehensible and easily extensible.") (define-public python-q (package (name "python-q") - (version "2.6") + (properties '((commit . "cbad74095e20017f33d3ab75aa8375aa046ee697") + (revision . "0"))) + (version (git-version "2.7" + (assoc-ref properties 'revision) + (assoc-ref properties 'commit))) (source (origin - (method url-fetch) - (uri (pypi-uri "q" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zestyping/q") + (commit (assoc-ref properties 'commit)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy")))) - (build-system python-build-system) + (base32 "17bzi4xma4313waxanz5lly0cf0k6h33qrpy24sra2frh7gp0j0j")))) + (build-system pyproject-build-system) + (arguments + (list + ;; Deduced from the makefile. + #:test-backend #~'custom + #:test-flags #~(list "test/test_basic.py") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'configure-tests + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "TMPDIR" "/tmp"))))))) + (native-inputs (list python-setuptools)) (home-page "https://github.com/zestyping/q") (synopsis "Quick-and-dirty debugging output for tired programmers") (description