Source: django-ninja
Version: 1.6.0-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
django-ninja could not be built reproducibly.
This is because the mtime of the usr/share/doc/python3-django-ninja/docs/src
directory differed depending on whether the testsuite was run or not.
Patch attached that ensures a deterministic timestamp (SOURCE_DATE_EPOCH)
of this directory.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2026-03-20 12:02:39.577517792 -0700
--- b/debian/rules 2026-03-20 12:19:07.500617386 -0700
@@ -15,3 +15,4 @@
dh_installdocs --doc-main-package=python3-django-ninja
-ppython-django-ninja-doc
find debian/python-django-ninja-doc -name "*.pyc" -delete
find debian/python-django-ninja-doc -name "__pycache__" -delete
+ touch -d@$(SOURCE_DATE_EPOCH)
debian/python-django-ninja-doc/usr/share/doc/python3-django-ninja/docs/src