diff options
author | Frederick Muriuki Muriithi | 2025-08-11 11:26:41 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-08-11 11:26:41 -0500 |
commit | 49feaacd99301b6586b052ae2f4405abdf6c5cec (patch) | |
tree | f444cd1f393856b726b454427ef77ddd72cfe2ef | |
parent | 1039ea213dea136364046e4503b3d24e527d995e (diff) | |
download | guix-bioinformatics-49feaacd99301b6586b052ae2f4405abdf6c5cec.tar.gz |
Fix rpy2 build.
-rw-r--r-- | gn/packages/statistics.scm | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/gn/packages/statistics.scm b/gn/packages/statistics.scm index 5b4d649..c7cce66 100644 --- a/gn/packages/statistics.scm +++ b/gn/packages/statistics.scm @@ -25,7 +25,7 @@ #:use-module (gnu packages compression); python-rpy2-rinterface #:use-module (gnu packages icu4c); python-rpy2-rinterface #:use-module (gnu packages time); python-rpy2-robjects - ) + #:use-module (guix gexp)) (define-public r-hmisc-3 (package @@ -230,8 +230,30 @@ interaction networks.") ;; TODO: Delete this after python-rpy2 is fixed upstream. (package (inherit python-rpy2) + (name "python-rpy2") + (version "3.6.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "rpy2" version)) + (sha256 + (base32 "1l3paflfc2wczjms9ghaklg4bxg0c2cqh4anvlskpl4id9vsakhp")))) (propagated-inputs (modify-inputs (package-propagated-inputs python-rpy2) (prepend r-minimal) (prepend python-rpy2-rinterface) - (prepend python-rpy2-robjects))))) + (prepend python-rpy2-robjects))) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'fix-license-metadata + (lambda* _ + ;; Remove one field + (substitute* "./pyproject.toml" + (("license = \"GPL-2.0-or-later\"\n") + "") + ;; update remaining field to acceptable PEP 621 format + (("^license-files = .*$") + "license = {file = \"LICENSE\"}\n")))) + (delete 'check)))))) |