guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit e30b1b543cbe1392d42c43c0b2af7151b29c5778
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Jan 24 21:07:46 2026 +0000
gnu: ansible-core: Fix build.
* gnu/packages/admin.scm (ansible-core):
[phases]{set-HOME}: New phases.
{check}: Remove setting HOME from phase.
[native-inputs]: Remove python-pytest; add python-pytest-8.
Change-Id: Ifeb238a4f058d6618d1ce79f0275332bed1f007f
---
gnu/packages/admin.scm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 85afff7562..bf468495f8 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -3286,6 +3286,10 @@ specified directories.")
import re
sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0])
")))))
+ (add-before 'build 'set-HOME
+ (lambda _
+ ;; Otherwise Ansible fails to create its config directory.
+ (setenv "HOME" "/tmp")))
(add-after 'install 'replace-symlinks
(lambda _
;; Replace symlinks with duplicate copies of the ansible
@@ -3317,8 +3321,6 @@ sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1',
sys.argv[0])
(replace 'check
(lambda* (#:key inputs outputs tests? test-flags #:allow-other-keys)
(when tests?
- ;; Otherwise Ansible fails to create its config directory.
- (setenv "HOME" "/tmp")
;; The test suite needs to be run with 'ansible-test', which
;; does some extra environment setup. Taken from
;; https://raw.githubusercontent.com/ansible/ansible/\
@@ -3329,7 +3331,7 @@ sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1',
sys.argv[0])
openssl
python-mock
python-pycryptodome
- python-pytest
+ python-pytest-8
python-pytest-forked
python-pytest-mock
python-pytest-xdist