guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 93e4c03938ae2c161885b615d66c613a544fc8ac
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Dec 28 14:35:12 2025 +0000
gnu: gprof2dot: Update to 2025.04.14.
* gnu/packages/graphviz.scm (gprof2dot): Update to 2025.04.14.
[build-system]: Switch to pyproject-build-system.
[arguments] <test-backend, test-flags>: Use 'custom.
<phases>: Use default 'check.
[native-inputs]: Add python-setuptools.
Change-Id: I5df63313a7646fa33bbef9b267fa4ce689c9e753
---
gnu/packages/graphviz.scm | 35 +++++++++++++++++++++--------------
1 file changed, 21 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm
index be7784ac9e..d553997420 100644
--- a/gnu/packages/graphviz.scm
+++ b/gnu/packages/graphviz.scm
@@ -465,28 +465,35 @@ This approach allows:
(define-public gprof2dot
(package
(name "gprof2dot")
- (version "2021.02.21")
+ (version "2025.04.14")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/jrfonseca/gprof2dot")
- (commit version)))
+ (url "https://github.com/jrfonseca/gprof2dot")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
- (base32
- "1jjhsjf5fdi1fkn7mvhnzkh6cynl8gcjrygd3cya5mmda3akhzic"))))
- (build-system python-build-system)
+ (base32 "0yil32pbcarwsfmhgn2zhldjj985v9p80f2yi2shkaxzfc4w6zwi"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (invoke "python" "tests/test.py")))))))
+ (list
+ #:test-backend #~'custom
+ #:test-flags
+ #~(list "tests/test.py"
+ "--python=bash"
+ "--max-acceptable=0"
+ (string-append "--gprof2dot=" #$output "/bin/gprof2dot"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-tests
+ ;; Prevent irrelevant errors that cause test output mismatches:
+ ;; ‘Fontconfig error: No writable cache directories’
+ (lambda _
+ (setenv "XDG_CACHE_HOME" "/tmp"))))))
(native-inputs
- (list graphviz))
+ (list graphviz
+ python-setuptools))
(home-page "https://github.com/jrfonseca/gprof2dot")
(synopsis "Generate a dot graph from the output of several profilers")
(description "This package provides a Python script to convert the output