guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 8e2fa683f63fbb9cd3460ff0030b4ce3fa0794f9
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 907d427995..35257d226b 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -3285,6 +3285,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
@@ -3316,8 +3320,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/\
@@ -3328,7 +3330,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