mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
gnu: python-zeroconf: Simplify package.
* gnu/packages/python-xyz.scm (python-zeroconf) [build-system]: Swap to pyproject-build-system. [arguments] <#:test-flags>: Move skipped tests here. <#:phases>: Use standard 'check phase. Change-Id: I7891a817b984a440a957ae8809d5e4877dc43d0e
This commit is contained in:
parent
eeaad8c906
commit
e355848578
1 changed files with 10 additions and 15 deletions
|
@ -28094,22 +28094,17 @@ (define-public python-zeroconf
|
|||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "1p1a0ywlg5sq0ilcphmz9h4kayscz0q1lyfk57j7mwxyx4gl9cpi"))))
|
||||
(build-system python-build-system)
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(invoke "python" "-m" "pytest" "-k"
|
||||
(string-append
|
||||
;; Networking isn't available for these tests.
|
||||
"not test_integration_with_listener_ipv6"
|
||||
" and not test_launch_and_close_v4_v6"
|
||||
" and not test_launch_and_close_context_manager"
|
||||
" and not test_launch_and_close"
|
||||
" and not test_close_multiple_times"))))))))
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "-k" (string-append
|
||||
;; Networking isn't available for these tests.
|
||||
"not test_integration_with_listener_ipv6"
|
||||
" and not test_launch_and_close_v4_v6"
|
||||
" and not test_launch_and_close_context_manager"
|
||||
" and not test_launch_and_close"
|
||||
" and not test_close_multiple_times"))))
|
||||
(native-inputs
|
||||
(list python-pytest))
|
||||
(propagated-inputs
|
||||
|
|
Loading…
Reference in a new issue