diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-25 23:21:03 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-24 10:14:45 +0100 |
| commit | f61830339cd3ec25cc45605dcce668bf9bbee71f (patch) | |
| tree | e65b3f2c1f4a456473e4eb47742bcf0253a215b2 | |
| parent | 3ce91e83327a8c830d18133254c1366dd88d4e50 (diff) | |
gnu: python-pandas: Fix build.
* gnu/packages/python-science.scm (python-pandas):
[phases]{version-set-by-guix}: Remove phases.
{patch-generate-version}: New phase.
Change-Id: Iee36356021f5bab3656ee39f3600af8b9d297a05
| -rw-r--r-- | gnu/packages/python-science.scm | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index e023702b63b..762de671ad0 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm | |||
| @@ -4076,7 +4076,7 @@ tissue-specificity metrics for gene expression.") | |||
| 4076 | (build-system pyproject-build-system) | 4076 | (build-system pyproject-build-system) |
| 4077 | (arguments | 4077 | (arguments |
| 4078 | (list | 4078 | (list |
| 4079 | ;; tests: 174115 passed, 24224 skipped, 990 xfailed, 77 xpassed, 110 warnings | 4079 | ;; tests: 174059 passed, 24280 skipped, 990 xfailed, 77 xpassed, 110 warnings |
| 4080 | #:test-flags | 4080 | #:test-flags |
| 4081 | #~(list "-m" (string-join | 4081 | #~(list "-m" (string-join |
| 4082 | (list "not db" "network" "single_cpu" "slow" "slow_arm") | 4082 | (list "not db" "network" "single_cpu" "slow" "slow_arm") |
| @@ -4089,12 +4089,14 @@ tissue-specificity metrics for gene expression.") | |||
| 4089 | " and not ")) | 4089 | " and not ")) |
| 4090 | #:phases | 4090 | #:phases |
| 4091 | #~(modify-phases %standard-phases | 4091 | #~(modify-phases %standard-phases |
| 4092 | (add-after 'unpack 'version-set-by-guix | 4092 | (add-after 'unpack 'patch-generate-version |
| 4093 | (lambda _ | 4093 | (lambda _ |
| 4094 | (with-output-to-file "_version.py" | 4094 | ;; See: <https://github.com/pandas-dev/pandas/issues/59459>. |
| 4095 | (lambda _ | 4095 | (substitute* "generate_version.py" |
| 4096 | (display | 4096 | (("version =.*") |
| 4097 | (string-append "__version__ = \"" #$version "\"")))))) | 4097 | (format #f "version = ~s~%" #$version)) |
| 4098 | (("git_version =.*") | ||
| 4099 | (format #f "git_version = ~s~%" #$version))))) | ||
| 4098 | (replace 'check | 4100 | (replace 'check |
| 4099 | (lambda* (#:key inputs outputs test-flags tests? #:allow-other-keys) | 4101 | (lambda* (#:key inputs outputs test-flags tests? #:allow-other-keys) |
| 4100 | (when tests? | 4102 | (when tests? |
