diff -Nru pysimplesoap-1.16.2/debian/changelog pysimplesoap-1.16.2/debian/changelog --- pysimplesoap-1.16.2/debian/changelog 2022-12-08 17:45:55.000000000 +0200 +++ pysimplesoap-1.16.2/debian/changelog 2024-02-07 21:44:42.000000000 +0200 @@ -1,3 +1,9 @@ +pysimplesoap (1.16.2-5ubuntu1) noble; urgency=medium + + * Fixes for Python 3.12. + + -- Matthias Klose Wed, 07 Feb 2024 20:44:42 +0100 + pysimplesoap (1.16.2-5) unstable; urgency=medium [ Debian Janitor ] diff -Nru pysimplesoap-1.16.2/debian/control pysimplesoap-1.16.2/debian/control --- pysimplesoap-1.16.2/debian/control 2022-12-08 17:45:55.000000000 +0200 +++ pysimplesoap-1.16.2/debian/control 2024-02-07 21:44:42.000000000 +0200 @@ -6,6 +6,7 @@ Build-Depends: debhelper-compat (= 13), dh-python, python3, + python3-packaging, python3-setuptools, Standards-Version: 4.6.1 Homepage: https://github.com/pysimplesoap/pysimplesoap/ @@ -15,6 +16,7 @@ Package: python3-pysimplesoap Architecture: all Depends: python3-httplib2, + python3-packaging, python3-pycurl, ${misc:Depends}, ${python3:Depends}, diff -Nru pysimplesoap-1.16.2/debian/patches/fix-httplib2-version-check.patch pysimplesoap-1.16.2/debian/patches/fix-httplib2-version-check.patch --- pysimplesoap-1.16.2/debian/patches/fix-httplib2-version-check.patch 2022-12-08 17:45:55.000000000 +0200 +++ pysimplesoap-1.16.2/debian/patches/fix-httplib2-version-check.patch 2024-02-07 21:44:37.000000000 +0200 @@ -4,7 +4,7 @@ import logging import ssl import sys -+from distutils.version import LooseVersion ++from packaging.version import Version + try: import urllib2 @@ -14,7 +14,7 @@ try: import httplib2 - if sys.version > '3' and httplib2.__version__ <= "0.7.7": -+ if sys.version > '3' and LooseVersion(httplib2.__version__) <= LooseVersion("0.7.7"): ++ if sys.version > '3' and Version(httplib2.__version__) <= Version("0.7.7"): import http.client # httplib2 workaround: check_hostname needs a SSL context with either # CERT_OPTIONAL or CERT_REQUIRED @@ -23,10 +23,10 @@ # set optional parameters according to supported httplib2 version - if httplib2.__version__ >= '0.3.0': -+ if LooseVersion(httplib2.__version__) >= LooseVersion('0.3.0'): ++ if Version(httplib2.__version__) >= Version('0.3.0'): kwargs['timeout'] = timeout - if httplib2.__version__ >= '0.7.0': -+ if LooseVersion(httplib2.__version__) >= LooseVersion('0.7.0'): ++ if Version(httplib2.__version__) >= Version('0.7.0'): kwargs['disable_ssl_certificate_validation'] = cacert is None kwargs['ca_certs'] = cacert httplib2.Http.__init__(self, **kwargs) diff -Nru pysimplesoap-1.16.2/debian/patches/python3.12.diff pysimplesoap-1.16.2/debian/patches/python3.12.diff --- pysimplesoap-1.16.2/debian/patches/python3.12.diff 1970-01-01 02:00:00.000000000 +0200 +++ pysimplesoap-1.16.2/debian/patches/python3.12.diff 2024-02-07 21:43:43.000000000 +0200 @@ -0,0 +1,10 @@ +--- a/setup.py ++++ b/setup.py +@@ -1,6 +1,6 @@ + #!/usr/bin/env python + +-from distutils.core import setup ++from setuptools import setup + import os + import subprocess + import sys diff -Nru pysimplesoap-1.16.2/debian/patches/series pysimplesoap-1.16.2/debian/patches/series --- pysimplesoap-1.16.2/debian/patches/series 2022-12-08 17:45:55.000000000 +0200 +++ pysimplesoap-1.16.2/debian/patches/series 2024-02-07 21:41:50.000000000 +0200 @@ -3,3 +3,4 @@ reorder-type-check-to-avoid-a-TypeError.patch Support-integer-values-in-maxOccurs-attribute.patch PR204.patch +python3.12.diff