Bug#1131395: django-ninja: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Mar 20 19:22:40 GMT 2026


Source: django-ninja
Version: 1.6.0-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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


More information about the Reproducible-bugs mailing list