summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-11-01 13:52:12 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-20 01:06:43 +0000
commitab5baeb2b60585bdedb831ed62c327fb22b78774 (patch)
treeb7c4448c7a11fd0d4a5c6d95d1aaf1d1a27496f9 /gnu
parent51907be97482eccc9a767644dc529762795b9b14 (diff)
gnu: python-pyinstrument: Update to 5.1.1.
* gnu/packages/python-check.scm (python-pyinstrument): Update to 5.1.1. [arguments] <test-flags>: Rework skipped tests. <phases>: Remove build-extensions; add 'pre-check, containing removal of local pyinstrument instead of re-building extensions. [native-inputs]: Remove python-wheel. Change-Id: I62b212f4abcef70f04aaf24e69217cff67ea3d1f
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-check.scm29
1 files changed, 17 insertions, 12 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 62fbbc5fa83..a3ac64d706d 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -2014,37 +2014,42 @@ attachments).
(define-public python-pyinstrument
(package
(name "python-pyinstrument")
- (version "4.6.2")
+ (version "5.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyinstrument" version))
(sha256
- (base32 "1xnp1pjhcj1xl4dq20yzzj9599cmiyxb2azblsyjnl6qgr8yw0h0"))))
+ (base32 "1a5shhhqy45bqjdahy1lnxikrpq5sv5p610fivz1qg0bk7d1qh5w"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
- #~(list "-k" (string-append
- ;; Disable some failing tests.
- "not test_script_execution_details"
- " and not test_path_execution_details"
- " and not test_module_execution_details"
- " and not test_program_passed_as_string_execution_details"))
+ #~(list
+ #$@(map (lambda (test) (string-append "--deselect="
+ "test/test_cmdline.py::"
+ "TestCommandLine::"
+ test))
+ ;; subprocess.CalledProcessError: Command '['pyinstrument',
+ ;; '-m', 'busy_wait_module']' returned non-zero exit status
+ ;; 1.
+ (list "test_module_running[pyinstrument_invocation0]"
+ "test_single_file_module_running[pyinstrument_invocation0]"
+ "test_running_yourself_as_module[pyinstrument_invocation0]"
+ "test_module_execution_details[pyinstrument_invocation0]")))
#:phases
#~(modify-phases %standard-phases
- (add-before 'check 'build-extensions
+ (add-before 'check 'pre-check
(lambda _
(setenv "HOME" "/tmp")
- (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+ (delete-file-recursively "pyinstrument"))))))
(native-inputs
(list python-flaky
python-greenlet
python-pytest
python-pytest-asyncio
python-pytest-trio
- python-setuptools
- python-wheel))
+ python-setuptools))
(home-page "https://github.com/joerick/pyinstrument")
(synopsis "Call stack profiler for Python")
(description