diff -pruN 2.0-2/debian/changelog 2.0-2ubuntu1/debian/changelog
--- 2.0-2/debian/changelog	2021-09-04 18:49:06.000000000 +0000
+++ 2.0-2ubuntu1/debian/changelog	2022-11-16 23:50:35.000000000 +0000
@@ -1,3 +1,10 @@
+django-assets (2.0-2ubuntu1) lunar; urgency=medium
+
+  * Apply patch proposed upstream by Jonatan Heyman to fix build with python
+    3.11 (LP: #1996828).
+
+ -- Dan Bungert <daniel.bungert@canonical.com>  Wed, 16 Nov 2022 16:50:35 -0700
+
 django-assets (2.0-2) unstable; urgency=low
 
   [ Debian Janitor ]
diff -pruN 2.0-2/debian/control 2.0-2ubuntu1/debian/control
--- 2.0-2/debian/control	2021-09-04 18:49:06.000000000 +0000
+++ 2.0-2ubuntu1/debian/control	2022-11-16 23:50:35.000000000 +0000
@@ -1,7 +1,8 @@
 Source: django-assets
 Section: python
 Priority: optional
-Maintainer: Debian Python Team <team+python@tracker.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian Python Team <team+python@tracker.debian.org>
 Uploaders:
  Michael Fladischer <fladi@debian.org>,
  Chris Lamb <lamby@debian.org>,
diff -pruN 2.0-2/debian/patches/e57c5c3.patch 2.0-2ubuntu1/debian/patches/e57c5c3.patch
--- 2.0-2/debian/patches/e57c5c3.patch	1970-01-01 00:00:00.000000000 +0000
+++ 2.0-2ubuntu1/debian/patches/e57c5c3.patch	2022-11-16 23:50:35.000000000 +0000
@@ -0,0 +1,22 @@
+Description: Move global re flag to the front
+Author:      Dan Bungert <daniel.bungert@canonical.com>
+Origin:      https://github.com/miracle2k/django-assets/pull/104/commits/e57c5c3c02d84069600916fed74f165819393487
+Bug-Ubuntu:  https://bugs.launchpad.net/bugs/1996828
+Bug:         https://github.com/miracle2k/django-assets/pull/104
+Forwarded:   not-needed
+Last-Update: 2022-11-16
+
+See also https://github.com/python/cpython/issues/91222
+diff --git a/django_assets/glob.py b/django_assets/glob.py
+index 66a9531..73d961c 100644
+--- a/django_assets/glob.py
++++ b/django_assets/glob.py
+@@ -121,7 +121,7 @@ def translate(pat):
+                 res = '%s([%s])' % (res, stuff)
+         else:
+             res = res + re.escape(c)
+-    return res + '\Z(?ms)'
++    return '(?ms)' + res + '\Z'
+ 
+ 
+ """Filename globbing utility."""
diff -pruN 2.0-2/debian/patches/series 2.0-2ubuntu1/debian/patches/series
--- 2.0-2/debian/patches/series	2021-09-04 18:49:06.000000000 +0000
+++ 2.0-2ubuntu1/debian/patches/series	2022-11-16 23:50:35.000000000 +0000
@@ -1,3 +1,4 @@
 01-webassets_version.patch
 02-intersphinx.patch
 0003-Patch-pytest-plugin-to-check-whether-we-are-running-.patch
+e57c5c3.patch
