gnu: python-rpy2: Update to 2.9.4.

* gnu/packages/python.scm (python-rpy2): Update to 2.9.4.
[arguments]: Remove obsolete phases and substitute INVOKE for SYSTEM*
now that we can.
This commit is contained in:
Tobias Geerinckx-Rice 2018-08-21 03:16:06 +02:00
parent db09a450d2
commit 20b5b97381
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -3669,14 +3669,14 @@ (define-public python2-pysnptools
(define-public python-rpy2 (define-public python-rpy2
(package (package
(name "python-rpy2") (name "python-rpy2")
(version "2.9.0") (version "2.9.4")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "rpy2" version)) (uri (pypi-uri "rpy2" version))
(sha256 (sha256
(base32 (base32
"0bqihjrdqwj5r1h86shvfb1p5hfr4a6klv1v54bzfr9r144w3rni")))) "0bl1d2qhavmlrvalir9hmkjh74w21vzkvc2sg3cbb162s10zfmxy"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(#:modules ((ice-9 ftw) '(#:modules ((ice-9 ftw)
@ -3686,14 +3686,6 @@ (define-public python-rpy2
(guix build python-build-system)) (guix build python-build-system))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
;; Without this phase the test loader cannot find the directories, in
;; which it is supposed to look for test files.
(add-after 'unpack 'fix-tests
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "rpy/tests.py"
(("loader.discover\\(")
"loader.discover(rpy_root + '/' +"))
#t))
(replace 'check (replace 'check
(lambda* (#:key outputs inputs #:allow-other-keys) (lambda* (#:key outputs inputs #:allow-other-keys)
(let ((cwd (getcwd))) (let ((cwd (getcwd)))
@ -3703,8 +3695,7 @@ (define-public python-rpy2
(scandir (string-append cwd "/build"))) (scandir (string-append cwd "/build")))
":" ":"
(getenv "PYTHONPATH")))) (getenv "PYTHONPATH"))))
;; FIXME: Even when all tests pass, the check phase will fail. (invoke "python" "-m" "rpy2.tests" "-v"))))))
(system* "python" "-m" "rpy2.tests" "-v"))))))
(propagated-inputs (propagated-inputs
`(("python-six" ,python-six) `(("python-six" ,python-six)
("python-jinja2" ,python-jinja2) ("python-jinja2" ,python-jinja2)