From e4145277f34d5c1e9025f2cf9b7e813aa8dfaf1f Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 25 Oct 2025 15:46:17 +0200 Subject: [PATCH] gnu: python-setproctitle: Update to 1.3.7. * gnu/packages/python-xyz.scm (python-setproctitle): Update to 1.3.7. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:phases>: Replace 'check phase replacement by a 'configure-tests phase. [native-inputs]: Add python-setuptools. [description]: Improve style. Change-Id: I4555b880da3faef7860fac999814bf2d052b0e05 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 49 ++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 53fb98e5aca7c11ee456b10508e7a0b21b4c2912..805c611bd4b0e7669b228f550ebdb9661437e8d2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -23345,35 +23345,40 @@ stemmer.") (define-public python-setproctitle (package (name "python-setproctitle") - (version "1.3.2") + (version "1.3.7") (source (origin - (method url-fetch) - (uri (pypi-uri "setproctitle" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/dvarrazzo/py-setproctitle") + (commit (string-append "version-" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1zbp6kyzfbrmbh9j3idai0mnpa28zn5db3k5l07jc3c3gj89gyxr")))) - (build-system python-build-system) + (base32 "0k51ypmr2p2c55dyl2pq3dclih9jk2zx7dxm8010li4pyfsrvwvm")))) + (build-system pyproject-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (setenv "PYTHON" (or (which "python3") (which "python"))) - (setenv "PYCONFIG" (if (which "python3-config") - "python3-config --embed" - "python-config")) - (substitute* "tests/conftest.py" - (("cc") "gcc")) - (when tests? - (invoke "pytest" "tests/"))))))) - (native-inputs - (list procps python-pytest)) ; required for tests + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'configure-tests + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "PYTHON" + (or (which "python3") + (which "python"))) + (setenv "PYCONFIG" + (if (which "python3-config") + "python3-config --embed" + "python-config")) + (substitute* "tests/conftest.py" + (("cc") "gcc")))))))) + (native-inputs (list procps python-pytest python-setuptools)) ;required for tests (home-page "https://github.com/dvarrazzo/py-setproctitle") (synopsis "Setproctitle implementation for Python to customize the process title") - (description "The library allows a process to change its title (as displayed -by system tools such as @code{ps} and @code{top}). + (description + "The library allows a process to change its title (as displayed by system +tools such as @code{ps} and @code{top}). Changing the title is mostly useful in multi-process systems, for example when a master process is forked: changing the children's title allows identifying the