mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
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
This commit is contained in:
@@ -4003,7 +4003,7 @@ tissue-specificity metrics for gene expression.")
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
;; tests: 174115 passed, 24224 skipped, 990 xfailed, 77 xpassed, 110 warnings
|
||||
;; tests: 174059 passed, 24280 skipped, 990 xfailed, 77 xpassed, 110 warnings
|
||||
#:test-flags
|
||||
#~(list "-m" (string-join
|
||||
(list "not db" "network" "single_cpu" "slow" "slow_arm")
|
||||
@@ -4016,12 +4016,14 @@ tissue-specificity metrics for gene expression.")
|
||||
" and not "))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'version-set-by-guix
|
||||
(add-after 'unpack 'patch-generate-version
|
||||
(lambda _
|
||||
(with-output-to-file "_version.py"
|
||||
(lambda _
|
||||
(display
|
||||
(string-append "__version__ = \"" #$version "\""))))))
|
||||
;; See: <https://github.com/pandas-dev/pandas/issues/59459>.
|
||||
(substitute* "generate_version.py"
|
||||
(("version =.*")
|
||||
(format #f "version = ~s~%" #$version))
|
||||
(("git_version =.*")
|
||||
(format #f "git_version = ~s~%" #$version)))))
|
||||
(replace 'check
|
||||
(lambda* (#:key inputs outputs test-flags tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
|
||||
Reference in New Issue
Block a user