gnu: python2-dendropy: Disable failing test.
authorBen Woodcroft <donttrustben@gmail.com>
Sun, 21 Oct 2018 12:31:56 +0000 (22:31 +1000)
committerBen Woodcroft <donttrustben@gmail.com>
Sun, 21 Oct 2018 12:31:56 +0000 (22:31 +1000)
* gnu/packages/bioinformatics.scm (python2-dendropy)[arguments]: Disable
failing test.

gnu/packages/bioinformatics.scm

index 7c58ab2..1e04081 100644 (file)
@@ -2063,7 +2063,21 @@ trees (phylogenies) and characters.")
     (license license:bsd-3)))
 
 (define-public python2-dendropy
-  (package-with-python2 python-dendropy))
+  (let ((base (package-with-python2 python-dendropy)))
+    (package
+      (inherit base)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'remove-failing-test
+             (lambda _
+               ;; This test fails when the full test suite is run, as documented
+               ;; at https://github.com/jeetsukumaran/DendroPy/issues/74
+               (substitute* "tests/test_dataio_nexml_reader_tree_list.py"
+                 (("test_collection_comments_and_annotations")
+                  "do_not_test_collection_comments_and_annotations"))
+               #t)))
+         ,@(package-arguments base))))))
 
 (define-public python-py2bit
   (package