guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

23/32: gnu: Add python-pyperf.


From: guix-commits
Subject: 23/32: gnu: Add python-pyperf.
Date: Wed, 16 Feb 2022 11:39:41 -0500 (EST)

nckx pushed a commit to branch wip-python-mne
in repository guix.

commit 7881751d247b7f6e1d8e74f0662512da2fc93b73
Author: Vivien Kraus <vivien@planete-kraus.eu>
AuthorDate: Mon Feb 7 00:50:47 2022 +0100

    gnu: Add python-pyperf.
    
    * gnu/packages/python-xyz.scm (python-pyperf): New variable.
---
 gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7d3a57c5de..e9bf530d92 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25832,6 +25832,34 @@ function.")
 __version__ number.")
     (license license:cc0)))
 
+(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 'disable-failing-test
+           (lambda _
+             (delete-file "pyperf/tests/test_examples.py")))
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "python" "-m" "pytest")))))))
+    (native-inputs
+     (list python-pytest))
+    (home-page "https://github.com/psf/pyperf";)
+    (synopsis "Python module to run and analyze benchmarks.")
+    (description "This package provides a python module to run and analyze 
benchmarks.")
+    (license license:expat)))
+
 (define-public python-frozendict
   (package
     (name "python-frozendict")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]