Source: pywps Version: 4.8.1-1 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that pywps could not be built reproducibly. This is because the documentation embeds the current build year into the documentation. A patch is attacehd that uses SOURCE_DATE_EPOCH if available. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / chris-lamb.co.uk `-
--- a/debian/patches/reproducible-build.patch 1969-12-31 16:00:00.000000000 -0800 --- b/debian/patches/reproducible-build.patch 2026-10-08 10:22:44.577857358 -0700 @@ -0,0 +1,29 @@ +Description: Make the build reproducible +Author: Chris Lamb <[email protected]> +Last-Update: 2026-10-08 + +--- pywps-4.8.1.orig/docs/conf.py ++++ pywps-4.8.1/docs/conf.py +@@ -3,7 +3,9 @@ + # licensed under MIT, Please consult LICENSE.txt for details # + ################################################################## + ++import os + import sys ++import time + import datetime + + project = u'PyWPS' +@@ -11,7 +13,11 @@ project = u'PyWPS' + license = ('This work is licensed under a Creative Commons Attribution 4.0 ' + 'International License') + +-copyright = (f'Copyright (C) 2014-{datetime.datetime.now().year} PyWPS Development Team, ' ++build_date = datetime.datetime.fromtimestamp( ++ int(os.environ.get('SOURCE_DATE_EPOCH', time.time())), ++ tz=datetime.timezone.utc, ++) ++copyright = (f'Copyright (C) 2014-{build_date.year} PyWPS Development Team, ' + 'represented by Jachym Cepicky.') + copyright += license + --- a/debian/patches/series 2026-10-08 10:14:01.103676163 -0700 --- b/debian/patches/series 2026-10-08 10:22:43.660064631 -0700 @@ -1,2 +1,3 @@ use-mathjax-package.patch privacy-breach.patch +reproducible-build.patch

