aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorBen Woodcroft <donttrustben@gmail.com>2016-10-08 21:33:43 +1000
committerBen Woodcroft <donttrustben@gmail.com>2016-10-08 21:38:17 +1000
commit9602e3cce95264d563804d372f44a0d88bad3e9f (patch)
tree2f6d8d9296db72a98a275af5f49edb81453ae4ab /gnu
parentf803f775d244b4e3975ab42b9610d12b94f6e958 (diff)
downloadgnu-guix-9602e3cce95264d563804d372f44a0d88bad3e9f.tar
gnu-guix-9602e3cce95264d563804d372f44a0d88bad3e9f.tar.gz
gnu: python2-dendropy: Fix tests.
* gnu/packages/bioinformatics.scm (python2-dendropy)[source]: Use unpatched source. [arguments]: Use nose to run tests. [native-inputs]: Add python2-nose.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/bioinformatics.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 76e6c310ef..02ed8daac7 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -1972,7 +1972,25 @@ trees (phylogenies) and characters.")
(let ((base (package-with-python2 (strip-python2-variant python-dendropy))))
(package
(inherit base)
+ ;; Do not use same source as 'python-dendropy' because the patched
+ ;; failing tests do not occur on Python 2.
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "DendroPy" (package-version base)))
+ (sha256
+ (base32
+ "1jfz7gp18wph311w1yygbvjanb3n5mdqal439bb6myw41dwb5m63"))))
+ (arguments
+ `(#:python ,python-2
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ ;; There is currently a test failure that only happens on some
+ ;; systems, and only using "setup.py test"
+ (lambda _ (zero? (system* "nosetests")))))))
(native-inputs `(("python2-setuptools" ,python2-setuptools)
+ ("python2-nose" ,python2-nose)
,@(package-native-inputs base))))))