[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/18: gnu: Add python-pyperf.
From: |
guix-commits |
Subject: |
08/18: gnu: Add python-pyperf. |
Date: |
Mon, 23 May 2022 10:26:08 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 62f16063a1eae0be6242a27dead1e2430b40a2d6
Author: Paul A. Patience <paul@apatience.com>
AuthorDate: Mon May 2 21:17:17 2022 +0000
gnu: Add python-pyperf.
* gnu/packages/python-xyz.scm (python-pyperf): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/python-xyz.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3c4fa16d16..95ed00da50 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31144,6 +31144,53 @@ uses the parsed regular expression, so you get a much
more accurate result
than trying to just split strings.")
(license license:asl2.0)))
+(define-public python-pyperf
+ (package
+ (name "python-pyperf")
+ (version "2.3.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pyperf" version))
+ (sha256
+ (base32 "189qf9wdbig0fk4n3bavx8acgdbay5lllfvw48jvbfaafb7y5hja"))))
+ (build-system python-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))
+ (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:
+
+@itemize
+@item automatically calibrate a benchmark for a time budget;
+@item spawn multiple worker processes;
+@item compute the mean and standard deviation;
+@item detect if a benchmark result seems unstable;
+@item store benchmark results in JSON format;
+@item support multiple units: seconds, bytes and integer.
+@end itemize")
+ (license license:expat)))
+
(define-public python-pydispatcher
(package
(name "python-pydispatcher")
- branch master updated (a6da02217e -> 2f58393d99), guix-commits, 2022/05/23
- 01/18: scripts: package: Transform before creating manifest entries., guix-commits, 2022/05/23
- 07/18: gnu: python-meshio: Update to 5.3.4., guix-commits, 2022/05/23
- 08/18: gnu: Add python-pyperf.,
guix-commits <=
- 10/18: gnu: Add python-scooby., guix-commits, 2022/05/23
- 02/18: import: utils: Update list of SPDX licenses., guix-commits, 2022/05/23
- 03/18: gnu: python-plotly: Update to 5.6.0., guix-commits, 2022/05/23
- 04/18: gnu: python-meshio: Remove input labels., guix-commits, 2022/05/23
- 05/18: gnu: python-meshio: Remove trailing booleans., guix-commits, 2022/05/23
- 06/18: gnu: python-meshio: Honor #:tests? flag., guix-commits, 2022/05/23
- 09/18: gnu: Add python-pyvips., guix-commits, 2022/05/23
- 13/18: gnu: Add patatt., guix-commits, 2022/05/23
- 11/18: gnu: Add python-pyvista., guix-commits, 2022/05/23
- 12/18: licenses: Add Expat No Attribution license., guix-commits, 2022/05/23