This is an autogenerated patch header for a single-debian-patch file. The
delta against upstream is either kept as a single patch, or maintained
in some VCS, and exported as a single patch instead of more manageable
atomic patches.

--- nsscache-0.48.orig/nss_cache/sources/ldapsource.py
+++ nsscache-0.48/nss_cache/sources/ldapsource.py
@@ -25,8 +25,8 @@ import ldap
 import ldap.sasl
 import re
 from binascii import b2a_hex
+from packaging import version
 from urllib.parse import quote
-from distutils.version import StrictVersion
 
 from nss_cache import error
 from nss_cache.maps import automount
@@ -37,7 +37,7 @@ from nss_cache.maps import shadow
 from nss_cache.maps import sshkey
 from nss_cache.sources import source
 
-IS_LDAP24_OR_NEWER = StrictVersion(ldap.__version__) >= StrictVersion('2.4')
+IS_LDAP24_OR_NEWER = version.parse(ldap.__version__) >= version.parse('2.4')
 
 # ldap.LDAP_CONTROL_PAGE_OID is unavailable on some systems, so we define it here
 LDAP_CONTROL_PAGE_OID = '1.2.840.113556.1.4.319'
--- nsscache-0.48.orig/requirements.txt
+++ nsscache-0.48/requirements.txt
@@ -5,3 +5,4 @@ pycurl==7.45.2
 python3-ldap
 python-ldap
 mox3
+packaging
