diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-02-24 15:44:49 +0100 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-02-25 11:10:18 +0100 |
| commit | c5464369bf91ac48182122757e90a11a320c34d5 (patch) | |
| tree | e1695537bbff04acd83eabbb969ccb32fc71998c | |
| parent | 4a1abea905350bc7f96b6b7be33b702f97288b5e (diff) | |
version-control: dvc: Improve style.
* guix-science/packages/version-control.scm (dvc)
[arguments]<#:phases>: Use full phase names,
use serach-input-file instead of which.
[inputs]: Move below propagated-inputs.
| -rw-r--r-- | guix-science/packages/version-control.scm | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/guix-science/packages/version-control.scm b/guix-science/packages/version-control.scm index 4314b81..7b793c6 100644 --- a/guix-science/packages/version-control.scm +++ b/guix-science/packages/version-control.scm | |||
| @@ -55,30 +55,28 @@ | |||
| 55 | "tests/unit") | 55 | "tests/unit") |
| 56 | #:phases | 56 | #:phases |
| 57 | #~(modify-phases %standard-phases | 57 | #~(modify-phases %standard-phases |
| 58 | (add-after 'unpack 'fix-pandas-2.2 | 58 | (add-after 'unpack 'fix-pandas-compatibility |
| 59 | (lambda _ | 59 | (lambda _ |
| 60 | (substitute* "dvc/database.py" | 60 | (substitute* "dvc/database.py" |
| 61 | (("Serializer\\(sql, con\\)") | 61 | (("Serializer\\(sql, con\\)") |
| 62 | "Serializer(sql, con.connection)")))) | 62 | "Serializer(sql, con.connection)")))) |
| 63 | (add-after 'unpack 'patch-shell | 63 | (add-after 'unpack 'patch-shell |
| 64 | (lambda _ | 64 | (lambda* (#:key inputs #:allow-other-keys) |
| 65 | (substitute* "dvc/stage/run.py" | 65 | (let ((bash (search-input-file inputs "/bin/bash"))) |
| 66 | (("/bin/sh") | 66 | (substitute* (list "dvc/stage/run.py" |
| 67 | (which "bash"))) | 67 | "tests/func/repro/test_repro.py") |
| 68 | (substitute* "tests/func/repro/test_repro.py" | 68 | (("/bin/sh") |
| 69 | (("/bin/sh") | 69 | bash))))) |
| 70 | (which "bash"))))) | ||
| 71 | (add-before 'build 'set-version | 70 | (add-before 'build 'set-version |
| 72 | (lambda _ | 71 | (lambda _ |
| 73 | (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" | 72 | (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" |
| 74 | #$version))) | 73 | #$version))) |
| 75 | (add-before 'check 'fix-pytest-config | 74 | (add-before 'check 'fix-pytest-configuration |
| 76 | (lambda _ | 75 | (lambda _ |
| 77 | (substitute* "pyproject.toml" | 76 | (substitute* "pyproject.toml" |
| 78 | ;; no python-pytest-cov | 77 | ;; no python-pytest-cov |
| 79 | (("--cov-config pyproject.toml") | 78 | (("--cov-config pyproject.toml") |
| 80 | ""))))))) | 79 | ""))))))) |
| 81 | (inputs (list bash-minimal)) | ||
| 82 | (propagated-inputs (list python-attrs | 80 | (propagated-inputs (list python-attrs |
| 83 | python-celery | 81 | python-celery |
| 84 | python-colorama | 82 | python-colorama |
| @@ -123,6 +121,7 @@ | |||
| 123 | python-tqdm | 121 | python-tqdm |
| 124 | python-voluptuous | 122 | python-voluptuous |
| 125 | python-zc-lockfile)) | 123 | python-zc-lockfile)) |
| 124 | (inputs (list bash-minimal)) | ||
| 126 | (native-inputs (list python-beautifulsoup4 | 125 | (native-inputs (list python-beautifulsoup4 |
| 127 | python-dvc-s3 | 126 | python-dvc-s3 |
| 128 | python-dvc-ssh | 127 | python-dvc-ssh |
