From 6168d3740468b34e6f39bf45b134609f6cc745ef Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 21 Dec 2025 22:16:21 +0000 Subject: [PATCH] gnu: podman-compose: Use unittest. * gnu/packages/containers.scm (podman-compose): [arguments] : Use unittest as seen in project's GitHub Actons. : Remove 'pre-check. [native-inputs]: Remove python-pytest and python-wheel. Change-Id: I6da2f7f4c55f4cd22919d7f7827b2be58993f2e2 --- gnu/packages/containers.scm | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 9260d2562f7..b8d9653e3d7 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -708,8 +708,8 @@ To get @code{podman machine} working, install @code{qemu-minimal}, and (origin (method git-fetch) (uri (git-reference - (url "https://github.com/containers/podman-compose") - (commit (string-append "v" version)))) + (url "https://github.com/containers/podman-compose") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "08pz9axvgfyr0jd8rlndmhh8147s864mz17ng6qs07831g9ylj80")))) @@ -717,17 +717,19 @@ To get @code{podman machine} working, install @code{qemu-minimal}, and (arguments (list ;; Only run tests in `tests/unit`, skipping the ones in - ;; `tests/integration`. The integration tests need an environment with the - ;; ability to manage containers and volumes using the `podman` command. - #:test-flags #~(list "tests/unit") - #:phases - #~(modify-phases %standard-phases - (add-before 'check 'pre-check - (lambda _ - ;; This fixes "ModuleNotFoundError: No module named 'tests'" - (invoke "touch" "tests/__init__.py")))))) - (native-inputs (list python-pytest python-parameterized python-setuptools python-wheel)) - (propagated-inputs (list python-dotenv python-pyyaml)) + ;; `tests/integration`. The integration tests need an environment with + ;; the ability to manage containers and volumes using the `podman` + ;; command. + ;; + ;; tests: 378 tests + #:test-backend #~'unittest + #:test-flags #~(list "discover" "tests/unit"))) + (native-inputs + (list python-parameterized + python-setuptools)) + (propagated-inputs + (list python-dotenv + python-pyyaml)) (home-page "https://github.com/containers/podman-compose") (synopsis "Script to run docker-compose.yml using podman") (description