[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/10: gnu: python-pyinstrument: Enable tests.
From: |
guix-commits |
Subject: |
05/10: gnu: python-pyinstrument: Enable tests. |
Date: |
Sun, 11 Feb 2024 16:04:35 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit 5ccae1ae44b6f2b3f8a687611d61194a14dc1e0f
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Feb 11 11:45:41 2024 +0000
gnu: python-pyinstrument: Enable tests.
* gnu/packages/python-check.scm (python-pyinstrument) [build-system]:
Swap to pyproject-build-system.
[native-inputs]: Add python-greenlet.
Change-Id: I1cd0c3e906fbbdc561e66bae9fe35333f61801cf
---
gnu/packages/python-check.scm | 26 +++++++++++++++++---------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 90f2f4c8ae..315ea74459 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -327,20 +327,28 @@ result documents that can be read by tools such as
Jenkins or Bamboo.")
(uri (pypi-uri "pyinstrument" version))
(sha256
(base32 "1xnp1pjhcj1xl4dq20yzzj9599cmiyxb2azblsyjnl6qgr8yw0h0"))))
- (build-system python-build-system)
+ (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"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'build-extensions
+ (lambda _
+ (setenv "HOME" "/tmp")
+ (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(native-inputs
(list python-flaky
+ python-greenlet
python-pytest
python-pytest-asyncio
python-pytest-trio))
- (arguments
- `(;; TODO: Get tests to work.
- #:tests? #f
- #:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv")))))))
(home-page "https://github.com/joerick/pyinstrument")
(synopsis "Call stack profiler for Python")
(description
- branch master updated (4bab3a2602 -> ab3da80ae1), guix-commits, 2024/02/11
- 02/10: gnu: python-beartype: Simplify package., guix-commits, 2024/02/11
- 04/10: gnu: python-pyinstrument: Update to 4.6.2., guix-commits, 2024/02/11
- 06/10: gnu: python-pytest-socket: Simplify package, enable tests., guix-commits, 2024/02/11
- 01/10: gnu: Add python-pandas-vet., guix-commits, 2024/02/11
- 10/10: gnu: abjad-ext-rmakers: Simplify package., guix-commits, 2024/02/11
- 08/10: gnu: abjad-ext-nauert: Simplify package., guix-commits, 2024/02/11
- 05/10: gnu: python-pyinstrument: Enable tests.,
guix-commits <=
- 03/10: gnu: python-pytest-csv: Simplify package., guix-commits, 2024/02/11
- 07/10: gnu: abjad-ext-nauert: Fix build., guix-commits, 2024/02/11
- 09/10: gnu: abjad-ext-rmakers: Fix build., guix-commits, 2024/02/11