diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-21 22:16:21 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-21 22:20:16 +0000 |
| commit | 6168d3740468b34e6f39bf45b134609f6cc745ef (patch) | |
| tree | ddca1b341dc01deff329a8b18899ab196e6b471b /gnu | |
| parent | 992bcd7eede06bd37e076cec17c03e7ca4dbdffe (diff) | |
gnu: podman-compose: Use unittest.
* gnu/packages/containers.scm (podman-compose):
[arguments] <test-backend, test-flags>: Use unittest as seen in
project's GitHub Actons.
<phases>: Remove 'pre-check.
[native-inputs]: Remove python-pytest and python-wheel.
Change-Id: I6da2f7f4c55f4cd22919d7f7827b2be58993f2e2
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/containers.scm | 28 |
1 files 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 | |||
| 708 | (origin | 708 | (origin |
| 709 | (method git-fetch) | 709 | (method git-fetch) |
| 710 | (uri (git-reference | 710 | (uri (git-reference |
| 711 | (url "https://github.com/containers/podman-compose") | 711 | (url "https://github.com/containers/podman-compose") |
| 712 | (commit (string-append "v" version)))) | 712 | (commit (string-append "v" version)))) |
| 713 | (file-name (git-file-name name version)) | 713 | (file-name (git-file-name name version)) |
| 714 | (sha256 | 714 | (sha256 |
| 715 | (base32 "08pz9axvgfyr0jd8rlndmhh8147s864mz17ng6qs07831g9ylj80")))) | 715 | (base32 "08pz9axvgfyr0jd8rlndmhh8147s864mz17ng6qs07831g9ylj80")))) |
| @@ -717,17 +717,19 @@ To get @code{podman machine} working, install @code{qemu-minimal}, and | |||
| 717 | (arguments | 717 | (arguments |
| 718 | (list | 718 | (list |
| 719 | ;; Only run tests in `tests/unit`, skipping the ones in | 719 | ;; Only run tests in `tests/unit`, skipping the ones in |
| 720 | ;; `tests/integration`. The integration tests need an environment with the | 720 | ;; `tests/integration`. The integration tests need an environment with |
| 721 | ;; ability to manage containers and volumes using the `podman` command. | 721 | ;; the ability to manage containers and volumes using the `podman` |
| 722 | #:test-flags #~(list "tests/unit") | 722 | ;; command. |
| 723 | #:phases | 723 | ;; |
| 724 | #~(modify-phases %standard-phases | 724 | ;; tests: 378 tests |
| 725 | (add-before 'check 'pre-check | 725 | #:test-backend #~'unittest |
| 726 | (lambda _ | 726 | #:test-flags #~(list "discover" "tests/unit"))) |
| 727 | ;; This fixes "ModuleNotFoundError: No module named 'tests'" | 727 | (native-inputs |
| 728 | (invoke "touch" "tests/__init__.py")))))) | 728 | (list python-parameterized |
| 729 | (native-inputs (list python-pytest python-parameterized python-setuptools python-wheel)) | 729 | python-setuptools)) |
| 730 | (propagated-inputs (list python-dotenv python-pyyaml)) | 730 | (propagated-inputs |
| 731 | (list python-dotenv | ||
| 732 | python-pyyaml)) | ||
| 731 | (home-page "https://github.com/containers/podman-compose") | 733 | (home-page "https://github.com/containers/podman-compose") |
| 732 | (synopsis "Script to run docker-compose.yml using podman") | 734 | (synopsis "Script to run docker-compose.yml using podman") |
| 733 | (description | 735 | (description |
