From 5a635a8b7f4f6b9044be45aa602d1d6539d73364 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Mon, 7 Feb 2022 00:50:47 +0100 Subject: [PATCH v5 23/32] 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 e6ce5ee26e..8786130d92 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -25801,6 +25801,34 @@ (define-public python-no-version __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") -- 2.34.0