Description: Honour SOURCE_DATE_EPOCH for copyright year
 Uses SOURCE_DATE_EPOCH environment variable (if set) to
 set the copyright year in documentation, to get reproducible build.
Author: Alexis Bienvenüe <pado@passoire.fr>

--- cython-0.23.4+git4-g7eed8d8.orig/docs/conf.py
+++ cython-0.23.4+git4-g7eed8d8/docs/conf.py
@@ -15,7 +15,10 @@ import sys, os, os.path, re
 import itertools
 import datetime
 
-YEAR = datetime.date.today().strftime('%Y')
+if os.environ.has_key('SOURCE_DATE_EPOCH'):
+    YEAR = datetime.datetime.utcfromtimestamp(float(os.environ.get('SOURCE_DATE_EPOCH'))).strftime('%Y')
+else:
+    YEAR = datetime.date.today().strftime('%Y')
 
 # 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
