diff -Nru python-pauvre-0.2.3/debian/changelog python-pauvre-0.2.3/debian/changelog --- python-pauvre-0.2.3/debian/changelog 2021-08-15 13:17:57.000000000 +0000 +++ python-pauvre-0.2.3/debian/changelog 2022-12-18 14:56:49.000000000 +0000 @@ -1,3 +1,14 @@ +python-pauvre (0.2.3-2) unstable; urgency=medium + + * biopython-1.80.patch: add; migrate away from Bio.SubsMat. + This patch fixes build time test failures with Biopython 1.80 caused + by removal of Bio.SubsMat in favor of Bio.Align.substitution_matrices. + (Closes: 1024835) + * d/control: declare compliance to standards version 4.6.2. + * d/copyright: update debian/ authors and year. + + -- Étienne Mollier Sun, 18 Dec 2022 15:56:49 +0100 + python-pauvre (0.2.3-1) unstable; urgency=medium [ Nilesh Patra ] diff -Nru python-pauvre-0.2.3/debian/control python-pauvre-0.2.3/debian/control --- python-pauvre-0.2.3/debian/control 2021-08-15 13:17:32.000000000 +0000 +++ python-pauvre-0.2.3/debian/control 2022-12-18 14:56:49.000000000 +0000 @@ -16,7 +16,7 @@ python3-sklearn , python3-tk , python3-progressbar -Standards-Version: 4.5.1 +Standards-Version: 4.6.2 Vcs-Browser: https://salsa.debian.org/med-team/python-pauvre Vcs-Git: https://salsa.debian.org/med-team/python-pauvre.git Homepage: https://github.com/conchoecia/pauvre diff -Nru python-pauvre-0.2.3/debian/copyright python-pauvre-0.2.3/debian/copyright --- python-pauvre-0.2.3/debian/copyright 2021-05-11 16:35:18.000000000 +0000 +++ python-pauvre-0.2.3/debian/copyright 2022-12-18 14:56:49.000000000 +0000 @@ -8,6 +8,8 @@ Files: debian/* Copyright: 2020 Andreas Tille + 2021 Nilesh Patra + 2020-2022 Étienne Mollier License: GPL-3+ License: GPL-3+ diff -Nru python-pauvre-0.2.3/debian/patches/biopython-1.80.patch python-pauvre-0.2.3/debian/patches/biopython-1.80.patch --- python-pauvre-0.2.3/debian/patches/biopython-1.80.patch 1970-01-01 00:00:00.000000000 +0000 +++ python-pauvre-0.2.3/debian/patches/biopython-1.80.patch 2022-12-18 14:56:49.000000000 +0000 @@ -0,0 +1,52 @@ +Description: port python-pauvre to python-biopython 1.80. +Author: Étienne Mollier +Bug: https://github.com/conchoecia/pauvre/issues/45 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024835 +Forwarded: https://github.com/conchoecia/pauvre/pull/46 +Last-Update: 2022-12-18 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- python-pauvre.orig/pauvre/browser.py ++++ python-pauvre/pauvre/browser.py +@@ -49,7 +49,6 @@ + + # Biopython stuff + from Bio import SeqIO +-import Bio.SubsMat.MatrixInfo as MI + + + class PlotCommand: +--- python-pauvre.orig/pauvre/synplot.py ++++ python-pauvre/pauvre/synplot.py +@@ -43,7 +43,7 @@ + + # Biopython stuff + from Bio import SeqIO +-import Bio.SubsMat.MatrixInfo as MI ++from Bio.Align import substitution_matrices + + # following this tutorial to install helvetica + # https://github.com/olgabot/sciencemeetproductivity.tumblr.com/blob/master/posts/2012/11/how-to-set-helvetica-as-the-default-sans-serif-font-in.md +@@ -171,8 +171,9 @@ + def black_colormap(): + zeroone = np.linspace(0, 1, 100) + colorrange = [(0,0,0,x) for x in zeroone] +- minblosum = min(MI.blosum62.values()) +- maxblosum = max(MI.blosum62.values()) ++ blosumvals = substitution_matrices.load("BLOSUM62").values() ++ minblosum = int(min(blosumvals)) ++ maxblosum = int(max(blosumvals)) + colormap = {i: colorrange[int(translate(i, minblosum, maxblosum, 0, 99))] + for i in range(minblosum, maxblosum + 1, 1)} + return colormap +@@ -479,7 +480,9 @@ + # this needs to be increased by the bar_thickness (0.9 * track_width in this case, or 0.09) + y2 = len(optGFFs) - 2 - i + myPatches = plot_synteny(seq1, ind1, seq2, ind2, y1, y2, +- featType, MI.blosum62, cm, seqname) ++ featType, ++ substitution_matrices.load("BLOSUM62"), ++ cm, seqname) + for patch in myPatches: + allPatches.append(patch) + diff -Nru python-pauvre-0.2.3/debian/patches/series python-pauvre-0.2.3/debian/patches/series --- python-pauvre-0.2.3/debian/patches/series 2021-05-11 16:35:18.000000000 +0000 +++ python-pauvre-0.2.3/debian/patches/series 2022-12-18 14:56:49.000000000 +0000 @@ -1,2 +1,3 @@ 2to3.patch lsi-test-args.patch +biopython-1.80.patch