diff --git a/component/matplotlib/buildout.cfg b/component/matplotlib/buildout.cfg
index 243a05611c87061696dcf312f484da695412285f..838d3be927762a117800d9c06285f3d4d64f6980 100644
--- a/component/matplotlib/buildout.cfg
+++ b/component/matplotlib/buildout.cfg
@@ -4,6 +4,7 @@ extends =
   ../pkgconfig/buildout.cfg
   ../libpng/buildout.cfg
   ../freetype/buildout.cfg
+  ./buildout.hash.cfg
 
 parts =
   matplotlib
@@ -11,10 +12,9 @@ parts =
 [matplotlibrc]
 recipe = slapos.recipe.template:jinja2
 location = ${buildout:parts-directory}/${:_buildout_section_name_}
-template = ${:_profile_base_location_}/matplotlibrc.in
+template = ${:_profile_base_location_}/${:filename}
 rendered = ${matplotlibrc:location}/matplotlibrc
 mode = 0644
-md5sum = 849f48f08bea21dd10d3825867cb1561
 backend = agg
 context =
   key backend matplotlibrc:backend
diff --git a/component/matplotlib/buildout.hash.cfg b/component/matplotlib/buildout.hash.cfg
new file mode 100644
index 0000000000000000000000000000000000000000..045e0c02126815475bb4d2901f3f116b23c4c404
--- /dev/null
+++ b/component/matplotlib/buildout.hash.cfg
@@ -0,0 +1,3 @@
+[matplotlibrc]
+filename = matplotlibrc.in
+md5sum = 849f48f08bea21dd10d3825867cb1561