--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible-build.patch 2021-05-22 11:37:22.740539535 +0100 @@ -0,0 +1,30 @@ +Description: Make the build reproducible +Author: Chris Lamb +Last-Update: 2021-05-22 + +--- apispec-3.3.1.orig/docs/conf.py ++++ apispec-3.3.1/docs/conf.py +@@ -1,6 +1,7 @@ + import datetime as dt + import os + import sys ++import time + + sys.path.insert(0, os.path.abspath(os.path.join("..", "src"))) + import apispec # noqa: E402 +@@ -23,10 +24,14 @@ intersphinx_mapping = { + + issues_github_path = "marshmallow-code/apispec" + ++build_date = dt.datetime.utcfromtimestamp( ++ int(os.environ.get('SOURCE_DATE_EPOCH', time.time())) ++) ++ + source_suffix = ".rst" + master_doc = "index" + project = "apispec" +-copyright = "Steven Loria {:%Y}".format(dt.datetime.utcnow()) ++copyright = "Steven Loria {:%Y}".format(build_date) + + version = release = apispec.__version__ + --- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/series 2021-05-22 11:37:21.668527250 +0100 @@ -0,0 +1 @@ +reproducible-build.patch