[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: python-rpy2: Fix tests.
From: |
Marius Bakke |
Subject: |
01/02: gnu: python-rpy2: Fix tests. |
Date: |
Thu, 15 Dec 2016 16:55:42 +0000 (UTC) |
mbakke pushed a commit to branch python-tests
in repository guix.
commit 444464ec28fe63a8162d6b7d8ef5b408082df91b
Author: Marius Bakke <address@hidden>
Date: Thu Dec 15 17:42:22 2016 +0100
gnu: python-rpy2: Fix tests.
* gnu/packages/python.scm (python-rpy2, python2-rpy2)[arguments]: Replace
check phase with custom post-install command.
---
gnu/packages/python.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 610785b..f790734 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3674,6 +3674,16 @@ operators such as union, intersection, and difference.")
(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
`(("python-six" ,python-six)))
(inputs