diff --git a/py-dynamic-graph-v3/distinfo b/py-dynamic-graph-v3/distinfo
index db9a71c1d780630846e2f11f8eb7e40474520447..1b1f1cc139258268d7af968227ab542615cb4ca0 100644
--- a/py-dynamic-graph-v3/distinfo
+++ b/py-dynamic-graph-v3/distinfo
@@ -1,3 +1,4 @@
 SHA1 (dynamic-graph-python-3.2.0.tar.gz) = c4110eb6ccc9ad7f3d13639b7ac199e2a0f5b16a
 RMD160 (dynamic-graph-python-3.2.0.tar.gz) = ae28220ac3480dcd4c163ef009e02adb8d723f24
 Size (dynamic-graph-python-3.2.0.tar.gz) = 835505 bytes
+SHA1 (patch-aa) = 7d772724dd1923575bc122a69239294058b8e74f
diff --git a/py-dynamic-graph-v3/patches/patch-aa b/py-dynamic-graph-v3/patches/patch-aa
new file mode 100644
index 0000000000000000000000000000000000000000..8646ca75ee8e0ac5b3a80cfe2dba6c7d670b498d
--- /dev/null
+++ b/py-dynamic-graph-v3/patches/patch-aa
@@ -0,0 +1,22 @@
+sphinx.ext.pngmath has been deprecated since 1.4 and removed in 1.8. It has been replaced by imgmath
+
+--- doc/sphinx/conf.py.in
++++ doc/sphinx/conf.py.in
+@@ -12,6 +12,7 @@
+ # serve to show the default.
+
+ import sys, os
++from sphinx import version_info as sphinx_version
+
+ # If extensions (or modules to document with autodoc) are in another directory,
+ # add these directories to sys.path here. If the directory is relative to the
+@@ -23,7 +24,8 @@ sys.path = [os.path.abspath('@CMAKE_SOURCE_DIR@/src')]+sys.path
+
+ # Add any Sphinx extension module names here, as strings. They can be extensions
+ # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.pngmath']
++extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
++extensions.append('sphinx.ext.pngmath' if sphinx_version < (1, 4) else 'sphinx.ext.imgmath')
+
+ # Add any paths that contain templates here, relative to this directory.
+ templates_path = ['_templates']