From 0a1882996472282dcf60f6a294a4f934d40d5bad Mon Sep 17 00:00:00 2001 From: pjotrp Date: Wed, 25 Oct 2017 10:17:38 +0000 Subject: Updated GEMMA git Added python-rpy2 since it got dropped from main --- gn/packages/python.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'gn/packages/python.scm') diff --git a/gn/packages/python.scm b/gn/packages/python.scm index f9bb733..9d85892 100644 --- a/gn/packages/python.scm +++ b/gn/packages/python.scm @@ -42,6 +42,47 @@ #:use-module (srfi srfi-1)) +(define-public python2-rpy2 + (package + (name "python2-rpy2") + (version "2.7.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "rpy2" version)) + (sha256 + (base32 + "0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (delete 'check) + (add-after 'install 'check + (lambda* (#:key outputs inputs #:allow-other-keys) + ;; It's easier to run tests after install. + ;; Make installed package available for running the tests + (add-installed-pythonpath inputs outputs) + (zero? (system* "python" "-m" "rpy2.tests" "-v"))))))) + (propagated-inputs + `(("python2-six" ,python2-six))) + (inputs + `(("readline" ,readline) + ("icu4c" ,icu4c) + ("pcre" ,pcre) + ("r-minimal" ,r-minimal) + ("r-survival" ,r-survival))) + (native-inputs + `(("zlib" ,zlib))) + (home-page "http://rpy.sourceforge.net/") + (synopsis "Python interface to the R language") + (description "rpy2 is a redesign and rewrite of rpy. It is providing a +low-level interface to R from Python, a proposed high-level interface, +including wrappers to graphical libraries, as well as R-like structures and +functions.") + (license license:gpl3+))) + + (define-public python-plotly ; guix candidate ; python-plotly, python-requests, python-pytz (package -- cgit v1.2.3