diff options
-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)))))) |