mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
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
This commit is contained in:
parent
bcd9a40c49
commit
5ccae1ae44
1 changed files with 17 additions and 9 deletions
|
@ -327,20 +327,28 @@ (define-public python-pyinstrument
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue