Dear maintainer, I've prepared an NMU for pairtools (versioned as 0.3.0-3.1). The diff is attached to this message.
Also filed as https://salsa.debian.org/med-team/pairtools/-/merge_requests/1 Regards, SR
diff -Nru pairtools-0.3.0/debian/changelog pairtools-0.3.0/debian/changelog --- pairtools-0.3.0/debian/changelog 2021-09-22 09:50:11.000000000 -0400 +++ pairtools-0.3.0/debian/changelog 2021-11-21 16:13:08.000000000 -0400 @@ -1,3 +1,10 @@ +pairtools (0.3.0-3.1) unstable; urgency=medium + + * Non-maintainer upload. + * Patch: Support Python 3.10. (Closes: #1000337) + + -- Stefano Rivera <stefa...@debian.org> Sun, 21 Nov 2021 16:13:08 -0400 + pairtools (0.3.0-3) unstable; urgency=medium * Team upload. diff -Nru pairtools-0.3.0/debian/patches/python-3.10 pairtools-0.3.0/debian/patches/python-3.10 --- pairtools-0.3.0/debian/patches/python-3.10 1969-12-31 20:00:00.000000000 -0400 +++ pairtools-0.3.0/debian/patches/python-3.10 2021-11-21 16:13:08.000000000 -0400 @@ -0,0 +1,26 @@ +From: Stefano Rivera <stefa...@debian.org> +Date: Sun, 21 Nov 2021 16:00:00 -0400 +Subject: Import Mapping from collections.abc + +The collections alias was dropped in Python 3.10. + +Bug-Debian: https://bugs.debian.org/1000337 +Forwarded: https://github.com/open2c/pairtools/pull/108 +--- + pairtools/pairtools_stats.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/pairtools/pairtools_stats.py b/pairtools/pairtools_stats.py +index b1c05d4..842c77e 100644 +--- a/pairtools/pairtools_stats.py ++++ b/pairtools/pairtools_stats.py +@@ -7,7 +7,8 @@ import click + + import numpy as np + +-from collections import OrderedDict, Mapping ++from collections import OrderedDict ++from collections.abc import Mapping + + from . import _fileio, _pairsam_format, cli, _headerops, common_io_options + diff -Nru pairtools-0.3.0/debian/patches/series pairtools-0.3.0/debian/patches/series --- pairtools-0.3.0/debian/patches/series 2021-09-22 09:50:11.000000000 -0400 +++ pairtools-0.3.0/debian/patches/series 2021-11-21 16:13:08.000000000 -0400 @@ -1,3 +1,4 @@ makefile fix-spelling tests-to-python3 +python-3.10