diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-21 14:46:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-21 14:46:21 +0100 |
commit | d3f42b1ace45210af6c1b0c1970d626d411b15e0 (patch) | |
tree | 247085c9b7eb4f9b76c091d65482f26262c9b924 /sci-biology/biopython/files | |
parent | 7c334a9594ae315e537bf98259b95bafc60d479c (diff) |
gentoo auto-resync : 21:07:2023 - 14:46:21
Diffstat (limited to 'sci-biology/biopython/files')
-rw-r--r-- | sci-biology/biopython/files/biopython-1.81-python3.12.patch | 11 | ||||
-rw-r--r-- | sci-biology/biopython/files/biopython-1.81-reportlab4.patch | 29 |
2 files changed, 40 insertions, 0 deletions
diff --git a/sci-biology/biopython/files/biopython-1.81-python3.12.patch b/sci-biology/biopython/files/biopython-1.81-python3.12.patch new file mode 100644 index 000000000000..8f903a4a39bd --- /dev/null +++ b/sci-biology/biopython/files/biopython-1.81-python3.12.patch @@ -0,0 +1,11 @@ +--- a/Tests/test_Entrez.orig.py 2023-02-13 04:07:42.000000000 +0100 ++++ b/Tests/test_Entrez.py 2023-06-30 14:42:58.177365639 +0200 +@@ -126,7 +126,7 @@ + :type params: dict + :param expected: Expected set of IDs, as colleciton of strings. + """ +- testcase.assertEquals(len(params["id"]), 1) ++ testcase.assertEqual(len(params["id"]), 1) + ids_str = params["id"][0] + # Compare up to ordering + testcase.assertCountEqual(ids_str.split(","), expected) diff --git a/sci-biology/biopython/files/biopython-1.81-reportlab4.patch b/sci-biology/biopython/files/biopython-1.81-reportlab4.patch new file mode 100644 index 000000000000..ef1994553614 --- /dev/null +++ b/sci-biology/biopython/files/biopython-1.81-reportlab4.patch @@ -0,0 +1,29 @@ +From 74fdf49ade95157c3c4b23a95831925be4899223 Mon Sep 17 00:00:00 2001 +From: Peter Cock <p.j.a.cock@googlemail.com> +Date: Mon, 5 Jun 2023 12:39:59 +0100 +Subject: [PATCH] Skip if ReportLab bitmap output module missing + +Would like to skip this earlier, but not so +easy in ReportLab v4 with a choice of backends +--- + Tests/test_GraphicsBitmaps.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/Tests/test_GraphicsBitmaps.py b/Tests/test_GraphicsBitmaps.py +index 2ffdfb3dd71..76615a2fd1d 100644 +--- a/Tests/test_GraphicsBitmaps.py ++++ b/Tests/test_GraphicsBitmaps.py +@@ -111,9 +111,12 @@ def real_test(): + "Check the fonts needed by ReportLab if you want " + "bitmaps from Bio.Graphics\n" + str(err) + ) from None ++ elif str(err).startswith("cannot import desired renderPM backend rlPyCairo"): ++ raise MissingExternalDependencyError( ++ "Reportlab module rlPyCairo unavailable\n" + str(err) ++ ) from None + else: + raise +- + return True + + |