--- a/debian/patches/reproducible-build-and-output.patch 1969-12-31 19:00:00.000000000 -0500 --- b/debian/patches/reproducible-build-and-output.patch 2016-07-30 09:26:08.972016141 -0400 @@ -0,0 +1,26 @@ +Description: Make the output and build reproducible +Author: Chris Lamb +Last-Update: 2016-07-30 + +--- pysal-1.11.2.orig/pysal/core/IOHandlers/pyDbfIO.py ++++ pysal-1.11.2/pysal/core/IOHandlers/pyDbfIO.py +@@ -4,6 +4,8 @@ import struct + import itertools + from warnings import warn + import pysal ++import os ++import time + + __author__ = "Charles R Schmidt " + __all__ = ['DBF'] +@@ -272,7 +274,9 @@ class DBF(pysal.core.Tables.DataTable): + POS = self.f.tell() + self.f.seek(0) + ver = 3 +- now = datetime.datetime.now() ++ now = datetime.datetime.utcfromtimestamp( ++ int(os.environ.get('SOURCE_DATE_EPOCH', time.time())), ++ ) + yr, mon, day = now.year - 1900, now.month, now.day + numrec = self.numrec + numfields = len(self.header) --- a/debian/patches/series 2016-07-30 09:12:22.522044500 -0400 --- b/debian/patches/series 2016-07-30 09:26:01.392034744 -0400 @@ -1 +1,2 @@ unusual-interpreter.patch +reproducible-build-and-output.patch