prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Problème de thumbnail avec les SVG
  Bug détecté à partir de la version 2.101.4 de Geotrek Admin.  
  
  Celui est déclenché par l'ajout d'un SVG comme pictogramme sur un lieu de renseignement. 
  
  Explication : la dernière version de easy_thumbnail n'accepte pas de faire le thumbnail d'un SVG. -> l'api V2 plante
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 #!/usr/bin/python3
  2 import os
  3 import distutils.command.build
  4 from pathlib import Path
  5 from setuptools import setup, find_packages
  6 from shutil import copy
  7 
  8 here = os.path.abspath(os.path.dirname(__file__))
  9 
  10 
  11 class BuildCommand(distutils.command.build.build):
  12     def run(self):
  13         distutils.command.build.build.run(self)
  14         from django.core.management import call_command
  15         curdir = os.getcwd()
  16         for subdir in ('geotrek', ):
  17             os.chdir(subdir)
  18             call_command('compilemessages')
  19             for path in Path('.').rglob('*.mo'):
  20                 copy(path, os.path.join(curdir, self.build_lib, subdir, path))
  21             os.chdir(curdir)
  22 
  23 
  24 setup(
  25     name='geotrek',
  26     version=open(os.path.join(here, 'VERSION')).read().strip(),
  27     author='Makina Corpus',
  28     author_email='geobi@makina-corpus.com',
  29     url='https://makina-corpus.com',
  30     description="Geotrek",
  31     scripts=['manage.py'],
  32     install_requires=[
  33         'Django==3.2.*',
  34         'mapentity',
  35         'chardet',
  36         'cairosvg',
  37         'cairocffi',
  38         'env_file',
  39         # pinned by requirements.txt
  40         'pymemcache',
  41         'coreschema',
  42         'coreapi',
  43         'psycopg2',
  44         'pdfimpose',
  45         'docutils',
  46         'Pillow',
  47         'simplekml',
  48         'pygal',
  49         'paperclip',
  50         'django-extended-choices',
  51         'django-modelcluster',
  52         'django-mptt',
  53         'geojson',
  54         'tif2geojson',
  55         'drf-dynamic-fields',
  56         'drf-yasg',
  57         'xlrd',
  58         'landez',
  59         'large-image-source-vips',
  60         'django-large-image',
  61         'celery',
  62         'redis',
  63         'django-celery-results',
  64         'drf-extensions',
  65         'django-colorfield',
  66         'Fiona',
  67         'markdown',
  68         "weasyprint==52.5",  # newer version required libpango (not available in bionic)
  69         'django-weasyprint<2.0.0',  # 2.10 require weasyprint > 53
  70         "django-clearcache",
  71         "pyopenair",
  72         # prod,
  73         'gunicorn',
  74         'sentry-sdk',
  75     ],
  76     cmdclass={"build": BuildCommand},
  77     include_package_data=True,
  78     license='BSD, see LICENSE file.',
  79     packages=find_packages(),
  80     classifiers=['Natural Language :: English',
  81                  'Environment :: Web Environment',
  82                  'Framework :: Django',
  83                  'Development Status :: 5 - Production/Stable',
  84                  'Programming Language :: Python :: 3'],
  85 )
  86
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -72,6 +72,7 @@
           # prod,
           'gunicorn',
           'sentry-sdk',
  +        'easy-thumbnails[svg]',
       ],
       cmdclass={"build": BuildCommand},
       include_package_data=True,
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -72,6 +72,7 @@\n         # prod,\n         'gunicorn',\n         'sentry-sdk',\n+        'easy-thumbnails[svg]',\n     ],\n     cmdclass={\"build\": BuildCommand},\n     include_package_data=True,\n", "issue": "Probl\u00e8me de thumbnail avec les SVG\nBug d\u00e9tect\u00e9 \u00e0 partir de la version 2.101.4 de Geotrek Admin.  \r\n\r\nCelui est d\u00e9clench\u00e9 par l'ajout d'un SVG comme pictogramme sur un lieu de renseignement. \r\n\r\nExplication : la derni\u00e8re version de easy_thumbnail n'accepte pas de faire le thumbnail d'un SVG. -> l'api V2 plante\r\n\n", "before_files": [{"content": "#!/usr/bin/python3\nimport os\nimport distutils.command.build\nfrom pathlib import Path\nfrom setuptools import setup, find_packages\nfrom shutil import copy\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\nclass BuildCommand(distutils.command.build.build):\n    def run(self):\n        distutils.command.build.build.run(self)\n        from django.core.management import call_command\n        curdir = os.getcwd()\n        for subdir in ('geotrek', ):\n            os.chdir(subdir)\n            call_command('compilemessages')\n            for path in Path('.').rglob('*.mo'):\n                copy(path, os.path.join(curdir, self.build_lib, subdir, path))\n            os.chdir(curdir)\n\n\nsetup(\n    name='geotrek',\n    version=open(os.path.join(here, 'VERSION')).read().strip(),\n    author='Makina Corpus',\n    author_email='geobi@makina-corpus.com',\n    url='https://makina-corpus.com',\n    description=\"Geotrek\",\n    scripts=['manage.py'],\n    install_requires=[\n        'Django==3.2.*',\n        'mapentity',\n        'chardet',\n        'cairosvg',\n        'cairocffi',\n        'env_file',\n        # pinned by requirements.txt\n        'pymemcache',\n        'coreschema',\n        'coreapi',\n        'psycopg2',\n        'pdfimpose',\n        'docutils',\n        'Pillow',\n        'simplekml',\n        'pygal',\n        'paperclip',\n        'django-extended-choices',\n        'django-modelcluster',\n        'django-mptt',\n        'geojson',\n        'tif2geojson',\n        'drf-dynamic-fields',\n        'drf-yasg',\n        'xlrd',\n        'landez',\n        'large-image-source-vips',\n        'django-large-image',\n        'celery',\n        'redis',\n        'django-celery-results',\n        'drf-extensions',\n        'django-colorfield',\n        'Fiona',\n        'markdown',\n        \"weasyprint==52.5\",  # newer version required libpango (not available in bionic)\n        'django-weasyprint<2.0.0',  # 2.10 require weasyprint > 53\n        \"django-clearcache\",\n        \"pyopenair\",\n        # prod,\n        'gunicorn',\n        'sentry-sdk',\n    ],\n    cmdclass={\"build\": BuildCommand},\n    include_package_data=True,\n    license='BSD, see LICENSE file.',\n    packages=find_packages(),\n    classifiers=['Natural Language :: English',\n                 'Environment :: Web Environment',\n                 'Framework :: Django',\n                 'Development Status :: 5 - Production/Stable',\n                 'Programming Language :: Python :: 3'],\n)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/python3\nimport os\nimport distutils.command.build\nfrom pathlib import Path\nfrom setuptools import setup, find_packages\nfrom shutil import copy\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\nclass BuildCommand(distutils.command.build.build):\n    def run(self):\n        distutils.command.build.build.run(self)\n        from django.core.management import call_command\n        curdir = os.getcwd()\n        for subdir in ('geotrek', ):\n            os.chdir(subdir)\n            call_command('compilemessages')\n            for path in Path('.').rglob('*.mo'):\n                copy(path, os.path.join(curdir, self.build_lib, subdir, path))\n            os.chdir(curdir)\n\n\nsetup(\n    name='geotrek',\n    version=open(os.path.join(here, 'VERSION')).read().strip(),\n    author='Makina Corpus',\n    author_email='geobi@makina-corpus.com',\n    url='https://makina-corpus.com',\n    description=\"Geotrek\",\n    scripts=['manage.py'],\n    install_requires=[\n        'Django==3.2.*',\n        'mapentity',\n        'chardet',\n        'cairosvg',\n        'cairocffi',\n        'env_file',\n        # pinned by requirements.txt\n        'pymemcache',\n        'coreschema',\n        'coreapi',\n        'psycopg2',\n        'pdfimpose',\n        'docutils',\n        'Pillow',\n        'simplekml',\n        'pygal',\n        'paperclip',\n        'django-extended-choices',\n        'django-modelcluster',\n        'django-mptt',\n        'geojson',\n        'tif2geojson',\n        'drf-dynamic-fields',\n        'drf-yasg',\n        'xlrd',\n        'landez',\n        'large-image-source-vips',\n        'django-large-image',\n        'celery',\n        'redis',\n        'django-celery-results',\n        'drf-extensions',\n        'django-colorfield',\n        'Fiona',\n        'markdown',\n        \"weasyprint==52.5\",  # newer version required libpango (not available in bionic)\n        'django-weasyprint<2.0.0',  # 2.10 require weasyprint > 53\n        \"django-clearcache\",\n        \"pyopenair\",\n        # prod,\n        'gunicorn',\n        'sentry-sdk',\n        'easy-thumbnails[svg]',\n    ],\n    cmdclass={\"build\": BuildCommand},\n    include_package_data=True,\n    license='BSD, see LICENSE file.',\n    packages=find_packages(),\n    classifiers=['Natural Language :: English',\n                 'Environment :: Web Environment',\n                 'Framework :: Django',\n                 'Development Status :: 5 - Production/Stable',\n                 'Programming Language :: Python :: 3'],\n)\n", "path": "setup.py"}]}