From 2cfe511f031b924d37946a072848b5172415ba3a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 25 Mar 2026 23:21:03 +0000 Subject: [PATCH] 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 --- gnu/packages/python-science.scm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 1c2cd25273..729533e6ac 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -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: . + (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?