mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: python-rpy2: Update to 3.0.4-1.19868a8.
* gnu/packages/statistics.scm (python-rpy2): Update to 3.0.4-1.19868a8. [source]: Fetch from repository. [propagated-inputs]: Add python-cffi, python-numpy, python-pandas, python-ipython, and python-tzlocal. [native-inputs]: Add python-pytest. [arguments]: Set TZ variable and use pytest to run the tests.
This commit is contained in:
parent
06e1ecbf17
commit
29fe71152f
1 changed files with 68 additions and 53 deletions
|
@ -57,6 +57,7 @@ (define-module (gnu packages statistics)
|
||||||
#:use-module (gnu packages icu4c)
|
#:use-module (gnu packages icu4c)
|
||||||
#:use-module (gnu packages image)
|
#:use-module (gnu packages image)
|
||||||
#:use-module (gnu packages java)
|
#:use-module (gnu packages java)
|
||||||
|
#:use-module (gnu packages libffi)
|
||||||
#:use-module (gnu packages machine-learning)
|
#:use-module (gnu packages machine-learning)
|
||||||
#:use-module (gnu packages maths)
|
#:use-module (gnu packages maths)
|
||||||
#:use-module (gnu packages multiprecision)
|
#:use-module (gnu packages multiprecision)
|
||||||
|
@ -5765,62 +5766,76 @@ (define-public r-txtplot
|
||||||
(license license:lgpl3+)))
|
(license license:lgpl3+)))
|
||||||
|
|
||||||
(define-public python-rpy2
|
(define-public python-rpy2
|
||||||
(package
|
;; We need to take this changeset instead of the RELEASE_3_0_4 tag, because
|
||||||
(name "python-rpy2")
|
;; it fixes a regression when using ggplot 3.2.0.
|
||||||
(version "2.9.4")
|
(let ((changeset "19868a8")
|
||||||
(source
|
(revision "1"))
|
||||||
(origin
|
(package
|
||||||
(method url-fetch)
|
(name "python-rpy2")
|
||||||
(uri (pypi-uri "rpy2" version))
|
(version (git-version "3.0.4" revision changeset))
|
||||||
(sha256
|
(source
|
||||||
(base32
|
(origin
|
||||||
"0bl1d2qhavmlrvalir9hmkjh74w21vzkvc2sg3cbb162s10zfmxy"))))
|
(method hg-fetch)
|
||||||
(build-system python-build-system)
|
(uri (hg-reference
|
||||||
(arguments
|
(url "https://bitbucket.org/rpy2/rpy2")
|
||||||
'(#:modules ((ice-9 ftw)
|
(changeset changeset)))
|
||||||
(srfi srfi-1)
|
(file-name (git-file-name name version))
|
||||||
(srfi srfi-26)
|
(sha256
|
||||||
(guix build utils)
|
(base32
|
||||||
(guix build python-build-system))
|
"1bb0wslcbj3wjvyk3jb9yyzdi6adfqh5vfgcvn22dyzxzbhcs8kk"))))
|
||||||
#:phases
|
(build-system python-build-system)
|
||||||
(modify-phases %standard-phases
|
(arguments
|
||||||
(replace 'check
|
'(#:modules ((ice-9 ftw)
|
||||||
(lambda* (#:key outputs inputs #:allow-other-keys)
|
(srfi srfi-1)
|
||||||
(let ((cwd (getcwd)))
|
(srfi srfi-26)
|
||||||
(setenv "PYTHONPATH"
|
(guix build utils)
|
||||||
(string-append cwd "/build/"
|
(guix build python-build-system))
|
||||||
(find (cut string-prefix? "lib" <>)
|
#:phases
|
||||||
(scandir (string-append cwd "/build")))
|
(modify-phases %standard-phases
|
||||||
":"
|
(replace 'check
|
||||||
(getenv "PYTHONPATH"))))
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
||||||
(invoke "python" "-m" "rpy2.tests" "-v"))))))
|
(let ((cwd (getcwd)))
|
||||||
(propagated-inputs
|
(setenv "TZ" "UTC")
|
||||||
`(("python-six" ,python-six)
|
(setenv "PYTHONPATH"
|
||||||
("python-jinja2" ,python-jinja2)
|
(string-append cwd "/build/"
|
||||||
("python-pytz" ,python-pytz)))
|
(find (cut string-prefix? "lib" <>)
|
||||||
(inputs
|
(scandir (string-append cwd "/build")))
|
||||||
`(("readline" ,readline)
|
":"
|
||||||
("icu4c" ,icu4c)
|
(getenv "PYTHONPATH"))))
|
||||||
("pcre" ,pcre)
|
(invoke "pytest" "-v" "rpy/tests/"))))))
|
||||||
("r-minimal" ,r-minimal)
|
(propagated-inputs
|
||||||
("r-survival" ,r-survival)
|
`(("python-cffi" ,python-cffi)
|
||||||
("r-ggplot2" ,r-ggplot2)
|
("python-six" ,python-six)
|
||||||
("r-rsqlite" ,r-rsqlite)
|
("python-jinja2" ,python-jinja2)
|
||||||
("r-dplyr" ,r-dplyr)
|
("python-numpy" ,python-numpy)
|
||||||
("r-dbplyr" ,r-dbplyr)
|
("python-pandas" ,python-pandas)
|
||||||
("python-numpy" ,python-numpy)))
|
("python-pytz" ,python-pytz)
|
||||||
(native-inputs
|
("python-ipython" ,python-ipython)
|
||||||
`(("zlib" ,zlib)))
|
("python-tzlocal" ,python-tzlocal)))
|
||||||
(home-page "https://rpy2.bitbucket.io/")
|
(inputs
|
||||||
(synopsis "Python interface to the R language")
|
`(("readline" ,readline)
|
||||||
(description "rpy2 is a redesign and rewrite of rpy. It is providing a
|
("icu4c" ,icu4c)
|
||||||
|
("pcre" ,pcre)
|
||||||
|
("r-minimal" ,r-minimal)
|
||||||
|
("r-survival" ,r-survival)
|
||||||
|
("r-ggplot2" ,r-ggplot2)
|
||||||
|
("r-rsqlite" ,r-rsqlite)
|
||||||
|
("r-dplyr" ,r-dplyr)
|
||||||
|
("r-dbplyr" ,r-dbplyr)
|
||||||
|
("python-numpy" ,python-numpy)))
|
||||||
|
(native-inputs
|
||||||
|
`(("zlib" ,zlib)
|
||||||
|
("python-pytest" ,python-pytest)))
|
||||||
|
(home-page "https://rpy2.bitbucket.io/")
|
||||||
|
(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,
|
low-level interface to R from Python, a proposed high-level interface,
|
||||||
including wrappers to graphical libraries, as well as R-like structures and
|
including wrappers to graphical libraries, as well as R-like structures and
|
||||||
functions.")
|
functions.")
|
||||||
;; Any of these licenses can be picked for the R interface. The whole
|
;; Any of these licenses can be picked for the R interface. The whole
|
||||||
;; project is released under GPLv2+ according to the license declaration
|
;; project is released under GPLv2+ according to the license declaration
|
||||||
;; in "setup.py".
|
;; in "setup.py".
|
||||||
(license (list license:mpl2.0 license:gpl2+ license:lgpl2.1+))))
|
(license (list license:mpl2.0 license:gpl2+ license:lgpl2.1+)))))
|
||||||
|
|
||||||
(define-public java-jdistlib
|
(define-public java-jdistlib
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue