summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-08-24 18:51:15 +0200
committerjgart <jgart@dismail.de>2025-08-26 09:30:00 -0500
commit39eecca8b5577dd162f03bb6b2368953ba6132c4 (patch)
treec297c6b13fdecafc0e33196370dde7fa5d76c93a /gnu/packages/python-xyz.scm
parent97b829d270781dc52818ae2c36b19d62fdf99f73 (diff)
gnu: python-pyperf: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-pyperf): [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: Set them to replace... <#:phases>:... these. [native-inputs]: Add python-pytest, python-setuptools, python-wheel. [description]: Run guix style. Signed-off-by: jgart <jgart@dismail.de>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm32
1 files changed, 9 insertions, 23 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b90e909b2d..c792280d6d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -38361,32 +38361,18 @@ easy to write code that's correct across platforms and Pythons.")
(uri (pypi-uri "pyperf" version))
(sha256
(base32 "189qf9wdbig0fk4n3bavx8acgdbay5lllfvw48jvbfaafb7y5hja"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-tests
- (lambda _
- ;; Some of these tests fail with:
- ;;
- ;; ModuleNotFoundError: No module named 'pyperf'
- ;;
- ;; even when calling ‘add-installed-pythonpath’ in the ‘check’
- ;; phase.
- (delete-file "pyperf/tests/test_examples.py")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; From tox.ini's ‘testenv.commands’.
- (invoke "python" "-bb" "-Wd"
- "-m" "unittest" "discover"
- "-s" "pyperf/tests/" "-v")))))))
- (native-inputs
- (list python-psutil))
+ (list
+ #:test-flags
+ #~(list "--ignore=pyperf/tests/test_examples.py")))
+ (native-inputs (list python-psutil python-pytest python-setuptools
+ python-wheel))
(home-page "https://github.com/psf/pyperf")
(synopsis "Toolkit for running Python benchmarks")
- (description "The Python @code{pyperf} module is a toolkit for writing,
-running and analyzing benchmarks. It features a simple API that can:
+ (description
+ "The Python @code{pyperf} module is a toolkit for writing, running and
+analyzing benchmarks. It features a simple API that can:
@itemize
@item automatically calibrate a benchmark for a time budget;